void-packages/srcpkgs/nfs-utils/template

78 lines
2.2 KiB
Text
Raw Normal View History

# Template file for 'nfs-utils'
pkgname=nfs-utils
2012-11-16 09:19:52 +00:00
version=1.2.7
revision=3
build_style=gnu-configure
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
2012-11-16 09:19:52 +00:00
--with-statedir=/var/lib/nfs --enable-libmount-mount
--without-tcp-wrappers --enable-ipv6 --sbindir=/usr/sbin"
short_desc="Network File System client utilities"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2"
homepage="http://nfs.sourceforge.net"
2012-11-16 09:19:52 +00:00
distfiles="${KERNEL_SITE}/utils/${pkgname}/${version}/${pkgname}-${version}.tar.xz"
checksum=d78768a0819c5eeed5e5abb6c4c9048962e9f8b9ef45451ea4db6aee38720121
hostmakedepends="pkg-config"
makedepends="libblkid-devel libmount-devel libtirpc-devel
librpcsecgss-devel libnfsidmap-devel libevent-devel device-mapper-devel
libcap-devel mit-krb5-devel sqlite-devel"
post_install() {
2013-04-16 08:49:17 +00:00
vmkdir usr/sbin
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/sbin
# conffiles
vinstall ${FILESDIR}/exports 644 etc
vinstall ${FILESDIR}/idmapd.conf 644 etc
# systemd glue
2012-07-09 20:55:00 +00:00
vmkdir usr/lib/systemd/system
install -m644 ${FILESDIR}/*.{service,mount} \
2012-07-09 20:55:00 +00:00
${DESTDIR}/usr/lib/systemd/system
}
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 08:51:05 +00:00
vmove etc/exports
for f in exportfs rpc.mountd rpc.nfsd blkmapd rpc.svcgssd; do
vmove usr/sbin/${f}
[ "$f" = "blkmapd" ] && continue
2013-04-16 08:53:36 +00:00
vmove usr/share/man/man8/$(basename ${f}).8
done
2013-04-16 08:53:36 +00:00
for f in mountd nfsd svcgssd; do
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() {
vmove etc
vmove usr
}
}