summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-extended/polkit/polkit_126.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-extended/polkit/polkit_126.bb')
-rw-r--r--meta-oe/recipes-extended/polkit/polkit_126.bb65
1 files changed, 65 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit_126.bb b/meta-oe/recipes-extended/polkit/polkit_126.bb
new file mode 100644
index 0000000000..0438c4e464
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/polkit_126.bb
@@ -0,0 +1,65 @@
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
10SRCREV = "d627b0d1e1108563658dabe3fb8d2a065e64df10"
11
12DEPENDS = "expat glib-2.0 duktape"
13
14inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check
15
16REQUIRED_DISTRO_FEATURES = "polkit"
17
18# Prevent meson.build to try to autodetect host OS (which could lead to
19# non-reproducibility)
20EXTRA_OEMESON = "-Dos_type=openembedded"
21
22PACKAGECONFIG = " \
23 ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \
25 dbus \
26"
27PACKAGECONFIG[dbus] = ",,dbus"
28PACKAGECONFIG[gtk-doc] = "-Dgtk_doc=true,-Dgtk_doc=false,gtk-doc-native"
29PACKAGECONFIG[pam] = "-Dauthfw=pam,-Dauthfw=shadow,libpam,libpam"
30PACKAGECONFIG[systemd] = "-Dsession_tracking=logind,,systemd,,,consolekit elogind"
31PACKAGECONFIG[consolekit] = "-Dsession_tracking=ConsoleKit,,,consolekit,,systemd elogind"
32PACKAGECONFIG[elogind] = "-Dsession_tracking=libelogin,,elogind,,,systemd consolekit"
33PACKAGECONFIG[libs-only] = "-Dlibs-only=true,-Dlibs-only=false"
34
35USERADD_PACKAGES = "${PN}"
36USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd"
37
38SYSTEMD_SERVICE:${PN} = "${BPN}.service"
39SYSTEMD_AUTO_ENABLE = "disable"
40
41do_install:append() {
42 #Fix up permissions on polkit rules.d to work with rpm4 constraints
43 if ${@bb.utils.contains('PACKAGECONFIG', 'libs-only', 'false', 'true', d)}; then
44 chmod 700 ${D}/${sysconfdir}/polkit-1/rules.d
45 chown polkitd:root ${D}/${sysconfdir}/polkit-1/rules.d
46 fi
47
48 # Polkit unconditionally installs a systemd service, remove it on SysVinit
49 # systems to avoid "installed but not packaged file" error.
50 if ${@bb.utils.contains('DISTRO_FEATURES', 'sysvinit', 'true', 'false', d)}; then
51 rm -rf ${D}${nonarch_libdir}/systemd ${D}${libdir}/systemd
52 fi
53}
54
55FILES:${PN} += " \
56 ${libdir}/pam.d/polkit-1 \
57 ${libdir}/sysusers.d \
58 ${libdir}/tmpfiles.d \
59 ${libdir}/polkit-1 \
60 ${nonarch_libdir}/pam.d/polkit-1 \
61 ${nonarch_libdir}/sysusers.d \
62 ${nonarch_libdir}/tmpfiles.d \
63 ${nonarch_libdir}/polkit-1 \
64 ${datadir} \
65"