mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
geoclue: fix polkit files only with modem-gps PACKAGECONFIG
* this directory is created only when modem-gps-source option is enabled in meson * fix indentation to use 4 spaces instead of tabs Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -38,9 +38,11 @@ USERADD_PACKAGES = "${PN}"
|
|||||||
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd"
|
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd"
|
||||||
|
|
||||||
do_install:append() {
|
do_install:append() {
|
||||||
#Fix up permissions on polkit rules.d to work with rpm4 constraints
|
if ${@bb.utils.contains('PACKAGECONFIG', 'modem-gps', 'true', 'false', d)}; then
|
||||||
chmod 700 ${D}/${datadir}/polkit-1/rules.d
|
# Fix up permissions on polkit rules.d to work with rpm4 constraints
|
||||||
chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
|
chmod 700 ${D}/${datadir}/polkit-1/rules.d
|
||||||
|
chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
FILES:${PN} += " \
|
FILES:${PN} += " \
|
||||||
|
|||||||
Reference in New Issue
Block a user