2017-12-12 15:35:45 -05: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 "
LICENSE = " LGPLv2+ "
LIC_FILES_CHKSUM = " file://COPYING;md5=155db86cdbafa7532b41f390409283eb \
file : / / src / polkit / polkit . h ;beginline=1;endline=20;md5=0a8630b0133176d0504c87a0ded39db4"
2019-01-15 12:02:49 -05:00
DEPENDS = " expat glib-2.0 intltool-native mozjs "
2017-12-12 15:35:45 -05:00
2020-07-08 10:42:25 -04:00
inherit autotools gtk - doc pkgconfig useradd systemd gobject - introspection
REQUIRED_DISTRO_FEATURES = " polkit "
2017-12-12 15:35:45 -05: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 12:02:49 -05:00
PACKAGECONFIG [ consolekit ] = " ,,,consolekit "
2017-12-12 15:35:45 -05:00
PAM_SRC_URI = " file://polkit-1_pam.patch "
2020-07-08 10:42:25 -04:00
SRC_URI = " http://www.freedesktop.org/software/polkit/releases/polkit-${PV}.tar.gz \
$ { @ bb . utils .contains ( ' DISTRO_FEATURES ' , ' pam ' , ' $ { PAM_SRC_URI } ' , ' ' , d ) } \
file : / / 0003 - make - netgroup - support - optional . patch \
"
SRC_URI [ md5sum ] = " 4b37258583393e83069a0e2e89c0162a "
SRC_URI [ sha256sum ] = " 88170c9e711e8db305a12fdb8234fac5706c61969b94e084d0f117d8ec5d34b1 "
2017-12-12 15:35:45 -05:00
2019-01-15 12:02:49 -05:00
EXTRA_OECONF = " --with-os-type=moblin \
- - disable - man - pages \
- - disable - libelogind \
2020-07-08 10:42:25 -04:00
- - enable - libsystemd - login \
2019-01-15 12:02:49 -05:00
"
2017-12-12 15:35:45 -05:00
do_compile_prepend ( ) {
export GIR_EXTRA_LIBS_PATH = " ${B}/src/polkit/.libs "
}
PACKAGES = + " ${PN}-examples "
FILES_ $ { PN } _ append = " \
$ { libdir } / $ { BPN } - 1 \
$ { nonarch_libdir } / $ { BPN } - 1 \
$ { datadir } / dbus - 1 \
$ { datadir } / $ { BPN } - 1 \
2018-03-24 14:26:14 -04:00
$ { datadir } / gettext \
2017-12-12 15:35:45 -05:00
"
FILES_ $ { PN } - examples = " ${bindir}/*example* "
USERADD_PACKAGES = " ${PN} "
USERADD_PARAM_ $ { PN } = " --system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 polkitd "
SYSTEMD_SERVICE_ $ { PN } = " ${BPN}.service "
SYSTEMD_AUTO_ENABLE = " disable "