diff options
| author | Martin Jansa <martin.jansa@gmail.com> | 2022-12-20 10:00:37 +0100 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-23 08:52:22 -0800 |
| commit | addf0065b3b668d7afba6cd59bb06603aec1d9f7 (patch) | |
| tree | 35e2e179151ac778352ba15116fa4ae9be399e86 | |
| parent | d2ad9efcd7d667276731082ecc4a9a6616c2febd (diff) | |
| download | meta-openembedded-addf0065b3b668d7afba6cd59bb06603aec1d9f7.tar.gz | |
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>
| -rw-r--r-- | meta-oe/recipes-navigation/geoclue/geoclue_2.6.0.bb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/meta-oe/recipes-navigation/geoclue/geoclue_2.6.0.bb b/meta-oe/recipes-navigation/geoclue/geoclue_2.6.0.bb index 61b37cd9e8..798a9c16b6 100644 --- a/meta-oe/recipes-navigation/geoclue/geoclue_2.6.0.bb +++ b/meta-oe/recipes-navigation/geoclue/geoclue_2.6.0.bb | |||
| @@ -38,9 +38,11 @@ USERADD_PACKAGES = "${PN}" | |||
| 38 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd" | 38 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd" |
| 39 | 39 | ||
| 40 | do_install:append() { | 40 | do_install:append() { |
| 41 | #Fix up permissions on polkit rules.d to work with rpm4 constraints | 41 | if ${@bb.utils.contains('PACKAGECONFIG', 'modem-gps', 'true', 'false', d)}; then |
| 42 | chmod 700 ${D}/${datadir}/polkit-1/rules.d | 42 | # Fix up permissions on polkit rules.d to work with rpm4 constraints |
| 43 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | 43 | chmod 700 ${D}/${datadir}/polkit-1/rules.d |
| 44 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | ||
| 45 | fi | ||
| 44 | } | 46 | } |
| 45 | 47 | ||
| 46 | FILES:${PN} += " \ | 48 | FILES:${PN} += " \ |
