diff options
| -rw-r--r-- | meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb b/meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb index 0f889ca8fc..14d83ec521 100644 --- a/meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb +++ b/meta-oe/recipes-bsp/fwupd/fwupd_1.8.9.bb | |||
| @@ -13,7 +13,7 @@ UPSTREAM_CHECK_URI = "https://github.com/${BPN}/${BPN}/releases" | |||
| 13 | # Machine-specific as we examine MACHINE_FEATURES to decide whether to build the UEFI plugins | 13 | # Machine-specific as we examine MACHINE_FEATURES to decide whether to build the UEFI plugins |
| 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" | 14 | PACKAGE_ARCH = "${MACHINE_ARCH}" |
| 15 | 15 | ||
| 16 | inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages | 16 | inherit meson vala gobject-introspection systemd bash-completion pkgconfig gi-docgen ptest manpages useradd |
| 17 | 17 | ||
| 18 | GIDOCGEN_MESON_OPTION = 'docs' | 18 | GIDOCGEN_MESON_OPTION = 'docs' |
| 19 | GIDOCGEN_MESON_ENABLE_FLAG = 'docgen' | 19 | GIDOCGEN_MESON_ENABLE_FLAG = 'docgen' |
| @@ -115,6 +115,17 @@ DISABLE_NON_X86:x86 = "" | |||
| 115 | DISABLE_NON_X86:x86-64 = "" | 115 | DISABLE_NON_X86:x86-64 = "" |
| 116 | PACKAGECONFIG:remove = "${DISABLE_NON_X86}" | 116 | PACKAGECONFIG:remove = "${DISABLE_NON_X86}" |
| 117 | 117 | ||
| 118 | USERADD_PACKAGES = "${PN}" | ||
| 119 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd" | ||
| 120 | |||
| 121 | do_install:append() { | ||
| 122 | if ${@bb.utils.contains('PACKAGECONFIG', 'polkit', 'true', 'false', d)}; then | ||
| 123 | #Fix up permissions on polkit rules.d to work with rpm4 constraints | ||
| 124 | chmod 700 ${D}/${datadir}/polkit-1/rules.d | ||
| 125 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | ||
| 126 | fi | ||
| 127 | } | ||
| 128 | |||
| 118 | FILES:${PN} += "${libdir}/fwupd-plugins-* \ | 129 | FILES:${PN} += "${libdir}/fwupd-plugins-* \ |
| 119 | ${libdir}/fwupd-${PV} \ | 130 | ${libdir}/fwupd-${PV} \ |
| 120 | ${systemd_unitdir} \ | 131 | ${systemd_unitdir} \ |
