[meta-oe][PATCHv4] polkit: add recipe for v122


Markus Volk
 

autotools buildsystem has been dropped

Signed-off-by: Markus Volk <f_l_k@...>
---
meta-oe/recipes-extended/polkit/polkit_122.bb | 49 +++++++++++++++++++
1 file changed, 49 insertions(+)
create mode 100644 meta-oe/recipes-extended/polkit/polkit_122.bb

diff --git a/meta-oe/recipes-extended/polkit/polkit_122.bb b/meta-oe/reci=
pes-extended/polkit/polkit_122.bb
new file mode 100644
index 000000000..dfa6c14a4
--- /dev/null
+++ b/meta-oe/recipes-extended/polkit/polkit_122.bb
@@ -0,0 +1,49 @@
+SUMMARY =3D "PolicyKit Authorization Framework"
+DESCRIPTION =3D "The polkit package is an application-level toolkit for =
defining and handling the policy that allows unprivileged processes to sp=
eak to privileged processes."
+HOMEPAGE =3D "http://www.freedesktop.org/wiki/Software/polkit"
+LICENSE =3D "LGPL-2.0-or-later"
+LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D155db86cdbafa7532b41f39040928=
3eb"
+
+SRC_URI =3D "git://github.com/freedesktop/polkit.git;protocol=3Dhttps;br=
anch=3Dmaster"
+
+S =3D "${WORKDIR}/git"
+SRCREV =3D "da87c5698019897dd731bb2cbb54ebd9c9481f52"
+
+DEPENDS =3D "expat glib-2.0"
+
+inherit meson pkgconfig useradd systemd gettext gobject-introspection fe=
atures_check
+
+REQUIRED_DISTRO_FEATURES =3D "polkit"
+
+PACKAGECONFIG =3D " \
+ ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolek=
it', d)} \
+ dbus \
+ mozjs \
+"
+PACKAGECONFIG[dbus] =3D ",,dbus"
+PACKAGECONFIG[gtk-doc] =3D "-Dgtk_doc=3Dtrue,-Dgtk_doc=3Dfalse,gtk-doc-n=
ative"
+PACKAGECONFIG[pam] =3D "-Dauthfw=3Dpam,-Dauthfw=3Dshadow,libpam,libpam"
+PACKAGECONFIG[systemd] =3D "-Dsession_tracking=3Dlibsystemd-login,-Dsess=
ion_tracking=3DConsoleKit,systemd"
+PACKAGECONFIG[consolekit] =3D ",,,consolekit"
+
+# Default to mozjs javascript library
+PACKAGECONFIG[mozjs] =3D "-Djs_engine=3Dmozjs,,mozjs-102,,,duktape"
+# duktape javascript engine is much smaller and faster but is not compat=
ible with
+# same javascript standards as mozjs. For example array.includes() funct=
ion is not
+# supported. Test rule compatibility when switching to duktape.
+PACKAGECONFIG[duktape] =3D "-Djs_engine=3Dduktape,,duktape,,,mozjs"
+
+USERADD_PACKAGES =3D "${PN}"
+USERADD_PARAM:${PN} =3D "--system --no-create-home --user-group --home-d=
ir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd"
+
+SYSTEMD_SERVICE:${PN} =3D "${BPN}.service"
+SYSTEMD_AUTO_ENABLE =3D "disable"
+
+do_install:append() {
+ #Fix up permissions on polkit rules.d to work with rpm4 constraints
+ chmod 700 ${D}/${datadir}/polkit-1/rules.d
+ chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
+}
+
+FILES:${PN} +=3D "${libdir}/polkit-1 ${datadir}"
--=20
2.34.1


Markus Volk
 

fixed a typo

Am So, 27. Nov 2022 um 14:45:08 +0100 schrieb Markus Volk <f_l_k@...>:

autotools buildsystem has been dropped Signed-off-by: Markus Volk <f_l_k@...> --- meta-oe/recipes-extended/polkit/polkit_122.bb | 49 +++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 meta-oe/recipes-extended/polkit/polkit_122.bb 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 000000000..dfa6c14a4 --- /dev/null +++ b/meta-oe/recipes-extended/polkit/polkit_122.bb @@ -0,0 +1,49 @@ +SUMMARY = "PolicyKit Authorization Framework" +DESCRIPTION = "The polkit package is an application-level toolkit for defining and handling the policy that allows unprivileged processes to speak to privileged processes." +HOMEPAGE = "http://www.freedesktop.org/wiki/Software/polkit" +LICENSE = "LGPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=155db86cdbafa7532b41f390409283eb" + +SRC_URI = "git://github.com/freedesktop/polkit.git;protocol=https;branch=master" + +S = "${WORKDIR}/git" +SRCREV = "da87c5698019897dd731bb2cbb54ebd9c9481f52" + +DEPENDS = "expat glib-2.0" + +inherit meson pkgconfig useradd systemd gettext gobject-introspection features_check + +REQUIRED_DISTRO_FEATURES = "polkit" + +PACKAGECONFIG = " \ + ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \ + ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', 'consolekit', d)} \ + dbus \ + mozjs \ +" +PACKAGECONFIG[dbus] = ",,dbus" +PACKAGECONFIG[gtk-doc] = "-Dgtk_doc=true,-Dgtk_doc=false,gtk-doc-native" +PACKAGECONFIG[pam] = "-Dauthfw=pam,-Dauthfw=shadow,libpam,libpam" +PACKAGECONFIG[systemd] = "-Dsession_tracking=libsystemd-login,-Dsession_tracking=ConsoleKit,systemd" +PACKAGECONFIG[consolekit] = ",,,consolekit" + +# Default to mozjs javascript library +PACKAGECONFIG[mozjs] = "-Djs_engine=mozjs,,mozjs-102,,,duktape" +# duktape javascript engine is much smaller and faster but is not compatible with +# same javascript standards as mozjs. For example array.includes() function is not +# supported. Test rule compatibility when switching to duktape. +PACKAGECONFIG[duktape] = "-Djs_engine=duktape,,duktape,,,mozjs" + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 --shell /bin/nologin polkitd" + +SYSTEMD_SERVICE:${PN} = "${BPN}.service" +SYSTEMD_AUTO_ENABLE = "disable" + +do_install:append() { + #Fix up permissions on polkit rules.d to work with rpm4 constraints + chmod 700 ${D}/${datadir}/polkit-1/rules.d + chown polkitd:root ${D}/${datadir}/polkit-1/rules.d +} + +FILES:${PN} += "${libdir}/polkit-1 ${datadir}"
--
2.34.1