2009-11-28 23:08:14 +00:00
|
|
|
# Template file for 'polkit'
|
|
|
|
pkgname=polkit
|
2012-02-04 10:16:50 +00:00
|
|
|
version=0.104
|
2009-11-28 23:08:14 +00:00
|
|
|
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2011-10-16 17:46:38 +00:00
|
|
|
configure_args="--disable-static --with-os-type=gentoo"
|
2009-11-28 23:08:14 +00:00
|
|
|
short_desc="Authorization Toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2011-08-18 07:14:31 +00:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/PolicyKit"
|
|
|
|
license="GPL-2"
|
2012-02-04 10:16:50 +00:00
|
|
|
checksum=6b0a13d8381e4a7b7e37c18a54595191b50757e0fcd186cd9918e9ad0f18c7f9
|
2009-11-28 23:08:14 +00: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 11:27:27 +00:00
|
|
|
systemd_services="polkitd.service on"
|
2010-01-21 02:33:26 +00:00
|
|
|
replaces="PolicyKit>=0"
|
2011-03-02 19:36:07 +00:00
|
|
|
subpackages="polkit-devel"
|
2011-12-07 08:00:27 +00:00
|
|
|
make_dirs="
|
|
|
|
/etc/polkit-1/localauthority 700 root root
|
|
|
|
/var/lib/polkit-1 700 root root"
|
2011-10-11 01:30:56 +00:00
|
|
|
|
2010-01-18 21:11:51 +00:00
|
|
|
Add_dependency build pkg-config
|
2009-11-28 23:08:14 +00:00
|
|
|
Add_dependency build intltool
|
|
|
|
Add_dependency build libxslt
|
2011-07-03 07:03:22 +00:00
|
|
|
Add_dependency build docbook-xsl
|
2010-01-10 17:05:06 +00:00
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build expat-devel
|
|
|
|
Add_dependency build pam-devel
|
2012-02-04 10:16:50 +00:00
|
|
|
Add_dependency build gobject-introspection
|
2009-11-28 23:08:14 +00:00
|
|
|
|
2011-11-10 11:27:27 +00:00
|
|
|
post_install() {
|
2011-10-13 23:24:03 +00:00
|
|
|
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
2011-10-11 01:30:56 +00:00
|
|
|
vinstall ${FILESDIR}/polkitd.service 644 lib/systemd/system
|
2011-11-10 11:27:27 +00: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-28 23:08:14 +00:00
|
|
|
}
|