polkit: use make_dirs; only install systemd files if the systemd option is enabled.
This commit is contained in:
parent
5626c5ab7b
commit
c9b1ee4819
@ -1,11 +1,9 @@
|
|||||||
# Template file for 'polkit'
|
# Template file for 'polkit'
|
||||||
pkgname=polkit
|
pkgname=polkit
|
||||||
version=0.112
|
version=0.112
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --with-authfw=pam
|
configure_args="--disable-static --with-authfw=pam --with-os-type=void --with-mozjs=mozjs-17.0"
|
||||||
--with-systemdsystemunitdir=/usr/lib/systemd/system --with-os-type=void
|
|
||||||
--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"
|
||||||
@ -16,6 +14,9 @@ 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 mozjs17-devel"
|
makedepends="libglib-devel expat-devel pam-devel mozjs17-devel"
|
||||||
system_accounts="polkitd"
|
system_accounts="polkitd"
|
||||||
|
make_dirs="
|
||||||
|
/etc/polkit-1/rules.d 0700 polkitd polkitd
|
||||||
|
/usr/share/polkit-1/rules.d 0700 polkitd polkitd"
|
||||||
|
|
||||||
# Package build options
|
# Package build options
|
||||||
build_options="gir systemd"
|
build_options="gir systemd"
|
||||||
@ -34,7 +35,7 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
configure_args+=" --enable-systemd --enable-libsystemd-login"
|
configure_args+=" --enable-systemd --enable-libsystemd-login --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
||||||
makedepends+=" systemd-devel"
|
makedepends+=" systemd-devel"
|
||||||
else
|
else
|
||||||
configure_args+=" --disable-systemd --disable-libsystemd-login"
|
configure_args+=" --disable-systemd --disable-libsystemd-login"
|
||||||
@ -56,7 +57,9 @@ post_configure() {
|
|||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
vinstall ${FILESDIR}/polkit-1.pam 644 etc/pam.d polkit-1
|
||||||
vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf
|
if [ "$build_option_systemd" ]; then
|
||||||
|
vinstall ${FILESDIR}/polkit.tmpfiles 644 usr/lib/tmpfiles.d polkit.conf
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
polkit-devel_package() {
|
polkit-devel_package() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user