udevil: add systemd build option (off); use default path for cmds.

This commit is contained in:
Juan RP 2015-04-24 09:43:21 +02:00
parent ae1ce6df8c
commit bddf554ff1

View file

@ -1,11 +1,11 @@
# Template file for 'udevil' # Template file for 'udevil'
pkgname=udevil pkgname=udevil
version=0.4.3 version=0.4.3
revision=2 revision=3
build_style=gnu-configure build_style=gnu-configure
build_options="systemd"
hostmakedepends="pkg-config intltool" hostmakedepends="pkg-config intltool"
configure_args="--with-mount-prog=mount --with-umount-prog=umount configure_args="$(vopt_enable systemd)"
--with-losetup-prog=losetup --with-setfacl-prog=setfacl"
makedepends="libglib-devel libudev-devel" makedepends="libglib-devel libudev-devel"
conf_files="/etc/udevil/udevil.conf" conf_files="/etc/udevil/udevil.conf"
short_desc="CLI which mounts and unmounts removable devices without a password" short_desc="CLI which mounts and unmounts removable devices without a password"
@ -16,7 +16,9 @@ distfiles="https://github.com/IgnorantGuru/udevil/archive/${version}.tar.gz"
checksum=c49d2644baf87182c160550d708f75fe1253a2ceb749148e9148d7f1cfbc6209 checksum=c49d2644baf87182c160550d708f75fe1253a2ceb749148e9148d7f1cfbc6209
post_install() { post_install() {
# Drop useless conf.d/devmon file. if [ "$build_option_systemd" ]; then
rm -rf ${DESTDIR}/etc/conf.d # Drop useless conf.d/devmon file.
sed -e '/EnvironmentFile.*/d' -i ${DESTDIR}/usr/lib/systemd/system/devmon@.service rm -rf ${DESTDIR}/etc/conf.d
sed -e '/EnvironmentFile.*/d' -i ${DESTDIR}/usr/lib/systemd/system/devmon@.service
fi
} }