64 lines
1.8 KiB
Bash
64 lines
1.8 KiB
Bash
# Template file for 'nfs-utils'
|
|
pkgname=nfs-utils
|
|
version=2.4.2
|
|
revision=1
|
|
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="https://www.linux-nfs.org/"
|
|
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=4464737a03d5f73ded2ffefe19d5543ed7b1d6c541985d8acaafdc8025aa1038
|
|
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"
|
|
python_version=3
|
|
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
|
|
"
|
|
|
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
|
makedepends+=" musl-legacy-compat"
|
|
fi
|
|
|
|
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
|
|
}
|