mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
polkit: add systemd build option (on by default).
This commit is contained in:
parent
ca52da0cef
commit
f3ae3c6acd
1 changed files with 15 additions and 7 deletions
|
@ -1,11 +1,11 @@
|
||||||
# Template file for 'polkit'
|
# Template file for 'polkit'
|
||||||
pkgname=polkit
|
pkgname=polkit
|
||||||
version=0.112
|
version=0.112
|
||||||
revision=2
|
revision=3
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --enable-systemd=yes --with-authfw=pam
|
configure_args="--disable-static --with-authfw=pam
|
||||||
--with-systemdsystemunitdir=/usr/lib/systemd/system --with-os-type=void
|
--with-systemdsystemunitdir=/usr/lib/systemd/system --with-os-type=void
|
||||||
--with-mozjs=mozjs-17.0 --enable-libsystemd-login=yes"
|
--with-mozjs=mozjs-17.0"
|
||||||
short_desc="Authorization Toolkit"
|
short_desc="Authorization Toolkit"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
homepage="http://www.freedesktop.org/wiki/Software/polkit"
|
homepage="http://www.freedesktop.org/wiki/Software/polkit"
|
||||||
|
@ -14,19 +14,20 @@ distfiles="http://www.freedesktop.org/software/polkit/releases/polkit-${version}
|
||||||
checksum=d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
|
checksum=d695f43cba4748a822fbe864dd32c4887c5da1c71694a47693ace5e88fcf6af6
|
||||||
|
|
||||||
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
||||||
makedepends="libglib-devel expat-devel pam-devel systemd-devel mozjs17-devel shadow"
|
makedepends="libglib-devel expat-devel pam-devel mozjs17-devel"
|
||||||
depends="shadow"
|
|
||||||
system_accounts="polkitd"
|
system_accounts="polkitd"
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir"
|
build_options="gir systemd"
|
||||||
|
build_options_default="systemd"
|
||||||
desc_option_gir="Enable support for building gobject introspection data"
|
desc_option_gir="Enable support for building gobject introspection data"
|
||||||
|
desc_option_systemd="Enable support for systemd"
|
||||||
|
|
||||||
# Disable gir for cross builds.
|
# Disable gir for cross builds.
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" automake libtool gettext-devel gtk-doc gobject-introspection"
|
hostmakedepends+=" automake libtool gettext-devel gtk-doc gobject-introspection"
|
||||||
else
|
else
|
||||||
build_options_default="gir"
|
build_options_default+=" gir"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$build_option_gir" ]; then
|
if [ "$build_option_gir" ]; then
|
||||||
|
@ -36,6 +37,13 @@ else
|
||||||
configure_args+=" --disable-introspection"
|
configure_args+=" --disable-introspection"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$build_option_systemd" ]; then
|
||||||
|
configure_args+=" --enable-systemd --enable-libsystemd-login"
|
||||||
|
makedepends+=" systemd-devel"
|
||||||
|
else
|
||||||
|
configure_args+=" --disable-systemd --disable-libsystemd-login"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_configure() {
|
pre_configure() {
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue