udisks2: set --with-systemdsystemunitdir only if the systemd build option is enabled.
This commit is contained in:
parent
f3fed33a6b
commit
3d3c8b10f1
|
@ -1,11 +1,10 @@
|
||||||
# Template file for 'udisks2'
|
# Template file for 'udisks2'
|
||||||
pkgname=udisks2
|
pkgname=udisks2
|
||||||
version=2.1.3
|
version=2.1.3
|
||||||
revision=3
|
revision=4
|
||||||
wrksrc="udisks-${version}"
|
wrksrc="udisks-${version}"
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --with-udevdir=/usr/lib/udev
|
configure_args="--disable-static --with-udevdir=/usr/lib/udev"
|
||||||
--with-systemdsystemunitdir=/usr/lib/systemd/system"
|
|
||||||
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
hostmakedepends="pkg-config intltool libxslt docbook-xsl glib-devel"
|
||||||
makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel
|
makedepends="acl-devel device-mapper-devel liblvm2app-devel libparted-devel
|
||||||
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel"
|
libatasmart-devel polkit-devel libgudev-devel sg3_utils-devel"
|
||||||
|
@ -32,7 +31,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$build_option_systemd" ]; then
|
if [ "$build_option_systemd" ]; then
|
||||||
configure_args+=" --enable-systemd"
|
configure_args+=" --enable-systemd --with-systemdsystemunitdir=/usr/lib/systemd/system"
|
||||||
makedepends+=" systemd-devel"
|
makedepends+=" systemd-devel"
|
||||||
else
|
else
|
||||||
configure_args+=" --disable-systemd"
|
configure_args+=" --disable-systemd"
|
||||||
|
|
Loading…
Reference in New Issue