1 HOMEPAGE = "http://www.packagekit.org/"
2 DEPENDS = "eggdbus libpam expat dbus-glib intltool-native"
6 SRC_URI = "http://hal.freedesktop.org/releases/polkit-${PV}.tar.gz;name=polkit \
9 SRC_URI[polkit.md5sum] = "e0a06da501b04ed3bab986a9df5b5aa2"
10 SRC_URI[polkit.sha256sum] = "3426ca917210b2a5525732559368c18f983a4c39a6a55c5dddba26071bd8054a"
12 EXTRA_OECONF = "--with-authfw=pam \
13 --with-os-type=${DISTRO} \
16 --enable-introspection=no \
19 S = "${WORKDIR}/polkit-${PV}"
21 inherit autotools pkgconfig
23 do_install_append () {
24 install -d ${D}${localstatedir}/run/PolicyKit
27 FILES_${PN} += " ${datadir}/dbus-1 \
28 ${datadir}/PolicyKit ${datadir}/polkit-1\
29 ${localstatedir}/run/PolicyKit \
30 ${libdir}/polkit-1/extensions/*.so \
33 FILES_${PN}-dev += " ${libdir}/polkit-1/extensions/*a"
35 pkg_postinst_${PN} () {
36 # can't do this offline
37 if [ "x$D" != "x" ]; then
40 grep "^polkituser:" /etc/group > /dev/null || addgroup polkituser
41 grep "^polkituser:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/polkit polkituser --ingroup polkituser -g polkituser
44 for i in /etc/polkit-1/localauthority /var/lib/polkit-1 ; do
50 for i in /usr/libexec/polkit-agent-helper-1 /usr/bin/pkexec ; do
55 DBUSPID=`pidof dbus-daemon`
56 if [ "x$DBUSPID" != "x" ]; then
57 /etc/init.d/dbus-1 force-reload
62 deluser polkituser || true
63 delgroup polkituser || true