Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | # polkit must prepare polkitd group |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 2 | DEPENDS += "polkit" |
| 3 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 4 | inherit distro_features_check |
| 5 | REQUIRED_DISTRO_FEATURES = "polkit" |
| 6 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 7 | inherit useradd |
| 8 | |
| 9 | do_install_prepend() { |
| 10 | install -m 700 -d ${D}${sysconfdir}/polkit-1/rules.d |
| 11 | chown polkitd:polkitd ${D}${sysconfdir}/polkit-1/rules.d |
| 12 | } |
| 13 | USERADD_PARAM_${PN}_prepend = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 polkitd;" |