blob: 8ced8abe59db05b77f9de311a7b221aa90e68c2d [file] [log] [blame]
# polkit must prepare polkitd group
DEPENDS += "polkit"
inherit distro_features_check
REQUIRED_DISTRO_FEATURES = "polkit"
inherit useradd
do_install_prepend() {
install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d
}
USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"