46 lines
1.2 KiB
Bash
46 lines
1.2 KiB
Bash
# Template file for 'autofs'
|
|
pkgname=autofs
|
|
version=5.1.5
|
|
revision=2
|
|
build_style=gnu-configure
|
|
make_build_args="DONTSTRIP=1"
|
|
configure_args="--with-libtirpc --with-mapdir=/etc/autofs --sbindir=/usr/bin"
|
|
conf_files="/etc/autofs/*"
|
|
hostmakedepends="pkg-config flex kmod rpcgen"
|
|
makedepends="libtirpc-devel libxml2-devel"
|
|
short_desc="Kernel-based automounter for Linux"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="${KERNEL_SITE}/daemons/autofs"
|
|
distfiles="${KERNEL_SITE}/daemons/autofs/v5/autofs-${version}.tar.xz"
|
|
checksum=23afdad9e2fd6d41b1900be8cfecfd5aae0ad174c7708ff685ec27e280f9c0da
|
|
|
|
CFLAGS="-I${XBPS_CROSS_BASE}/usr/include/gssglue -I${XBPS_CROSS_BASE}/usr/include/tirpc"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) # sssd cannot be built for musl
|
|
;;
|
|
*) if [ -z "$CROSS_BUILD" ]; then
|
|
makedepends+=" sssd-devel"
|
|
fi
|
|
;;
|
|
esac
|
|
|
|
pre_configure() {
|
|
sed -i 's,nfs/nfs.h,linux/nfs.h,g' */*.[ch]
|
|
sed -i 's,__S_IEXEC,S_IXUSR,g' */*.[ch]
|
|
}
|
|
|
|
pre_build() {
|
|
unset STRIP
|
|
}
|
|
|
|
post_install() {
|
|
vsv $pkgname
|
|
make DESTDIR=${DESTDIR} -C samples install
|
|
# Remove unused stuff
|
|
rm ${DESTDIR}/usr/share/man/man5/autofs.5
|
|
rm -r ${DESTDIR}/etc/default || :
|
|
rm ${DESTDIR}/autofs || :
|
|
}
|