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