void-packages/srcpkgs/autofs/template

34 lines
1,012 B
Bash
Raw Normal View History

2015-01-11 11:33:32 +00:00
# Template file for 'autofs'
pkgname=autofs
2015-04-22 05:46:52 +00:00
version=5.1.1
2016-01-10 09:16:23 +00:00
revision=6
2015-01-11 11:33:32 +00:00
build_style=gnu-configure
conf_files="
/etc/autofs/auto.master
/etc/autofs/auto.misc
/etc/autofs/autofs.conf
/etc/autofs/autofs_ldap_auth.conf"
2015-06-02 17:33:45 +00:00
configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"
hostmakedepends="flex kmod rpcgen"
2015-01-11 11:33:32 +00:00
makedepends="libtirpc-devel"
short_desc="A kernel-based automounter for Linux"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2015-01-11 11:33:32 +00:00
license="GPL-2"
2015-01-11 11:43:23 +00:00
homepage="${KERNEL_SITE}/daemons/autofs"
2015-01-11 11:33:32 +00:00
distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
2015-04-22 05:46:52 +00:00
checksum=e08ff0ef9ff365d87b6c33dca136d20e4e07675197a324f2816894cb437021c3
2015-01-11 11:33:32 +00:00
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
2015-05-28 14:28:06 +00: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 11:33:32 +00:00
post_install() {
vsv $pkgname
# Remove unused stuff
rm ${DESTDIR}/usr/share/man/man5/autofs.5
rm -r ${DESTDIR}/etc/default || :
2016-01-10 09:16:23 +00:00
rm ${DESTDIR}/autofs || :
2015-01-11 11:33:32 +00:00
}