2009-03-14 01:16:07 +00:00
|
|
|
# Template file for 'nfs-utils'
|
|
|
|
pkgname=nfs-utils
|
2014-10-07 11:54:56 +00:00
|
|
|
version=1.3.1
|
2014-12-23 10:46:56 +00:00
|
|
|
revision=3
|
|
|
|
short_desc="Network File System utilities"
|
2009-03-14 01:16:07 +00:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-01-28 16:04:13 +00:00
|
|
|
license="GPL-2"
|
2012-07-07 20:11:10 +00:00
|
|
|
homepage="http://nfs.sourceforge.net"
|
2012-11-16 09:19:52 +00:00
|
|
|
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
2014-10-07 11:54:56 +00:00
|
|
|
checksum=ff79d70b7b58b2c8f9b798c58721127e82bb96022adc04a5c4cb251630e696b8
|
2013-01-02 16:32:39 +00:00
|
|
|
|
2013-04-14 02:36:19 +00:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libblkid-devel libmount-devel libtirpc-devel
|
2013-05-06 10:02:04 +00:00
|
|
|
librpcsecgss-devel>=0.19_3 libnfsidmap-devel>=0.25_3 keyutils-devel
|
|
|
|
libevent-devel device-mapper-devel libcap-devel mit-krb5-devel
|
2014-08-20 10:23:31 +00:00
|
|
|
libblkid-devel sqlite-devel"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="rpcbind"
|
2014-12-23 10:46:56 +00:00
|
|
|
conf_files="/etc/exports /etc/idmapd.conf"
|
|
|
|
replaces="nfs-utils-server>=0"
|
2014-01-01 15:10:11 +00:00
|
|
|
make_dirs="
|
2014-12-23 10:46:56 +00:00
|
|
|
/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
|
|
|
|
"
|
2013-05-06 10:02:04 +00:00
|
|
|
|
|
|
|
do_configure() {
|
2013-05-26 08:41:55 +00:00
|
|
|
configure_args+=" --with-statduser=nobody --enable-gss --enable-nfsv4
|
2013-05-06 10:02:04 +00:00
|
|
|
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
|
|
|
--with-gssglue --without-tcp-wrappers --enable-ipv6
|
2013-05-26 08:41:55 +00:00
|
|
|
--sbindir=/usr/sbin "
|
2013-05-06 10:02:04 +00:00
|
|
|
|
2013-11-13 14:14:56 +00:00
|
|
|
./configure ${configure_args} \
|
|
|
|
--with-tirpcinclude=$XBPS_CROSS_BASE/usr/include/tirpc \
|
|
|
|
--with-krb5=$XBPS_CROSS_BASE \
|
|
|
|
CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS"
|
2013-05-06 10:02:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2009-03-14 01:16:07 +00:00
|
|
|
|
2013-04-16 08:49:17 +00:00
|
|
|
vmkdir usr/sbin
|
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
|
2012-01-28 16:04:13 +00:00
|
|
|
# conffiles
|
2014-10-13 15:10:49 +00:00
|
|
|
vconf ${FILESDIR}/exports
|
|
|
|
vconf ${FILESDIR}/idmapd.conf
|
2014-12-23 10:46:56 +00:00
|
|
|
# runit services
|
2014-10-13 15:10:49 +00:00
|
|
|
vsv statd
|
2014-12-23 10:46:56 +00:00
|
|
|
vsv nfs-server
|
2012-01-28 16:04:13 +00:00
|
|
|
# systemd glue
|
2014-08-20 10:23:31 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vmkdir usr/lib/systemd/system
|
|
|
|
install -m644 ${FILESDIR}/*.{service,mount} ${DESTDIR}/usr/lib/systemd/system
|
|
|
|
fi
|
2013-11-13 14:49:47 +00:00
|
|
|
|
|
|
|
rm -rf ${DESTDIR}/var/lib/nfs
|
2009-03-14 01:16:07 +00:00
|
|
|
}
|