summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-gnome/policykit/policykit-gnome_0.96.bb25
-rw-r--r--recipes-gnome/policykit/policykit_0.96.bb66
2 files changed, 91 insertions, 0 deletions
diff --git a/recipes-gnome/policykit/policykit-gnome_0.96.bb b/recipes-gnome/policykit/policykit-gnome_0.96.bb
new file mode 100644
index 0000000000..8720ea9fec
--- /dev/null
+++ b/recipes-gnome/policykit/policykit-gnome_0.96.bb
@@ -0,0 +1,25 @@
1HOMEPAGE = "http://www.packagekit.org/"
2DEPENDS = "policykit libgnome"
3LICENSE = "LGPLv2"
4
5PR = "r1"
6
7SRC_URI = "http://hal.freedesktop.org/releases/polkit-gnome-${PV}.tar.bz2;name=polkitgnome"
8SRC_URI[polkitgnome.md5sum] = "611cf39fba2945320fc7a9ec49087e69"
9SRC_URI[polkitgnome.sha256sum] = "0d96c8032d658a2e1eef8adfbeafff0f569ef0cf68b35915423acc00873c8a92"
10
11EXTRA_OECONF = " --disable-scrollkeeper \
12 --disable-man-pages \
13 --disable-examples \
14 --disable-gtk-doc \
15 --enable-introspection=no \
16"
17
18S = "${WORKDIR}/polkit-gnome-${PV}"
19
20inherit autotools pkgconfig
21
22FILES_${PN} += " ${datadir}/dbus-1 \
23 ${datadir}/PolicyKit \
24 "
25
diff --git a/recipes-gnome/policykit/policykit_0.96.bb b/recipes-gnome/policykit/policykit_0.96.bb
new file mode 100644
index 0000000000..d2bc3dd255
--- /dev/null
+++ b/recipes-gnome/policykit/policykit_0.96.bb
@@ -0,0 +1,66 @@
1HOMEPAGE = "http://www.packagekit.org/"
2DEPENDS = "eggdbus libpam expat dbus-glib intltool-native"
3LICENSE = "LGPLv2"
4
5PR = "r2"
6
7SRC_URI = "http://hal.freedesktop.org/releases/polkit-${PV}.tar.gz;name=polkit \
8 "
9
10SRC_URI[polkit.md5sum] = "e0a06da501b04ed3bab986a9df5b5aa2"
11SRC_URI[polkit.sha256sum] = "3426ca917210b2a5525732559368c18f983a4c39a6a55c5dddba26071bd8054a"
12
13EXTRA_OECONF = "--with-authfw=pam \
14 --with-os-type=${DISTRO} \
15 --disable-man-pages \
16 --disable-gtk-doc \
17 --enable-introspection=no \
18"
19
20S = "${WORKDIR}/polkit-${PV}"
21
22inherit autotools pkgconfig
23
24do_install_append () {
25 install -d ${D}${localstatedir}/run/PolicyKit
26 sed -i -e s:system:common:g ${D}${sysconfdir}/pam.d/*
27}
28
29FILES_${PN} += " ${datadir}/dbus-1 \
30 ${datadir}/PolicyKit ${datadir}/polkit-1\
31 ${localstatedir}/run/PolicyKit \
32 ${libdir}/polkit-1/extensions/*.so \
33"
34
35FILES_${PN}-dev += " ${libdir}/polkit-1/extensions/*a"
36
37pkg_postinst_${PN} () {
38 # can't do this offline
39 if [ "x$D" != "x" ]; then
40 exit 1
41 fi
42 grep "^polkituser:" /etc/group > /dev/null || addgroup polkituser
43 grep "^polkituser:" /etc/passwd > /dev/null || adduser --disabled-password --system --home /var/run/polkit polkituser --ingroup polkituser -g polkituser
44
45 # Fix owners
46 for i in /etc/polkit-1/localauthority /var/lib/polkit-1 ; do
47 mkdir -p $i
48 chown root $i
49 chmod 700 $i
50 done
51
52 for i in /usr/libexec/polkit-agent-helper-1 /usr/bin/pkexec ; do
53 chown root $i
54 chmod 4755 $i
55 done
56
57 DBUSPID=`pidof dbus-daemon`
58 if [ "x$DBUSPID" != "x" ]; then
59 /etc/init.d/dbus-1 force-reload
60 fi
61}
62
63pkg_postrm_${PN} () {
64 deluser polkituser || true
65 delgroup polkituser || true
66}