45 lines
1.6 KiB
Text
45 lines
1.6 KiB
Text
# Template file for 'polkit'
|
|
pkgname=polkit
|
|
version=0.103
|
|
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --with-os-type=gentoo"
|
|
short_desc="Authorization Toolkit"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.freedesktop.org/wiki/Software/PolicyKit"
|
|
license="GPL-2"
|
|
checksum=36607c8ce576980ee55bd12bab1944f13217eb8e9d04ab56022545861ece3bc5
|
|
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."
|
|
|
|
systemd_services="polkitd.service on"
|
|
replaces="PolicyKit>=0"
|
|
subpackages="polkit-devel"
|
|
make_dirs="
|
|
/etc/polkit-1/localauthority 700 root root
|
|
/var/lib/polkit-1 700 root root"
|
|
|
|
Add_dependency build pkg-config
|
|
Add_dependency build intltool
|
|
Add_dependency build libxslt
|
|
Add_dependency build docbook-xsl
|
|
Add_dependency build gobject-introspection
|
|
Add_dependency build glib-devel
|
|
Add_dependency build expat-devel
|
|
Add_dependency build pam-devel
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
|
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
|
|
}
|