polkit: update for new systemd_services arg, own runtime dirs.

This commit is contained in:
Juan RP 2011-11-10 12:27:27 +01:00
parent 49419ee4c2
commit 8f790a07a5

View file

@ -1,7 +1,7 @@
# Template file for 'polkit' # Template file for 'polkit'
pkgname=polkit pkgname=polkit
version=0.102 version=0.102
revision=3 revision=4
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz" distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
build_style=gnu-configure build_style=gnu-configure
configure_args="--disable-static --with-os-type=gentoo" configure_args="--disable-static --with-os-type=gentoo"
@ -18,7 +18,7 @@ long_desc="
to granting access to privileged operations (like calling the HAL Mount() to granting access to privileged operations (like calling the HAL Mount()
method) for unprivileged (desktop) applications." method) for unprivileged (desktop) applications."
systemd_services="polkitd.service" systemd_services="polkitd.service on"
replaces="PolicyKit>=0" replaces="PolicyKit>=0"
subpackages="polkit-devel" subpackages="polkit-devel"
@ -36,8 +36,13 @@ Add_dependency build glib-devel
Add_dependency build expat-devel Add_dependency build expat-devel
Add_dependency build pam-devel Add_dependency build pam-devel
post_install() post_install() {
{
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1 vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
vinstall ${FILESDIR}/polkitd.service 644 lib/systemd/system vinstall ${FILESDIR}/polkitd.service 644 lib/systemd/system
for f in 10-vendor 20-org 30-site 50-local 90-mandatory; do
vmkdir etc/polkit-1/localauthority/${f}.d
touch ${DESTDIR}/etc/polkit-1/localauthority/${f}.d/.owned
vmkdir var/lib/polkit-1/localauthority/${f}.d
touch ${DESTDIR}/var/lib/polkit-1/localauthority/${f}.d/.owned
done
} }