void-packages/srcpkgs/udevil/template

25 lines
905 B
Plaintext
Raw Normal View History

2013-10-28 09:33:05 +01:00
# Template file for 'udevil'
pkgname=udevil
2014-09-08 21:08:10 +02:00
version=0.4.3
revision=1
2013-10-28 09:33:05 +01:00
build_style=gnu-configure
hostmakedepends="pkg-config intltool"
2014-09-08 21:08:10 +02:00
configure_args="--with-mount-prog=mount --with-umount-prog=umount
--with-losetup-prog=losetup --with-setfacl-prog=setfacl"
2013-10-28 09:33:05 +01:00
makedepends="libglib-devel libudev-devel"
conf_files="/etc/udevil/udevil.conf"
2013-10-28 09:33:05 +01:00
short_desc="CLI which mounts and unmounts removable devices without a password"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-3"
homepage="http://ignorantguru.github.io/udevil/"
2014-09-08 21:08:10 +02:00
distfiles="https://github.com/IgnorantGuru/udevil/archive/${version}.tar.gz"
checksum=c49d2644baf87182c160550d708f75fe1253a2ceb749148e9148d7f1cfbc6209
2013-10-28 09:33:05 +01:00
post_install() {
# Drop useless conf.d/devmon file.
rm -rf ${DESTDIR}/etc/conf.d
sed -e '/EnvironmentFile.*/d' -i ${DESTDIR}/usr/lib/systemd/system/devmon@.service
# make udevil setuid.
chmod 4755 ${DESTDIR}/usr/bin/udevil
}