diff --git a/srcpkgs/polkit/files/polkitd.service b/srcpkgs/polkit/files/polkitd.service new file mode 100644 index 00000000000..3614de122bc --- /dev/null +++ b/srcpkgs/polkit/files/polkitd.service @@ -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 diff --git a/srcpkgs/polkit/template b/srcpkgs/polkit/template index 9ac9ba5599b..0242908448c 100644 --- a/srcpkgs/polkit/template +++ b/srcpkgs/polkit/template @@ -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 }