b624b06c23
By default the polkit will autodetect if systemd is available and setup the configuraton accordingly, potentially contaminating sstate. In this patch systemd is explicitly enabled/disabled. When enabled, polkit will use systemd for session tarcking, otherwise it will use ConsoleKit. (From OE-Core rev: 67c13656343d55ae9d1c79dcace5c79004c4c186) Signed-off-by: Radu Moisan <radu.moisan@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
45 lines
2 KiB
BlitzBasic
45 lines
2 KiB
BlitzBasic
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"
|
|
|
|
DEPENDS = "expat glib-2.0 intltool-native gobject-introspection-stub"
|
|
|
|
PACKAGECONFIG = "${@base_contains('DISTRO_FEATURES', 'pam', 'pam', '', d)} \
|
|
${@base_contains('DISTRO_FEATURES','systemd','systemd','consolekit',d)}"
|
|
|
|
PACKAGECONFIG[pam] = "--with-authfw=pam,--with-authfw=shadow,libpam,libpam"
|
|
PACKAGECONFIG[systemd] = "--enable-systemd,--disable-systemd,systemd"
|
|
# there is no --enable/--disable option for consolekit and it's not picked by shlibs, so add it to RDEPENDS
|
|
PACKAGECONFIG[consolekit] = ",,,consolekit"
|
|
|
|
PR = "r9"
|
|
|
|
PAM_SRC_URI = "file://polkit-1_pam.patch"
|
|
SRC_URI = "http://www.freedesktop.org/software/polkit/releases/polkit-${PV}.tar.gz \
|
|
${@base_contains('DISTRO_FEATURES', 'pam', '${PAM_SRC_URI}', '', d)} \
|
|
file://0001-PolkitUnixSession-Set-error-if-we-cannot-find-a-sess.patch \
|
|
file://0002-PolkitUnixSession-Actually-return-TRUE-if-a-session-.patch \
|
|
file://obsolete_automake_macros.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "e380b4c6fb1e7bccf854e92edc0a8ce1"
|
|
SRC_URI[sha256sum] = "6b0a13d8381e4a7b7e37c18a54595191b50757e0fcd186cd9918e9ad0f18c7f9"
|
|
|
|
EXTRA_OECONF = "--with-os-type=moblin --disable-man-pages --disable-introspection"
|
|
|
|
inherit autotools gtk-doc pkgconfig
|
|
|
|
do_install_append() {
|
|
rm -f ${D}${libdir}/${BPN}-1/extensions/*.a
|
|
}
|
|
|
|
FILES_${PN} += "${libdir}/${BPN}-1/extensions/*.so \
|
|
${datadir}/${BPN}-1/actions/* \
|
|
${datadir}/dbus-1/system-services/*"
|
|
FILES_${PN}-dbg += "${libdir}/${BPN}-1/extensions/.debug/*.so"
|
|
FILES_${PN}-dev += "${libdir}/${BPN}-1/extensions/*.la "
|
|
|