diff options
author | Markus Volk <f_l_k@t-online.de> | 2022-11-27 14:45:08 +0100 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-11-28 11:20:00 -0800 |
commit | 64e7d871aa14806c60151c46f5c48ab3f1bd99b3 (patch) | |
tree | fb0f32dc622a56b5b1d41775636d294adb1ca116 | |
parent | c8f1ded75886e12a0874533b0fc581b7bbb25365 (diff) | |
download | meta-openembedded-64e7d871aa14806c60151c46f5c48ab3f1bd99b3.tar.gz |
polkit: add recipe for v122
autotools buildsystem has been dropped
Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-extended/polkit/polkit_122.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta-oe/recipes-extended/polkit/polkit_122.bb b/meta-oe/recipes-extended/polkit/polkit_122.bb new file mode 100644 index 0000000000..dfa6c14a4b --- /dev/null +++ b/meta-oe/recipes-extended/polkit/polkit_122.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | SUMMARY = "PolicyKit 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 | |||
7 | SRC_URI = "git://github.com/freedesktop/polkit.git;protocol=https;branch=master" | ||
8 | |||
9 | S = "${WORKDIR}/git" | ||
10 | SRCREV = "da87c5698019897dd731bb2cbb54ebd9c9481f52" | ||
11 | |||
12 | DEPENDS = "expat glib-2.0" | ||
13 | |||
14 | inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check | ||
15 | |||
16 | REQUIRED_DISTRO_FEATURES = "polkit" | ||
17 | |||
18 | PACKAGECONFIG = " \ | ||
19 | ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ | ||
20 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \ | ||
21 | dbus \ | ||
22 | mozjs \ | ||
23 | " | ||
24 | PACKAGECONFIG[dbus] = ",,dbus" | ||
25 | PACKAGECONFIG[gtk-doc] = "-Dgtk_doc=true,-Dgtk_doc=false,gtk-doc-native" | ||
26 | PACKAGECONFIG[pam] = "-Dauthfw=pam,-Dauthfw=shadow,libpam,libpam" | ||
27 | PACKAGECONFIG[systemd] = "-Dsession_tracking=libsystemd-login,-Dsession_tracking=ConsoleKit,systemd" | ||
28 | PACKAGECONFIG[consolekit] = ",,,consolekit" | ||
29 | |||
30 | # Default to mozjs javascript library | ||
31 | PACKAGECONFIG[mozjs] = "-Djs_engine=mozjs,,mozjs-102,,,duktape" | ||
32 | # duktape javascript engine is much smaller and faster but is not compatible with | ||
33 | # same javascript standards as mozjs. For example array.includes() function is not | ||
34 | # supported. Test rule compatibility when switching to duktape. | ||
35 | PACKAGECONFIG[duktape] = "-Djs_engine=duktape,,duktape,,,mozjs" | ||
36 | |||
37 | USERADD_PACKAGES = "${PN}" | ||
38 | USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd" | ||
39 | |||
40 | SYSTEMD_SERVICE:${PN} = "${BPN}.service" | ||
41 | SYSTEMD_AUTO_ENABLE = "disable" | ||
42 | |||
43 | do_install:append() { | ||
44 | #Fix up permissions on polkit rules.d to work with rpm4 constraints | ||
45 | chmod 700 ${D}/${datadir}/polkit-1/rules.d | ||
46 | chown polkitd:root ${D}/${datadir}/polkit-1/rules.d | ||
47 | } | ||
48 | |||
49 | FILES:${PN} += "${libdir}/polkit-1 ${datadir}" | ||