2009-11-29 00:08:14 +01:00
|
|
|
# Template file for 'polkit'
|
|
|
|
pkgname=polkit
|
2010-10-22 21:33:08 +02:00
|
|
|
version=0.98
|
2009-11-29 00:08:14 +01:00
|
|
|
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
|
|
|
|
build_style=gnu_configure
|
2010-01-10 18:05:06 +01:00
|
|
|
configure_args="--disable-static --localstatedir=/var --with-os-type=gentoo"
|
2009-11-29 00:08:14 +01:00
|
|
|
short_desc="Authorization Toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2010-10-22 21:33:08 +02:00
|
|
|
checksum=eda8493b438130dc7ee4f85099936beb35a62ef0fd0d1cd5b22c3c9613217f02
|
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."
|
|
|
|
|
2010-01-21 03:33:26 +01:00
|
|
|
replaces="PolicyKit>=0"
|
2010-04-23 12:13:57 +02:00
|
|
|
subpackages="gir-polkit polkit-devel"
|
2010-01-10 18:05:06 +01:00
|
|
|
Add_dependency run glib
|
|
|
|
Add_dependency run glibc
|
|
|
|
Add_dependency run expat
|
|
|
|
Add_dependency run eggdbus
|
|
|
|
Add_dependency run pam
|
2010-01-18 22:11:51 +01:00
|
|
|
Add_dependency build pkg-config
|
2009-11-29 00:08:14 +01:00
|
|
|
Add_dependency build intltool
|
|
|
|
Add_dependency build libxslt
|
2010-04-23 12:13:57 +02:00
|
|
|
Add_dependency build gobject-introspection
|
2010-01-10 18:05:06 +01:00
|
|
|
Add_dependency build glib-devel
|
|
|
|
Add_dependency build expat-devel
|
|
|
|
Add_dependency build eggdbus-devel
|
|
|
|
Add_dependency build pam-devel
|
2009-11-29 00:08:14 +01:00
|
|
|
|
|
|
|
post_install()
|
|
|
|
{
|
|
|
|
mkdir -p ${DESTDIR}/etc/pam.d
|
2010-04-15 03:37:37 +02:00
|
|
|
cat > ${DESTDIR}/etc/pam.d/polkit-1 <<_EOF
|
2009-11-29 00:08:14 +01:00
|
|
|
auth requisite pam_nologin.so
|
|
|
|
auth required pam_env.so
|
|
|
|
auth required pam_unix.so
|
|
|
|
account required pam_unix.so
|
|
|
|
session required pam_limits.so
|
|
|
|
session required pam_unix.so
|
|
|
|
password required pam_unix.so
|
|
|
|
_EOF
|
|
|
|
chmod 644 ${DESTDIR}/etc/pam.d/polkit-1
|
|
|
|
}
|