polkit: switch to systemd.

This commit is contained in:
Juan RP 2011-10-11 03:30:56 +02:00
parent fcb23579d7
commit 01afe0cfb3
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,16 @@
[Unit]
Description=Policy Manager
After=syslog.target
[Service]
Type=dbus
BusName=org.freedesktop.PolicyKit1
ExecStart=/usr/libexec/polkitd
StandardOutput=syslog
[Install]
# We pull this in by graphical.target instead of waiting for the bus
# activation, to speed things up a little: gdm uses this anyway so it is nice
# if it is already around when gdm wants to use it and doesn't have to wait for
# it.
WantedBy=graphical.target

View file

@ -1,6 +1,7 @@
# Template file for 'polkit'
pkgname=polkit
version=0.102
revision=1
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--disable-static --localstatedir=/var --with-os-type=gentoo"
@ -17,12 +18,15 @@ long_desc="
to granting access to privileged operations (like calling the HAL Mount()
method) for unprivileged (desktop) applications."
systemd_services="polkitd.service"
replaces="PolicyKit>=0"
subpackages="polkit-devel"
Add_dependency run glib
Add_dependency run glibc
Add_dependency run expat
Add_dependency run pam
Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build libxslt
@ -45,4 +49,5 @@ session required pam_unix.so
password required pam_unix.so
_EOF
chmod 644 ${DESTDIR}/etc/pam.d/polkit-1
vinstall ${FILESDIR}/polkitd.service 644 lib/systemd/system
}