diff options
Diffstat (limited to 'meta-oe/recipes-extended/polkit/polkit_125.bb')
| -rw-r--r-- | meta-oe/recipes-extended/polkit/polkit_125.bb | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit_125.bb b/meta-oe/recipes-extended/polkit/polkit_125.bb new file mode 100644 index 0000000000..fe1ee467c3 --- /dev/null +++ b/meta-oe/recipes-extended/polkit/polkit_125.bb | |||
| @@ -0,0 +1,64 @@ | |||
| 1 | SUMMARY = "Polkit Authorization Framework" | ||
| 2 | DESCRIPTION = "The polkit package is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes." | ||
| 3 | HOMEPAGE = "http://www.freedesktop.org/wiki/Software/polkit" | ||
| 4 | LICENSE = "LGPL-2.0-or-later" | ||
| 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" | ||
| 6 | BUGTRACKER = "https://github.com/polkit-org/polkit/issues" | ||
| 7 | |||
| 8 | SRC_URI = "git://github.com/polkit-org/polkit.git;protocol=https;branch=main" | ||
| 9 | |||
| 10 | S = "${WORKDIR}/git" | ||
| 11 | SRCREV = "112752c12da812a163dac67d7f675b60de8f7d7b" | ||
| 12 | |||
| 13 | DEPENDS = "expat glib-2.0" | ||
| 14 | |||
| 15 | inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check | ||
| 16 | |||
| 17 | REQUIRED_DISTRO_FEATURES = "polkit" | ||
| 18 | |||
| 19 | PACKAGECONFIG = " \ | ||
| 20 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ | ||
| 21 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \ | ||
| 22 | dbus \ | ||
| 23 | mozjs \ | ||
| 24 | " | ||
| 25 | PACKAGECONFIG[dbus] = ",,dbus" | ||
| 26 | PACKAGECONFIG[gtk-doc] = "-Dgtk_doc=true,-Dgtk_doc=false,gtk-doc-native" | ||
| 27 | PACKAGECONFIG[pam] = "-Dauthfw=pam,-Dauthfw=shadow,libpam,libpam" | ||
| 28 | PACKAGECONFIG[systemd] = "-Dsession_tracking=logind,,systemd,,,consolekit elogind" | ||
| 29 | PACKAGECONFIG[consolekit] = "-Dsession_tracking=ConsoleKit,,,consolekit,,systemd elogind" | ||
| 30 | PACKAGECONFIG[elogind] = "-Dsession_tracking=libelogin,,elogind,,,systemd consolekit" | ||
| 31 | PACKAGECONFIG[libs-only] = "-Dlibs-only=true,-Dlibs-only=false" | ||
| 32 | |||
| 33 | # Default to mozjs javascript library | ||
| 34 | PACKAGECONFIG[mozjs] = "-Djs_engine=mozjs,,mozjs-115,,,duktape" | ||
| 35 | # duktape javascript engine is much smaller and faster but is not compatible with | ||
| 36 | # same javascript standards as mozjs. For example array.includes() function is not | ||
| 37 | # supported. Test rule compatibility when switching to duktape. | ||
| 38 | PACKAGECONFIG[duktape] = "-Djs_engine=duktape,,duktape,,,mozjs" | ||
| 39 | |||
| 40 | USERADD_PACKAGES = "${PN}" | ||
| 41 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd" | ||
| 42 | |||
| 43 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | ||
| 44 | SYSTEMD_AUTO_ENABLE = "disable" | ||
| 45 | |||
| 46 | do_install:append() { | ||
| 47 | #Fix up permissions on polkit rules.d to work with rpm4 constraints | ||
| 48 | if ${@bb.utils.contains('PACKAGECONFIG', 'libs-only', 'false', 'true', d)}; then | ||
| 49 | chmod 700 ${D}/${sysconfdir}/polkit-1/rules.d | ||
| 50 | chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d | ||
| 51 | fi | ||
| 52 | } | ||
| 53 | |||
| 54 | FILES:${PN} += " \ | ||
| 55 | ${libdir}/pam.d/polkit-1 \ | ||
| 56 | ${libdir}/sysusers.d \ | ||
| 57 | ${libdir}/tmpfiles.d \ | ||
| 58 | ${libdir}/polkit-1 \ | ||
| 59 | ${nonarch_libdir}/pam.d/polkit-1 \ | ||
| 60 | ${nonarch_libdir}/sysusers.d \ | ||
| 61 | ${nonarch_libdir}/tmpfiles.d \ | ||
| 62 | ${nonarch_libdir}/polkit-1 \ | ||
| 63 | ${datadir} \ | ||
| 64 | " | ||
