polkit: Install rules in subdir

d5e90541f8
moved the rules to /usr/share/ instead of /etc/. The commit also removed the
install:prepend() step.
This results in the rules being installed as file /usr/share/polkit-1/rules.d
instead of in that folder.

This commit adds back the install prepend step such that the rules are installed
in said folder.

Signed-off-by: Darrel Griët <dgriet@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Darrel Griët 2024-12-30 14:10:33 +01:00 committed by Khem Raj
parent 1c60b8ccf7
commit d89fc818b7
No known key found for this signature in database
GPG Key ID: BB053355919D3314

View File

@ -6,4 +6,8 @@ REQUIRED_DISTRO_FEATURES = "polkit"
inherit useradd
do_install:prepend() {
install -m 700 -d ${D}${datadir}/polkit-1/rules.d
}
FILES:${PN} += "${datadir}/polkit-1/rules.d"