2017-12-12 15:35:45 -05:00
|
|
|
# polkit must prepare polkitd group
|
|
|
|
DEPENDS += "polkit"
|
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
inherit features_check
|
|
|
|
REQUIRED_DISTRO_FEATURES = "polkit"
|
|
|
|
|
2017-12-12 15:35:45 -05:00
|
|
|
inherit useradd
|
|
|
|
|
2022-05-28 11:20:07 -04:00
|
|
|
do_install:prepend() {
|
2017-12-12 15:35:45 -05:00
|
|
|
install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
|
2022-05-28 11:20:07 -04:00
|
|
|
chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d
|
2017-12-12 15:35:45 -05:00
|
|
|
}
|
2022-05-28 11:20:07 -04:00
|
|
|
USERADD_PARAM:${PN}:prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"
|