2009-11-29 00:08:14 +01:00
|
|
|
# Template file for 'polkit'
|
|
|
|
pkgname=polkit
|
2012-05-14 09:54:19 +02:00
|
|
|
version=0.105
|
2012-05-23 08:14:33 +02:00
|
|
|
revision=2
|
2012-05-14 09:54:19 +02:00
|
|
|
distfiles="http://www.freedesktop.org/software/polkit/releases/$pkgname-$version.tar.gz"
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-05-14 09:54:19 +02:00
|
|
|
configure_args="--disable-static --enable-systemd=yes"
|
2012-05-23 18:26:56 +02:00
|
|
|
makedepends="pkg-config intltool libxslt docbook-xsl glib-devel expat-devel pam-devel systemd-devel gobject-introspection"
|
2009-11-29 00:08:14 +01:00
|
|
|
short_desc="Authorization Toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-18 09:14:31 +02:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/PolicyKit"
|
|
|
|
license="GPL-2"
|
2012-05-14 09:54:19 +02:00
|
|
|
checksum=8fdc7cc8ba4750fcce1a4db9daa759c12afebc7901237e1c993c38f08985e1df
|
2009-11-29 00:08:14 +01:00
|
|
|
long_desc="
|
|
|
|
PolicyKit is an application-level toolkit for defining and handling the
|
|
|
|
policy that allows unprivileged processes to speak to privileged processes.
|
|
|
|
|
|
|
|
It is a framework for centralizing the decision making process with respect
|
|
|
|
to granting access to privileged operations (like calling the HAL Mount()
|
|
|
|
method) for unprivileged (desktop) applications."
|
|
|
|
|
2011-11-10 12:27:27 +01:00
|
|
|
systemd_services="polkitd.service on"
|
2010-01-21 03:33:26 +01:00
|
|
|
replaces="PolicyKit>=0"
|
2011-03-02 20:36:07 +01:00
|
|
|
subpackages="polkit-devel"
|
2011-12-07 09:00:27 +01:00
|
|
|
make_dirs="
|
|
|
|
/etc/polkit-1/localauthority 700 root root
|
|
|
|
/var/lib/polkit-1 700 root root"
|
2011-10-11 03:30:56 +02:00
|
|
|
|
2009-11-29 00:08:14 +01:00
|
|
|
|
2011-11-10 12:27:27 +01:00
|
|
|
post_install() {
|
2011-10-14 01:24:03 +02:00
|
|
|
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
2011-10-11 03:30:56 +02:00
|
|
|
vinstall ${FILESDIR}/polkitd.service 644 lib/systemd/system
|
2011-11-10 12:27:27 +01:00
|
|
|
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
|
2009-11-29 00:08:14 +01:00
|
|
|
}
|