void-packages/srcpkgs/polkit/template
Juan RP 19f90eea8b polkit: fix polkit-1 pam file, bumprev.
--HG--
extra : convert_revision : f3b2e75a32edd6b5e0da7fd1e6f7d4ba2b58190a
2010-04-15 03:37:37 +02:00

48 lines
1.5 KiB
Text

# Template file for 'polkit'
pkgname=polkit
version=0.96
revision=2
distfiles="http://hal.freedesktop.org/releases/$pkgname-$version.tar.gz"
build_style=gnu_configure
configure_args="--disable-static --localstatedir=/var --with-os-type=gentoo"
short_desc="Authorization Toolkit"
maintainer="Juan RP <xtraeme@gmail.com>"
checksum=3426ca917210b2a5525732559368c18f983a4c39a6a55c5dddba26071bd8054a
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."
replaces="PolicyKit>=0"
subpackages="$pkgname-devel"
Add_dependency run glib
Add_dependency run glibc
Add_dependency run expat
Add_dependency run eggdbus
Add_dependency run pam
Add_dependency build pkg-config
Add_dependency build intltool
Add_dependency build libxslt
Add_dependency build gobject-introspection-devel
Add_dependency build glib-devel
Add_dependency build expat-devel
Add_dependency build eggdbus-devel
Add_dependency build pam-devel
post_install()
{
mkdir -p ${DESTDIR}/etc/pam.d
cat > ${DESTDIR}/etc/pam.d/polkit-1 <<_EOF
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
}