summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/polkit/polkit_125.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/polkit/polkit_125.bb')
-rw-r--r--meta-oe/recipes-extended/polkit/polkit_125.bb64
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 @@
1SUMMARY = "Polkit Authorization Framework"
2DESCRIPTION = "The polkit package is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes."
3HOMEPAGE = "http://www.freedesktop.org/wiki/Software/polkit"
4LICENSE = "LGPL-2.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb"
6BUGTRACKER = "https://github.com/polkit-org/polkit/issues"
7
8SRC_URI = "git://github.com/polkit-org/polkit.git;protocol=https;branch=main"
9
10S = "${WORKDIR}/git"
11SRCREV = "112752c12da812a163dac67d7f675b60de8f7d7b"
12
13DEPENDS = "expat glib-2.0"
14
15inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check
16
17REQUIRED_DISTRO_FEATURES = "polkit"
18
19PACKAGECONFIG = " \
20 ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
21 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \
22 dbus \
23 mozjs \
24"
25PACKAGECONFIG[dbus] = ",,dbus"
26PACKAGECONFIG[gtk-doc] = "-Dgtk_doc=true,-Dgtk_doc=false,gtk-doc-native"
27PACKAGECONFIG[pam] = "-Dauthfw=pam,-Dauthfw=shadow,libpam,libpam"
28PACKAGECONFIG[systemd] = "-Dsession_tracking=logind,,systemd,,,consolekit elogind"
29PACKAGECONFIG[consolekit] = "-Dsession_tracking=ConsoleKit,,,consolekit,,systemd elogind"
30PACKAGECONFIG[elogind] = "-Dsession_tracking=libelogin,,elogind,,,systemd consolekit"
31PACKAGECONFIG[libs-only] = "-Dlibs-only=true,-Dlibs-only=false"
32
33# Default to mozjs javascript library
34PACKAGECONFIG[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.
38PACKAGECONFIG[duktape] = "-Djs_engine=duktape,,duktape,,,mozjs"
39
40USERADD_PACKAGES = "${PN}"
41USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd"
42
43SYSTEMD_SERVICE:${PN} = "${BPN}.service"
44SYSTEMD_AUTO_ENABLE = "disable"
45
46do_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
54FILES:${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"