2017-12-12 20:35:45 +00:00
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 "
2022-05-29 18:18:27 +00:00
LICENSE = " LGPL-2.0-or-later "
2017-12-12 20:35:45 +00:00
LIC_FILES_CHKSUM = " file://COPYING;md5=155db86cdbafa7532b41f390409283eb \
file : / / src / polkit / polkit . h ;beginline=1;endline=20;md5=0a8630b0133176d0504c87a0ded39db4"
2022-05-29 18:18:27 +00:00
DEPENDS = " expat glib-2.0 intltool-native duktape "
2017-12-12 20:35:45 +00:00
2021-05-05 12:45:55 +00:00
inherit autotools gtk - doc pkgconfig useradd systemd gobject - introspection features_check
2020-07-08 14:42:25 +00:00
REQUIRED_DISTRO_FEATURES = " polkit "
2017-12-12 20:35:45 +00:00
PACKAGECONFIG = " ${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)} \
$ { @ bb . utils .contains ( ' DISTRO_FEATURES ' , ' systemd ' , ' systemd ' , \
bb . utils .contains ( ' DISTRO_FEATURES ' , ' x11 ' , ' consolekit ' , ' ' , d ) , d ) } \
"
PACKAGECONFIG [ pam ] = " --with-authfw=pam,--with-authfw=shadow,libpam,libpam "
PACKAGECONFIG [ systemd ] = " --enable-libsystemd-login=yes --with-systemdsystemunitdir=${systemd_unitdir}/system/,--enable-libsystemd-login=no --with-systemdsystemunitdir=,systemd "
# there is no - - enable / - - disable option for consolekit and it ' s not picked by shlibs , so add it to RDEPENDS
2019-01-15 17:02:49 +00:00
PACKAGECONFIG [ consolekit ] = " ,,,consolekit "
2017-12-12 20:35:45 +00:00
PAM_SRC_URI = " file://polkit-1_pam.patch "
2020-07-08 14:42:25 +00:00
SRC_URI = " http://www.freedesktop.org/software/polkit/releases/polkit-${PV}.tar.gz \
$ { @ bb . utils .contains ( ' DISTRO_FEATURES ' , ' pam ' , ' $ { PAM_SRC_URI } ' , ' ' , d ) } \
2022-05-29 18:18:27 +00:00
file : / / 0003 - make - netgroup - support - optional . patch \
file : / / 0001 - pkexec - local - privilege - escalation - CVE - 2021 - 4034. patch \
file : / / 0002 - CVE - 2021 - 4115 - GHSL - 2021 - 077 - fix . patch \
file : / / 0003 - Added - support - for - duktape - as - JS - engine . patch \
2020-07-08 14:42:25 +00:00
"
2022-05-29 18:18:27 +00:00
SRC_URI [ sha256sum ] = " c8579fdb86e94295404211285fee0722ad04893f0213e571bd75c00972fd1f5c "
2017-12-12 20:35:45 +00:00
2019-01-15 17:02:49 +00:00
EXTRA_OECONF = " --with-os-type=moblin \
- - disable - man - pages \
- - disable - libelogind \
2022-05-29 18:18:27 +00:00
- - with - duktape \
2019-01-15 17:02:49 +00:00
"
2017-12-12 20:35:45 +00:00
2022-05-29 18:18:27 +00:00
do_configure : prepend ( ) {
rm - f $ { S } / buildutil / lt * .m4 $ { S } / buildutil / libtool . m4
2020-10-30 18:55:28 +00:00
}
2022-05-29 18:18:27 +00:00
do_compile : prepend ( ) {
2017-12-12 20:35:45 +00:00
export GIR_EXTRA_LIBS_PATH = " ${B}/src/polkit/.libs "
}
PACKAGES = + " ${PN}-examples "
2022-05-29 18:18:27 +00:00
FILES : $ { PN } : append = " \
2017-12-12 20:35:45 +00:00
$ { libdir } / $ { BPN } - 1 \
$ { nonarch_libdir } / $ { BPN } - 1 \
$ { datadir } / dbus - 1 \
$ { datadir } / $ { BPN } - 1 \
2018-03-24 18:26:14 +00:00
$ { datadir } / gettext \
2017-12-12 20:35:45 +00:00
"
2022-05-29 18:18:27 +00:00
FILES : $ { PN } - examples = " ${bindir}/*example* "
2017-12-12 20:35:45 +00:00
USERADD_PACKAGES = " ${PN} "
2022-05-29 18:18:27 +00:00
USERADD_PARAM : $ { PN } = " --system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 polkitd "
2017-12-12 20:35:45 +00:00
2022-05-29 18:18:27 +00:00
SYSTEMD_SERVICE : $ { PN } = " ${BPN}.service "
2017-12-12 20:35:45 +00:00
SYSTEMD_AUTO_ENABLE = " disable "