void-packages/srcpkgs/nfs-utils/template
2019-10-21 18:50:45 +02:00

58 lines
1.7 KiB
Bash

# Template file for 'nfs-utils'
pkgname=nfs-utils
version=2.3.3
revision=3
build_style=gnu-configure
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
--with-statedir=/var/lib/nfs --enable-libmount-mount --enable-svcgss
--enable-uuid --enable-ipv6 --without-tcp-wrappers
--with-tirpcinclude=$XBPS_CROSS_BASE/usr/include/tirpc
--with-krb5=$XBPS_CROSS_BASE --disable-static"
short_desc="Network File System utilities"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="http://nfs.sourceforge.net"
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=f68b34793831b05f1fd5760d6bdec92772c7684177586a99a61e7b444f336322
patch_args="-Np1"
replaces="rpcgen>=0"
hostmakedepends="pkg-config libtirpc-devel rpcsvc-proto"
makedepends="libblkid-devel libmount-devel libtirpc-devel
libnfsidmap-devel keyutils-devel libevent-devel mit-krb5-devel
device-mapper-devel libcap-devel sqlite-devel"
depends="rpcbind"
conf_files="/etc/exports /etc/idmapd.conf"
make_dirs="
/var/lib/nfs/rpc_pipefs 0755 root root
/var/lib/nfs/sm 0750 root root
/var/lib/nfs/v4recovery 0755 root root
/etc/exports.d 0750 root root
"
pre_configure() {
vsed -i '/SUBDIRS =/s/locktest//' tools/Makefile.in
case "$XBPS_TARGET_MACHINE" in
*-musl)
vsed -i -e 's/__res_querydomain/res_querydomain/g' configure*
esac
}
post_install() {
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin
# conffiles
vconf ${FILESDIR}/exports
vconf ${FILESDIR}/idmapd.conf
# runit services
vsv rpcblkmapd
vsv rpcidmapd
vsv rpcgssd
vsv rpcsvcgssd
vsv statd
vsv nfs-server
# replacement scripts
rm -rf ${DESTDIR}/usr/bin/start-statd
vbin ${FILESDIR}/start-statd
rm -rf ${DESTDIR}/var/lib/nfs
}