46 lines
1.3 KiB
Plaintext
46 lines
1.3 KiB
Plaintext
# Template file for 'polkit'
|
|
pkgname=polkit
|
|
version=0.112
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--disable-static --enable-systemd=yes --with-authfw=pam
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
|
short_desc="Authorization Toolkit"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
homepage="http://www.freedesktop.org/wiki/Software/polkit"
|
|
license="GPL-2"
|
|
distfiles="http://www.freedesktop.org/software/polkit/releases/polkit-${version}.tar.gz"
|
|
checksum=d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
|
|
|
|
hostmakedepends="pkg-config intltool libxslt docbook-xsl gobject-introspection"
|
|
makedepends="glib-devel expat-devel pam-devel systemd-devel js-devel shadow"
|
|
|
|
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
|
|
}
|
|
|
|
post_install() {
|
|
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
|
vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf
|
|
}
|
|
|
|
polkit-devel_package() {
|
|
depends="libglib-devel polkit>=${version}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/gir-1.0
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
polkit_package() {
|
|
system_accounts="polkitd"
|
|
depends="shadow"
|
|
pkg_install() {
|
|
vmove all
|
|
}
|
|
}
|