nfs-utils: split server stuff to -server subpkg.
This commit is contained in:
parent
ec3f9f8132
commit
f8fd4f21ae
9 changed files with 65 additions and 19 deletions
1
srcpkgs/nfs-utils-server
Symbolic link
1
srcpkgs/nfs-utils-server
Symbolic link
|
@ -0,0 +1 @@
|
|||
nfs-utils
|
|
@ -7,7 +7,7 @@ Domain = localdomain
|
|||
[Mapping]
|
||||
|
||||
Nobody-User = nobody
|
||||
Nobody-Group = nobody
|
||||
Nobody-Group = nogroup
|
||||
|
||||
[Translation]
|
||||
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
d /var/lib/nfs/rpc_pipefs 0755 root root -
|
||||
d /var/lib/nfs/v4recovery 0755 root root -
|
||||
d /var/lib/nfs/sm 0750 root root -
|
||||
d /etc/exports.d 0750 root root -
|
||||
|
|
8
srcpkgs/nfs-utils/files/proc-fs-nfsd.mount
Normal file
8
srcpkgs/nfs-utils/files/proc-fs-nfsd.mount
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Unit]
|
||||
Description=RPC Pipe File System
|
||||
DefaultDependencies=no
|
||||
|
||||
[Mount]
|
||||
What=sunrpc
|
||||
Where=/proc/fs/nfsd
|
||||
Type=rpc_pipefs
|
|
@ -5,7 +5,7 @@ Requires=rpcbind.service nfsd.service
|
|||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/usr/sbin/rpc.mount
|
||||
ExecStart=/usr/sbin/rpc.mountd
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
6
srcpkgs/nfs-utils/nfs-utils-server.rshlibs
Normal file
6
srcpkgs/nfs-utils/nfs-utils-server.rshlibs
Normal file
|
@ -0,0 +1,6 @@
|
|||
libc.so.6
|
||||
libblkid.so.1
|
||||
libtirpc.so.1
|
||||
libdevmapper.so.1.02
|
||||
libgssglue.so.1
|
||||
libnfsidmap.so.0
|
35
srcpkgs/nfs-utils/nfs-utils-server.template
Normal file
35
srcpkgs/nfs-utils/nfs-utils-server.template
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'nfs-utils-server'.
|
||||
#
|
||||
short_desc="Network File System utilities -- Server"
|
||||
long_desc="
|
||||
This package contains utilities to administer the Linux kernel
|
||||
implementation of NFS (Network File System) servers."
|
||||
|
||||
depends="rpcbind"
|
||||
replaces="nfs-utils<1.2.6_2"
|
||||
conf_files="/etc/exports"
|
||||
systemd_services="
|
||||
exportfs.service on
|
||||
nfsd.service on
|
||||
rpc-mountd.service on
|
||||
rpc-svcgssd.service on
|
||||
blkmapd.service on"
|
||||
|
||||
do_install() {
|
||||
vmove etc/exports etc
|
||||
for f in exportfs rpc.mountd rpc.nfsd blkmapd rpc.svcgssd; do
|
||||
vmove usr/sbin/${f} usr/sbin
|
||||
[ "$f" = "blkmapd" ] && continue
|
||||
vmove usr/share/man/man8/${f}.8 usr/share/man/man8
|
||||
done
|
||||
for f in mountd nfsd blkmapd svcgssd; do
|
||||
vmove usr/share/man/man8/${f}.8 usr/share/man/man8
|
||||
done
|
||||
vmove usr/share/man/man5 usr/share/man
|
||||
vmove usr/share/man/man7 usr/share/man
|
||||
vmove var/lib/nfs var/lib
|
||||
for f in blkmapd exportfs nfsd rpc-mountd rpc-svcgssd; do
|
||||
vmove lib/systemd/system/${f}.service lib/systemd/system
|
||||
done
|
||||
vmove lib/systemd/system/proc-fs-nfsd.mount lib/systemd/system
|
||||
}
|
|
@ -1,10 +1,8 @@
|
|||
libc.so.6
|
||||
libblkid.so.1
|
||||
libtirpc.so.1
|
||||
libcap.so.2
|
||||
libevent-2.0.so.5
|
||||
libnfsidmap.so.0
|
||||
libdevmapper.so.1.02
|
||||
libgssglue.so.1
|
||||
libkrb5.so.3
|
||||
libcom_err.so.2
|
||||
|
|
|
@ -1,35 +1,32 @@
|
|||
# Template file for 'nfs-utils'
|
||||
pkgname=nfs-utils
|
||||
version=1.2.6
|
||||
homepage="http://nfs.sourceforge.net"
|
||||
distfiles="http://downloads.sf.net/nfs/$pkgname-$version.tar.bz2"
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--with-statduser=nobody --enable-gss --enable-nfsv4
|
||||
--with-statedir=/var/lib/nfs --enable-libmount-mount
|
||||
--without-tcp-wrappers --enable-ipv6 --sbindir=/usr/sbin"
|
||||
conf_files="/etc/exports /etc/idmapd.conf"
|
||||
conf_files="/etc/idmapd.conf"
|
||||
depends="rpcbind"
|
||||
makedepends="pkg-config libblkid-devel libmount-devel libtirpc-devel librpcsecgss-devel libnfsidmap-devel libevent-devel device-mapper-devel libcap-devel mit-krb5-devel"
|
||||
revision=1
|
||||
short_desc="Network File System utilities"
|
||||
subpackages="$pkgname-server"
|
||||
makedepends="pkg-config libblkid-devel libmount-devel libtirpc-devel
|
||||
librpcsecgss-devel libnfsidmap-devel libevent-devel device-mapper-devel
|
||||
libcap-devel mit-krb5-devel"
|
||||
short_desc="Network File System client utilities"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="GPL-2"
|
||||
homepage="http://nfs.sourceforge.net"
|
||||
distfiles="http://downloads.sf.net/nfs/$pkgname-$version.tar.bz2"
|
||||
checksum=70267288500408495085b7c54a667c4e8cfde5882f3193da095fc7dad2da0b83
|
||||
long_desc="
|
||||
The $pkgname package provides a daemon for the kernel NFS server and
|
||||
related tools, which provides a much higher level of performance than the
|
||||
traditional Linux NFS server used by most users."
|
||||
The $pkgname package provides client utilities for the linux kernel
|
||||
implementation of NFS - Network File System."
|
||||
|
||||
# systemd services
|
||||
systemd_services="
|
||||
exportfs.service on
|
||||
nfsd.service on
|
||||
rpc-gssd.service on
|
||||
rpc-idmapd.service on
|
||||
rpc-mountd.service on
|
||||
rpc-statd.service on
|
||||
rpc-svcgssd.service on
|
||||
blkmapd.service on"
|
||||
rpc-statd.service on"
|
||||
|
||||
pre_install() {
|
||||
# Makefile doesn't seem to create it!
|
||||
|
|
Loading…
Reference in a new issue