2009-11-28 23:08:14 +00:00
|
|
|
# Template file for 'polkit'
|
|
|
|
pkgname=polkit
|
2013-09-19 06:14:02 +00:00
|
|
|
version=0.112
|
2014-01-23 22:58:22 +00:00
|
|
|
revision=2
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2012-10-06 13:32:40 +00:00
|
|
|
configure_args="--disable-static --enable-systemd=yes --with-authfw=pam
|
2014-01-23 22:58:22 +00:00
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system --with-os-type=void
|
|
|
|
--with-mozjs=mozjs-17.0 --enable-libsystemd-login=yes"
|
2009-11-28 23:08:14 +00:00
|
|
|
short_desc="Authorization Toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-01-07 13:08:48 +00:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/polkit"
|
2011-08-18 07:14:31 +00:00
|
|
|
license="GPL-2"
|
2013-01-07 13:08:48 +00:00
|
|
|
distfiles="http://www.freedesktop.org/software/polkit/releases/polkit-${version}.tar.gz"
|
2013-09-19 06:14:02 +00:00
|
|
|
checksum=d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
|
2012-11-20 23:02:33 +00:00
|
|
|
|
2014-01-23 22:58:22 +00:00
|
|
|
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
|
|
|
makedepends="libglib-devel expat-devel pam-devel systemd-devel mozjs17-devel shadow"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="shadow"
|
|
|
|
system_accounts="polkitd"
|
2011-10-11 01:30:56 +00:00
|
|
|
|
2014-01-23 22:58:22 +00:00
|
|
|
# Package build options
|
|
|
|
build_options="gir"
|
|
|
|
desc_option_gir="Enable support for building gobject introspection data"
|
|
|
|
|
|
|
|
# Disable gir for cross builds.
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends+=" automake libtool gettext-devel gtk-doc gobject-introspection"
|
|
|
|
else
|
|
|
|
build_options_default="gir"
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
configure_args+=" --enable-introspection"
|
|
|
|
hostmakedepends+=" gobject-introspection"
|
|
|
|
else
|
|
|
|
configure_args+=" --disable-introspection"
|
|
|
|
fi
|
|
|
|
|
2013-05-30 21:57:51 +00:00
|
|
|
pre_configure() {
|
2014-01-23 22:58:22 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
autoreconf -fi
|
|
|
|
fi
|
2013-05-30 21:57:51 +00:00
|
|
|
# Drop requirement of /sys/fs/cgroup/systemd test in configure... WTF.
|
|
|
|
sed -e 's,/sys/fs/cgroup/systemd/,/sys/fs/cgroup,g' -i configure
|
|
|
|
}
|
|
|
|
|
2014-01-23 22:58:22 +00:00
|
|
|
post_configure() {
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
sed -e "s,/usr/include/js-17.0,${XBPS_CROSS_BASE}/usr/include/js-17.0," -i src/polkitbackend/Makefile
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2011-11-10 11:27:27 +00:00
|
|
|
post_install() {
|
2011-10-13 23:24:03 +00:00
|
|
|
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
2012-10-06 13:32:40 +00:00
|
|
|
vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf
|
2009-11-28 23:08:14 +00:00
|
|
|
}
|
2013-04-13 11:29:34 +00:00
|
|
|
|
|
|
|
polkit-devel_package() {
|
2014-01-23 22:58:22 +00:00
|
|
|
depends="libglib-devel polkit>=${version}_${revision}"
|
2013-05-30 21:48:36 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 11:29:34 +00:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
2014-01-23 22:58:22 +00:00
|
|
|
if [ "$build_option_gir" ]; then
|
|
|
|
vmove "usr/share/gir-*"
|
|
|
|
fi
|
2013-09-19 06:14:02 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-13 11:29:34 +00:00
|
|
|
}
|
|
|
|
}
|