void-packages/srcpkgs/autofs/template
Andrea Brancaleoni a580b831e2 autofs: build PIE
2015-08-25 23:55:45 +02:00

33 lines
943 B
Bash

# Template file for 'autofs'
pkgname=autofs
version=5.1.1
revision=4
build_pie=yes
build_style=gnu-configure
conf_files="
/etc/autofs/auto.master
/etc/autofs/auto.misc
/etc/autofs/autofs.conf
/etc/autofs/autofs_ldap_auth.conf"
configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"
hostmakedepends="flex kmod"
makedepends="libtirpc-devel"
short_desc="A kernel-based automounter for Linux"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="${KERNEL_SITE}/daemons/autofs"
distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
checksum=e08ff0ef9ff365d87b6c33dca136d20e4e07675197a324f2816894cb437021c3
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue"
pre_build() {
sed -i "s,/usr/include/tirpc,${XBPS_CROSS_BASE}/usr/include/tirpc,g" Makefile.rules
}
post_install() {
vsv $pkgname
# Remove unused stuff
rm ${DESTDIR}/usr/share/man/man5/autofs.5
rm -r ${DESTDIR}/etc/default
}