2009-03-14 02:16:07 +01:00
|
|
|
# Template file for 'nfs-utils'
|
|
|
|
pkgname=nfs-utils
|
2013-05-06 12:02:04 +02:00
|
|
|
version=1.2.8
|
|
|
|
revision=1
|
2012-07-07 22:11:10 +02:00
|
|
|
short_desc="Network File System client utilities"
|
2009-03-14 02:16:07 +01:00
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-01-28 17:04:13 +01:00
|
|
|
license="GPL-2"
|
2012-07-07 22:11:10 +02:00
|
|
|
homepage="http://nfs.sourceforge.net"
|
2012-11-16 10:19:52 +01:00
|
|
|
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
|
2013-05-06 12:02:04 +02:00
|
|
|
checksum=176889247046ffe5c5e7e7b5a357ed026654d83adabb2843b40752492c01e8f1
|
2013-01-02 17:32:39 +01:00
|
|
|
|
2013-04-14 04:36:19 +02:00
|
|
|
hostmakedepends="pkg-config"
|
|
|
|
makedepends="libblkid-devel libmount-devel libtirpc-devel
|
2013-05-06 12:02:04 +02:00
|
|
|
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 rpcbind"
|
|
|
|
|
|
|
|
do_configure() {
|
|
|
|
local _args
|
|
|
|
|
|
|
|
_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"
|
|
|
|
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} ${_args} \
|
|
|
|
--with-tirpcinclude=$XBPS_CROSS_BASE/usr/include/tirpc \
|
|
|
|
--with-krb5=$XBPS_CROSS_BASE \
|
|
|
|
CC_FOR_BUILD="$CC" CFLAGS_FOR_BUILD="$CFLAGS"
|
|
|
|
else
|
|
|
|
./configure ${CONFIGURE_SHARED_ARGS} ${_args}
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
make ${makejobs}
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
|
|
|
make DESTDIR=${DESTDIR} install
|
2009-03-14 02:16:07 +01:00
|
|
|
|
2013-04-16 10:49:17 +02:00
|
|
|
vmkdir usr/sbin
|
|
|
|
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
|
2012-01-28 17:04:13 +01:00
|
|
|
# conffiles
|
|
|
|
vinstall ${FILESDIR}/exports 644 etc
|
|
|
|
vinstall ${FILESDIR}/idmapd.conf 644 etc
|
|
|
|
# systemd glue
|
2012-07-09 22:55:00 +02:00
|
|
|
vmkdir usr/lib/systemd/system
|
2013-05-06 12:02:04 +02:00
|
|
|
install -m644 ${FILESDIR}/*.{service,mount} ${DESTDIR}/usr/lib/systemd/system
|
2009-03-14 02:16:07 +01:00
|
|
|
}
|
2013-04-14 04:36:19 +02:00
|
|
|
|
|
|
|
nfs-utils-server_package() {
|
|
|
|
short_desc="Network File System utilities -- Server utilities"
|
|
|
|
depends="rpcbind"
|
|
|
|
replaces="nfs-utils<1.2.6_2"
|
|
|
|
conf_files="/etc/exports"
|
|
|
|
mutable_files="
|
|
|
|
/var/lib/nfs/etab
|
|
|
|
/var/lib/nfs/rmtab
|
|
|
|
/var/lib/nfs/xtab
|
|
|
|
/var/lib/nfs/state"
|
|
|
|
make_dirs="
|
|
|
|
/var/lib/nfs/v4recovery 0755 root root
|
|
|
|
/var/lib/nfs/sm 0750 root root
|
|
|
|
/etc/exports.d 0750 root root"
|
|
|
|
pkg_install() {
|
2013-04-16 10:51:05 +02:00
|
|
|
vmove etc/exports
|
2013-04-14 04:36:19 +02:00
|
|
|
for f in exportfs rpc.mountd rpc.nfsd blkmapd rpc.svcgssd; do
|
|
|
|
vmove usr/sbin/${f}
|
|
|
|
[ "$f" = "blkmapd" ] && continue
|
2013-04-16 10:53:36 +02:00
|
|
|
vmove usr/share/man/man8/$(basename ${f}).8
|
2013-04-14 04:36:19 +02:00
|
|
|
done
|
2013-04-16 10:53:36 +02:00
|
|
|
for f in mountd nfsd svcgssd; do
|
2013-04-14 04:36:19 +02:00
|
|
|
vmove usr/share/man/man8/${f}.8
|
|
|
|
done
|
|
|
|
vmove usr/share/man/man5
|
|
|
|
vmove usr/share/man/man7
|
|
|
|
vmove var/lib/nfs
|
|
|
|
for f in blkmapd nfsd rpc-mountd rpc-svcgssd; do
|
|
|
|
vmove usr/lib/systemd/system/${f}.service
|
|
|
|
done
|
|
|
|
vmove usr/lib/systemd/system/proc-fs-nfsd.mount
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
nfs-utils_package() {
|
|
|
|
conf_files="/etc/idmapd.conf"
|
|
|
|
make_dirs="
|
|
|
|
/var/lib/nfs/rpc_pipefs 0755 root root
|
|
|
|
/var/lib/nfs/sm 0750 root root"
|
|
|
|
depends="rpcbind"
|
|
|
|
pkg_install() {
|
2013-05-06 12:02:04 +02:00
|
|
|
vmove all
|
2013-04-14 04:36:19 +02:00
|
|
|
}
|
|
|
|
}
|