blob: e38e344c14d3ee6b1a84cb9d131b41ce8c2cf343 [file] [log] [blame]
Brad Bishop6e60e8b2018-02-01 10:27:11 -05001# polkit must prepare polkitd group
Patrick Williamsb48b7b42016-08-17 15:04:38 -05002DEPENDS += "polkit"
3
Brad Bishop8410d612019-11-25 09:40:59 -05004inherit features_check
Brad Bishop19323692019-04-05 15:28:33 -04005REQUIRED_DISTRO_FEATURES = "polkit"
6
Patrick Williamsb48b7b42016-08-17 15:04:38 -05007inherit useradd
8
9do_install_prepend() {
10 install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d
Brad Bishop00ab2372019-10-14 11:06:18 -040011 chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d
Patrick Williamsb48b7b42016-08-17 15:04:38 -050012}
13USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"