diff options
Diffstat (limited to 'core/nfs-utils')
-rw-r--r-- | core/nfs-utils/PKGBUILD | 68 | ||||
-rw-r--r-- | core/nfs-utils/blkmapd.service | 3 | ||||
-rw-r--r-- | core/nfs-utils/exports | 15 | ||||
-rw-r--r-- | core/nfs-utils/id_resolver.conf | 3 | ||||
-rw-r--r-- | core/nfs-utils/nfs | 40 | ||||
-rw-r--r-- | core/nfs-utils/nfs-client.target | 8 | ||||
-rw-r--r-- | core/nfs-utils/nfs-server.target | 10 | ||||
-rw-r--r-- | core/nfs-utils/nfsd.service | 6 | ||||
-rw-r--r-- | core/nfs-utils/proc-fs-nfsd.mount | 2 | ||||
-rw-r--r-- | core/nfs-utils/rpc-gssd.service | 6 | ||||
-rw-r--r-- | core/nfs-utils/rpc-idmapd.service | 6 | ||||
-rw-r--r-- | core/nfs-utils/rpc-mountd.service | 5 | ||||
-rw-r--r-- | core/nfs-utils/rpc-statd.service | 7 | ||||
-rw-r--r-- | core/nfs-utils/rpc-svcgssd.service | 5 | ||||
-rw-r--r-- | core/nfs-utils/var-lib-nfs-rpc_pipefs.mount | 2 |
15 files changed, 87 insertions, 99 deletions
diff --git a/core/nfs-utils/PKGBUILD b/core/nfs-utils/PKGBUILD index b1f4d1607..2aeaf23f8 100644 --- a/core/nfs-utils/PKGBUILD +++ b/core/nfs-utils/PKGBUILD @@ -1,4 +1,4 @@ -# $Id: PKGBUILD 200306 2013-11-25 08:16:32Z tpowa $ +# $Id: PKGBUILD 203559 2014-01-13 16:35:26Z tpowa $ # Maintainer: Tobias Powalowski <tpowa@archlinux.org> # Contributor: John Proctor <jproctor@prium.net> # Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org> @@ -7,7 +7,7 @@ pkgname=nfs-utils pkgver=1.2.9 -pkgrel=1 +pkgrel=5 pkgdesc="Support programs for Network File Systems" arch=('i686' 'x86_64') url='http://nfs.sourceforge.net' @@ -20,7 +20,6 @@ source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgn nfs-server.conf exports idmapd.conf - nfs nfs-utils-1.1.4-mtab-sym.patch nfs-utils-1.1.4-no-exec.patch rpc-gssd.service @@ -31,32 +30,34 @@ source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgn nfsd.service var-lib-nfs-rpc_pipefs.mount proc-fs-nfsd.mount + nfs-client.target + nfs-server.target blkmapd.service nfs-utils.conf id_resolver.conf start-statd.patch) install=nfs-utils.install optdepends=('sqlite: for nfsdcltrack usage') - md5sums=('18869d16db3f49c053f8c68eba3fe2e0' 'f73f197a16b02c3e248488ec35c4cf43' '9cef69bc686cc5dcac23fbb51450747d' - 'ff585faf410a62c4333a027c50b56bae' + 'e6ad3c7a59c7e4c24965a0e7da35026c' 'eb4f4027fab6fc1201f1ca04f5954c76' - 'f5e7bba09a46c5c5d7007cac6eff9df5' '7674106eaaa4c149bccd4f05fe3604e9' '4f4827dfc93008dfadd0a530ad0872b2' - '6aeb4a80b2a5162f5951438474ea22f3' - 'ff95ad9275ef774e0a2ea8adfe55ee66' - '2e991f0e440b4809e22b6c7689544fc0' - '42d0088add3beab0284be1379391382b' - '60d82e2d2d19d21ceb72665e54bf913e' - '3bcc9901478f4f9ea0a03b67171c13e3' - '1cd65909fa0983047f3f06a3ab352401' - '8f1b5282795895c9b8ce8430d20cdda6' - '8f03e708b230619ffc2a799a48bffb53' + 'b9329c9d4a6b4a72ab2a04aac9229171' + '656ac433c4443eba6b47744a53a3c7d9' + '295ec0c9c049e146992561650fec9d52' + '6ff4f297df4e90440b8bdbc6b1a78480' + '20d5b8120d1049b27dd44dc4c57f667d' + '01a1dd533382630ccecc9b882c47aa2f' + 'f48da2fb07b1d5f016d63c16b0979ebb' + '972eb80ff8c94c647b977a8a3cdd985f' + 'a13e9f388cd939d68fa6ada205eb4e25' + '1ee3eea917131f04bb08f2f858be7724' + 'f513ab0eae74918df08f329b0c6a9b6f' '8ac484023d786766d287ccbe878ae4ba' - 'bed57f7c3911af695ec7b469248c104a' + 'a43aabf0b8d02406b1babc3a206d952a' 'f8bb29c2ca1ce178e6371091a3e1090d') prepare() { @@ -83,29 +84,22 @@ build() { package() { cd $srcdir/${pkgname}-${pkgver} - # fix make install - make DESTDIR=$pkgdir install - # support python2 (FS#25120) + make DESTDIR="$pkgdir" install sed -i '1s/python$/python2/' "$pkgdir"/usr/bin/{nfsiostat,mountstats} + install -D -m 644 utils/mount/nfsmount.conf "$pkgdir"/etc/nfsmount.conf - # Configuration - install -D -m 644 ../exports "$pkgdir/"etc/exports - install -D -m 644 ../idmapd.conf "$pkgdir/"etc/idmapd.conf - install -D -m 644 ../nfs-common.conf "$pkgdir/"etc/conf.d/nfs-common.conf - install -D -m 644 ../nfs-server.conf "$pkgdir/"etc/conf.d/nfs-server.conf - install -D -m 644 ../nfs "$pkgdir/"etc/conf.d/nfs - install -D -m 644 utils/mount/nfsmount.conf "$pkgdir/"etc/nfsmount.conf - # keyutils id_resolver #35463 - install -D -m 644 ../id_resolver.conf "$pkgdir/"etc/request-key.d/id_resolver.conf - # systemd files - for i in ${srcdir}/*.{service,mount}; do - install -D -m 644 $i "$pkgdir/usr/lib/systemd/system/${i##*/}" + cd .. + install -D -m 644 nfs-common.conf "$pkgdir"/etc/conf.d/nfs-common.conf + install -D -m 644 nfs-server.conf "$pkgdir"/etc/conf.d/nfs-server.conf + install -D -m 644 exports "$pkgdir"/etc/exports + install -D -m 644 idmapd.conf "$pkgdir"/etc/idmapd.conf + install -D -m 644 id_resolver.conf "$pkgdir"/etc/request-key.d/id_resolver.conf + install -D -m 644 nfs-utils.conf "$pkgdir"/usr/lib/modules-load.d/nfs-utils.conf + for i in *.service *.mount *.target; do + install -D -m 644 $i "$pkgdir"/usr/lib/systemd/system/$i done - install -D -m 644 ../nfs-utils.conf "$pkgdir/"usr/lib/modules-load.d/nfs-utils.conf - # directories - mkdir "$pkgdir/"etc/exports.d - mkdir -m 555 "$pkgdir/"var/lib/nfs/rpc_pipefs - mkdir "$pkgdir/"var/lib/nfs/v4recovery + mkdir "$pkgdir"/etc/exports.d + mkdir -m 555 "$pkgdir"/var/lib/nfs/rpc_pipefs + mkdir "$pkgdir"/var/lib/nfs/v4recovery } - diff --git a/core/nfs-utils/blkmapd.service b/core/nfs-utils/blkmapd.service index fa7ce394b..04711d09c 100644 --- a/core/nfs-utils/blkmapd.service +++ b/core/nfs-utils/blkmapd.service @@ -1,5 +1,6 @@ [Unit] -Description=pNFS block layout mapping daemon +Description=pNFS Block Layout Client Mapping Daemon +Documentation=man:blkmapd(8) After=var-lib-nfs-rpc_pipefs.mount nfsd.service Requires=var-lib-nfs-rpc_pipefs.mount diff --git a/core/nfs-utils/exports b/core/nfs-utils/exports index 8f4aac598..59dfa2e7c 100644 --- a/core/nfs-utils/exports +++ b/core/nfs-utils/exports @@ -1,15 +1,12 @@ -# /etc/exports -# -# List of directories exported to NFS clients. See exports(5). -# Use exportfs -arv to reread. +# /etc/exports - exports(5) - directories exported to NFS clients # # Example for NFSv2 and NFSv3: -# /srv/home hostname1(rw,sync) hostname2(ro,sync) -# +# /srv/home hostname1(rw,sync) hostname2(ro,sync) # Example for NFSv4: -# /srv/nfs4 hostname1(rw,sync,fsid=0) +# /srv/nfs4 hostname1(rw,sync,fsid=0) # /srv/nfs4/home hostname1(rw,sync,nohide) # Using Kerberos and integrity checking: -# /srv/nfs4 gss/krb5i(rw,sync,fsid=0,crossmnt) -# /srv/nfs4/home gss/krb5i(rw,sync,nohide) +# /srv/nfs4 *(rw,sync,sec=krb5i,fsid=0) +# /srv/nfs4/home *(rw,sync,sec=krb5i,nohide) # +# Use `exportfs -arv` to reload. diff --git a/core/nfs-utils/id_resolver.conf b/core/nfs-utils/id_resolver.conf index 9c0fee337..92f78281f 100644 --- a/core/nfs-utils/id_resolver.conf +++ b/core/nfs-utils/id_resolver.conf @@ -1 +1,2 @@ -create id_resolver * * /usr/bin/nfsidmap %k %d
\ No newline at end of file +create id_resolver * * /usr/bin/nfsidmap %k %d + diff --git a/core/nfs-utils/nfs b/core/nfs-utils/nfs deleted file mode 100644 index 2d33cf3d4..000000000 --- a/core/nfs-utils/nfs +++ /dev/null @@ -1,40 +0,0 @@ -# -# Optinal options passed to rquotad -RPCRQUOTADOPTS="" -# -# Optional arguments passed to in-kernel lockd -#LOCKDARG= -# TCP port rpc.lockd should listen on. -#LOCKD_TCPPORT=32803 -# UDP port rpc.lockd should listen on. -#LOCKD_UDPPORT=32769 -# -# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8) -RPCNFSDARGS="" -# Number of nfs server processes to be started. -# The default is 8. -RPCNFSDCOUNT=8 -# Set V4 grace period in seconds -#NFSD_V4_GRACE=90 -# -# Optional arguments passed to rpc.mountd. See rpc.mountd(8) -RPCMOUNTDOPTS="" -# -# Optional arguments passed to rpc.statd. See rpc.statd(8) -STATDARG="" -# -# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8) -RPCIDMAPDARGS="" -# -# Optional arguments passed to rpc.gssd. See rpc.gssd(8) -RPCGSSDARGS="" -# -# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8) -RPCSVCGSSDARGS="" -# -# To enable RDMA support on the server by setting this to -# the port the server should listen on -#RDMA_PORT=20049 -# -# Optional arguments passed to blkmapd. See blkmapd(8) -BLKMAPDARGS="" diff --git a/core/nfs-utils/nfs-client.target b/core/nfs-utils/nfs-client.target new file mode 100644 index 000000000..1bec662ab --- /dev/null +++ b/core/nfs-utils/nfs-client.target @@ -0,0 +1,8 @@ +[Unit] +Description=NFS Client Daemons +Before=remote-fs-pre.target +Wants=rpc-statd.service +Wants=rpc-gssd.service + +[Install] +WantedBy=multi-user.target diff --git a/core/nfs-utils/nfs-server.target b/core/nfs-utils/nfs-server.target new file mode 100644 index 000000000..52f0f04a4 --- /dev/null +++ b/core/nfs-utils/nfs-server.target @@ -0,0 +1,10 @@ +[Unit] +Description=NFS File Server Daemons +Wants=rpc-mountd.service +Wants=rpc-idmapd.service +Wants=rpc-rquotad.service +Wants=rpc-statd.service +Wants=rpc-svcgssd.service + +[Install] +WantedBy=multi-user.target diff --git a/core/nfs-utils/nfsd.service b/core/nfs-utils/nfsd.service index d63e49016..83db80657 100644 --- a/core/nfs-utils/nfsd.service +++ b/core/nfs-utils/nfsd.service @@ -1,13 +1,17 @@ [Unit] -Description=NFS server +Description=NFS Server Daemon +Documentation=man:rpc.nfsd(8) After=rpcbind.service Requires=rpcbind.service +Before=nfs-server.target +PartOf=nfs-server.target [Service] Type=oneshot EnvironmentFile=/etc/conf.d/nfs-server.conf ExecStart=/usr/bin/rpc.nfsd $NFSD_OPTS $NFSD_COUNT ExecStartPost=/usr/bin/exportfs -a +ExecReload=/usr/bin/exportfs -a -r ExecStop=/usr/bin/rpc.nfsd 0 ExecStopPost=/usr/bin/exportfs -a -u RemainAfterExit=yes diff --git a/core/nfs-utils/proc-fs-nfsd.mount b/core/nfs-utils/proc-fs-nfsd.mount index e5ee6fbf6..26b58b968 100644 --- a/core/nfs-utils/proc-fs-nfsd.mount +++ b/core/nfs-utils/proc-fs-nfsd.mount @@ -1,5 +1,5 @@ [Unit] -Description=RPC Pipe File System +Description=NFS Configuration File System DefaultDependencies=no [Mount] diff --git a/core/nfs-utils/rpc-gssd.service b/core/nfs-utils/rpc-gssd.service index 182d9b72c..8674fb2e5 100644 --- a/core/nfs-utils/rpc-gssd.service +++ b/core/nfs-utils/rpc-gssd.service @@ -1,8 +1,10 @@ [Unit] -Description=RPC GSS-API client-side daemon +Description=RPC GSS-API Client Daemon +Documentation=man:rpc.gssd(8) After=rpcbind.service var-lib-nfs-rpc_pipefs.mount Requires=rpcbind.service var-lib-nfs-rpc_pipefs.mount -Before=remote-fs-pre.target +Before=nfs-client.target remote-fs-pre.target +PartOf=nfs-client.target [Service] Type=forking diff --git a/core/nfs-utils/rpc-idmapd.service b/core/nfs-utils/rpc-idmapd.service index 1167daf36..609cde6ed 100644 --- a/core/nfs-utils/rpc-idmapd.service +++ b/core/nfs-utils/rpc-idmapd.service @@ -1,8 +1,10 @@ [Unit] -Description=NFSv4 ID-name mapping daemon +Description=NFS v4 ID-Name Mapping Daemon +Documentation=man:rpc.idmapd(8) man:idmapd.conf(5) After=var-lib-nfs-rpc_pipefs.mount nfsd.service Requires=var-lib-nfs-rpc_pipefs.mount -Before=remote-fs-pre.target +Before=nfs-server.target +PartOf=nfs-server.target [Service] Type=forking diff --git a/core/nfs-utils/rpc-mountd.service b/core/nfs-utils/rpc-mountd.service index 7528884c2..2969ee6b0 100644 --- a/core/nfs-utils/rpc-mountd.service +++ b/core/nfs-utils/rpc-mountd.service @@ -1,7 +1,10 @@ [Unit] -Description=NFS Mount Daemon +Description=NFS Mount Server Daemon +Documentation=man:rpc.mountd(8) After=rpcbind.service nfsd.service Requires=rpcbind.service nfsd.service +Before=nfs-server.target +PartOf=nfs-server.target [Service] Type=forking diff --git a/core/nfs-utils/rpc-statd.service b/core/nfs-utils/rpc-statd.service index c2fd63b3d..c5a1c359a 100644 --- a/core/nfs-utils/rpc-statd.service +++ b/core/nfs-utils/rpc-statd.service @@ -1,8 +1,11 @@ [Unit] -Description=NFSv2/3 Network Status Monitor Daemon +Description=NFS v2/3 Network Status Monitor Daemon +Documentation=man:rpc.statd(8) After=rpcbind.service Requires=rpcbind.service -Before=remote-fs-pre.target +Before=nfs-server.target +PartOf=nfs-server.target +Wants=remote-fs-pre.target [Service] Type=forking diff --git a/core/nfs-utils/rpc-svcgssd.service b/core/nfs-utils/rpc-svcgssd.service index 876bad38c..f52f26aec 100644 --- a/core/nfs-utils/rpc-svcgssd.service +++ b/core/nfs-utils/rpc-svcgssd.service @@ -1,7 +1,10 @@ [Unit] -Description=RPC GSS-API server-side daemon +Description=RPC GSS-API Server Daemon +Documentation=man:rpc.svcgssd(8) After=rpcbind.service Requires=rpcbind.service +Before=nfs-server.target +PartOf=nfs-server.target [Service] Type=forking diff --git a/core/nfs-utils/var-lib-nfs-rpc_pipefs.mount b/core/nfs-utils/var-lib-nfs-rpc_pipefs.mount index 4bd440f24..c41665822 100644 --- a/core/nfs-utils/var-lib-nfs-rpc_pipefs.mount +++ b/core/nfs-utils/var-lib-nfs-rpc_pipefs.mount @@ -1,5 +1,5 @@ [Unit] -Description=RPC pipe filesystem +Description=RPC Pipe File System [Mount] What=rpc_pipefs |