blob: 4aeeb77d04053bcadfd7835a7f04b337d4d02311 [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
Patrick Williams213cb262021-08-07 19:21:33 -05009do_install:prepend() {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050010 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}
Patrick Williams213cb262021-08-07 19:21:33 -050013USERADD_PARAM:${PN}:prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;"