60 lines
1.7 KiB
Text
60 lines
1.7 KiB
Text
# Template file for 'nfs-utils'
|
|
pkgname=nfs-utils
|
|
version=1.3.1
|
|
revision=3
|
|
short_desc="Network File System utilities"
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
license="GPL-2"
|
|
homepage="http://nfs.sourceforge.net"
|
|
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
|
checksum=ff79d70b7b58b2c8f9b798c58721127e82bb96022adc04a5c4cb251630e696b8
|
|
|
|
hostmakedepends="pkg-config"
|
|
makedepends="libblkid-devel libmount-devel libtirpc-devel
|
|
librpcsecgss-devel>=0.19_3 libnfsidmap-devel>=0.25_3 keyutils-devel
|
|
libevent-devel device-mapper-devel libcap-devel mit-krb5-devel
|
|
libblkid-devel sqlite-devel"
|
|
depends="rpcbind"
|
|
conf_files="/etc/exports /etc/idmapd.conf"
|
|
replaces="nfs-utils-server>=0"
|
|
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
|
|
"
|
|
|
|
do_configure() {
|
|
configure_args+=" --with-statduser=nobody --enable-gss --enable-nfsv4
|
|
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
|
--with-gssglue --without-tcp-wrappers --enable-ipv6
|
|
--sbindir=/usr/sbin "
|
|
|
|
./configure ${configure_args} \
|
|
--with-tirpcinclude=$XBPS_CROSS_BASE/usr/include/tirpc \
|
|
--with-krb5=$XBPS_CROSS_BASE \
|
|
CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS"
|
|
}
|
|
|
|
do_build() {
|
|
make ${makejobs}
|
|
}
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} install
|
|
|
|
vmkdir usr/sbin
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
|
|
# conffiles
|
|
vconf ${FILESDIR}/exports
|
|
vconf ${FILESDIR}/idmapd.conf
|
|
# runit services
|
|
vsv statd
|
|
vsv nfs-server
|
|
# systemd glue
|
|
if [ "$build_option_systemd" ]; then
|
|
vmkdir usr/lib/systemd/system
|
|
install -m644 ${FILESDIR}/*.{service,mount} ${DESTDIR}/usr/lib/systemd/system
|
|
fi
|
|
|
|
rm -rf ${DESTDIR}/var/lib/nfs
|
|
}
|