2009-11-29 00:08:14 +01:00
|
|
|
# Template file for 'polkit'
|
|
|
|
pkgname=polkit
|
2013-05-30 23:48:36 +02:00
|
|
|
version=0.111
|
|
|
|
revision=1
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2012-10-06 15:32:40 +02:00
|
|
|
configure_args="--disable-static --enable-systemd=yes --with-authfw=pam
|
2012-11-21 00:02:33 +01:00
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
2009-11-29 00:08:14 +01:00
|
|
|
short_desc="Authorization Toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-07 14:08:48 +01:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/polkit"
|
2011-08-18 09:14:31 +02:00
|
|
|
license="GPL-2"
|
2013-01-07 14:08:48 +01:00
|
|
|
distfiles="http://www.freedesktop.org/software/polkit/releases/polkit-${version}.tar.gz"
|
2013-05-30 23:48:36 +02:00
|
|
|
checksum=02ae544547211b687818c97bcbf19bf6b8b5be7fda93000525a8765c7bed1ea1
|
2012-11-21 00:02:33 +01:00
|
|
|
|
2013-05-30 23:48:36 +02:00
|
|
|
hostmakedepends="pkg-config intltool libxslt docbook-xsl gobject-introspection"
|
|
|
|
makedepends="glib-devel expat-devel pam-devel systemd-devel js-devel shadow"
|
2011-10-11 03:30:56 +02:00
|
|
|
|
2013-05-30 23:57:51 +02:00
|
|
|
pre_configure() {
|
|
|
|
# Drop requirement of /sys/fs/cgroup/systemd test in configure... WTF.
|
|
|
|
sed -e 's,/sys/fs/cgroup/systemd/,/sys/fs/cgroup,g' -i configure
|
|
|
|
}
|
|
|
|
|
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
|
2012-10-06 15:32:40 +02:00
|
|
|
vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf
|
2009-11-29 00:08:14 +01:00
|
|
|
}
|
2013-04-13 13:29:34 +02:00
|
|
|
|
|
|
|
polkit-devel_package() {
|
|
|
|
depends="libglib-devel polkit>=${version}"
|
2013-05-30 23:48:36 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 13:29:34 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/share/gir-1.0
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
polkit_package() {
|
|
|
|
system_accounts="polkitd"
|
|
|
|
depends="shadow"
|
|
|
|
pkg_install() {
|
2013-05-30 23:48:36 +02:00
|
|
|
vmove all
|
2013-04-13 13:29:34 +02:00
|
|
|
}
|
|
|
|
}
|