void-packages/srcpkgs/autofs/template

30 lines
931 B
Bash
Raw Normal View History

2015-01-11 12:33:32 +01:00
# Template file for 'autofs'
pkgname=autofs
2016-06-15 08:01:54 +02:00
version=5.1.2
revision=1
2015-01-11 12:33:32 +01:00
build_style=gnu-configure
2016-06-15 08:01:54 +02:00
conf_files="/etc/autofs/*"
2015-06-02 19:33:45 +02:00
configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"
hostmakedepends="flex kmod rpcgen"
2016-06-15 08:01:54 +02:00
makedepends="libtirpc-devel libxml2-devel"
2015-01-11 12:33:32 +01:00
short_desc="A kernel-based automounter for Linux"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-01-11 12:33:32 +01:00
license="GPL-2"
2015-01-11 12:43:23 +01:00
homepage="${KERNEL_SITE}/daemons/autofs"
2015-01-11 12:33:32 +01:00
distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
2016-06-15 08:01:54 +02:00
checksum=88b7de39088aead983e02072a7b753d5ee52ce419c8913f7a3d4ff5521313f0c
2015-01-11 12:33:32 +01:00
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
2015-05-28 16:28:06 +02:00
pre_configure() {
sed -i 's,nfs/nfs.h,linux/nfs.h,g' */*.[ch]
sed -i 's,__S_IEXEC,S_IXUSR,g' */*.[ch]
}
2015-01-11 12:33:32 +01:00
post_install() {
vsv $pkgname
# Remove unused stuff
rm ${DESTDIR}/usr/share/man/man5/autofs.5
rm -r ${DESTDIR}/etc/default || :
2016-01-10 10:16:23 +01:00
rm ${DESTDIR}/autofs || :
2015-01-11 12:33:32 +01:00
}