[arch-commits] Commit in nfs-utils/repos (46 files)

Tobias Powalowski tpowa at nymeria.archlinux.org
Mon Dec 16 08:30:46 UTC 2013


    Date: Monday, December 16, 2013 @ 09:30:46
  Author: tpowa
Revision: 201594

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  nfs-utils/repos/testing-i686/
  nfs-utils/repos/testing-i686/PKGBUILD
    (from rev 201593, nfs-utils/trunk/PKGBUILD)
  nfs-utils/repos/testing-i686/blkmapd.service
    (from rev 201593, nfs-utils/trunk/blkmapd.service)
  nfs-utils/repos/testing-i686/exports
    (from rev 201593, nfs-utils/trunk/exports)
  nfs-utils/repos/testing-i686/id_resolver.conf
    (from rev 201593, nfs-utils/trunk/id_resolver.conf)
  nfs-utils/repos/testing-i686/idmapd.conf
    (from rev 201593, nfs-utils/trunk/idmapd.conf)
  nfs-utils/repos/testing-i686/nfs-client.target
    (from rev 201593, nfs-utils/trunk/nfs-client.target)
  nfs-utils/repos/testing-i686/nfs-common.conf
    (from rev 201593, nfs-utils/trunk/nfs-common.conf)
  nfs-utils/repos/testing-i686/nfs-server.conf
    (from rev 201593, nfs-utils/trunk/nfs-server.conf)
  nfs-utils/repos/testing-i686/nfs-server.target
    (from rev 201593, nfs-utils/trunk/nfs-server.target)
  nfs-utils/repos/testing-i686/nfs-utils-1.1.4-mtab-sym.patch
    (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-mtab-sym.patch)
  nfs-utils/repos/testing-i686/nfs-utils-1.1.4-no-exec.patch
    (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-no-exec.patch)
  nfs-utils/repos/testing-i686/nfs-utils.conf
    (from rev 201593, nfs-utils/trunk/nfs-utils.conf)
  nfs-utils/repos/testing-i686/nfs-utils.install
    (from rev 201593, nfs-utils/trunk/nfs-utils.install)
  nfs-utils/repos/testing-i686/nfsd.service
    (from rev 201593, nfs-utils/trunk/nfsd.service)
  nfs-utils/repos/testing-i686/proc-fs-nfsd.mount
    (from rev 201593, nfs-utils/trunk/proc-fs-nfsd.mount)
  nfs-utils/repos/testing-i686/rpc-gssd.service
    (from rev 201593, nfs-utils/trunk/rpc-gssd.service)
  nfs-utils/repos/testing-i686/rpc-idmapd.service
    (from rev 201593, nfs-utils/trunk/rpc-idmapd.service)
  nfs-utils/repos/testing-i686/rpc-mountd.service
    (from rev 201593, nfs-utils/trunk/rpc-mountd.service)
  nfs-utils/repos/testing-i686/rpc-statd.service
    (from rev 201593, nfs-utils/trunk/rpc-statd.service)
  nfs-utils/repos/testing-i686/rpc-svcgssd.service
    (from rev 201593, nfs-utils/trunk/rpc-svcgssd.service)
  nfs-utils/repos/testing-i686/start-statd.patch
    (from rev 201593, nfs-utils/trunk/start-statd.patch)
  nfs-utils/repos/testing-i686/var-lib-nfs-rpc_pipefs.mount
    (from rev 201593, nfs-utils/trunk/var-lib-nfs-rpc_pipefs.mount)
  nfs-utils/repos/testing-x86_64/
  nfs-utils/repos/testing-x86_64/PKGBUILD
    (from rev 201593, nfs-utils/trunk/PKGBUILD)
  nfs-utils/repos/testing-x86_64/blkmapd.service
    (from rev 201593, nfs-utils/trunk/blkmapd.service)
  nfs-utils/repos/testing-x86_64/exports
    (from rev 201593, nfs-utils/trunk/exports)
  nfs-utils/repos/testing-x86_64/id_resolver.conf
    (from rev 201593, nfs-utils/trunk/id_resolver.conf)
  nfs-utils/repos/testing-x86_64/idmapd.conf
    (from rev 201593, nfs-utils/trunk/idmapd.conf)
  nfs-utils/repos/testing-x86_64/nfs-client.target
    (from rev 201593, nfs-utils/trunk/nfs-client.target)
  nfs-utils/repos/testing-x86_64/nfs-common.conf
    (from rev 201593, nfs-utils/trunk/nfs-common.conf)
  nfs-utils/repos/testing-x86_64/nfs-server.conf
    (from rev 201593, nfs-utils/trunk/nfs-server.conf)
  nfs-utils/repos/testing-x86_64/nfs-server.target
    (from rev 201593, nfs-utils/trunk/nfs-server.target)
  nfs-utils/repos/testing-x86_64/nfs-utils-1.1.4-mtab-sym.patch
    (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-mtab-sym.patch)
  nfs-utils/repos/testing-x86_64/nfs-utils-1.1.4-no-exec.patch
    (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-no-exec.patch)
  nfs-utils/repos/testing-x86_64/nfs-utils.conf
    (from rev 201593, nfs-utils/trunk/nfs-utils.conf)
  nfs-utils/repos/testing-x86_64/nfs-utils.install
    (from rev 201593, nfs-utils/trunk/nfs-utils.install)
  nfs-utils/repos/testing-x86_64/nfsd.service
    (from rev 201593, nfs-utils/trunk/nfsd.service)
  nfs-utils/repos/testing-x86_64/proc-fs-nfsd.mount
    (from rev 201593, nfs-utils/trunk/proc-fs-nfsd.mount)
  nfs-utils/repos/testing-x86_64/rpc-gssd.service
    (from rev 201593, nfs-utils/trunk/rpc-gssd.service)
  nfs-utils/repos/testing-x86_64/rpc-idmapd.service
    (from rev 201593, nfs-utils/trunk/rpc-idmapd.service)
  nfs-utils/repos/testing-x86_64/rpc-mountd.service
    (from rev 201593, nfs-utils/trunk/rpc-mountd.service)
  nfs-utils/repos/testing-x86_64/rpc-statd.service
    (from rev 201593, nfs-utils/trunk/rpc-statd.service)
  nfs-utils/repos/testing-x86_64/rpc-svcgssd.service
    (from rev 201593, nfs-utils/trunk/rpc-svcgssd.service)
  nfs-utils/repos/testing-x86_64/start-statd.patch
    (from rev 201593, nfs-utils/trunk/start-statd.patch)
  nfs-utils/repos/testing-x86_64/var-lib-nfs-rpc_pipefs.mount
    (from rev 201593, nfs-utils/trunk/var-lib-nfs-rpc_pipefs.mount)

-----------------------------------------------+
 testing-i686/PKGBUILD                         |  105 ++++++++++++++++++++++++
 testing-i686/blkmapd.service                  |   12 ++
 testing-i686/exports                          |   12 ++
 testing-i686/id_resolver.conf                 |    2 
 testing-i686/idmapd.conf                      |   14 +++
 testing-i686/nfs-client.target                |    8 +
 testing-i686/nfs-common.conf                  |   40 +++++++++
 testing-i686/nfs-server.conf                  |   29 ++++++
 testing-i686/nfs-server.target                |   10 ++
 testing-i686/nfs-utils-1.1.4-mtab-sym.patch   |   39 ++++++++
 testing-i686/nfs-utils-1.1.4-no-exec.patch    |   15 +++
 testing-i686/nfs-utils.conf                   |    1 
 testing-i686/nfs-utils.install                |   32 +++++++
 testing-i686/nfsd.service                     |   20 ++++
 testing-i686/proc-fs-nfsd.mount               |    8 +
 testing-i686/rpc-gssd.service                 |   16 +++
 testing-i686/rpc-idmapd.service               |   15 +++
 testing-i686/rpc-mountd.service               |   15 +++
 testing-i686/rpc-statd.service                |   15 +++
 testing-i686/rpc-svcgssd.service              |   15 +++
 testing-i686/start-statd.patch                |   10 ++
 testing-i686/var-lib-nfs-rpc_pipefs.mount     |    7 +
 testing-x86_64/PKGBUILD                       |  105 ++++++++++++++++++++++++
 testing-x86_64/blkmapd.service                |   12 ++
 testing-x86_64/exports                        |   12 ++
 testing-x86_64/id_resolver.conf               |    2 
 testing-x86_64/idmapd.conf                    |   14 +++
 testing-x86_64/nfs-client.target              |    8 +
 testing-x86_64/nfs-common.conf                |   40 +++++++++
 testing-x86_64/nfs-server.conf                |   29 ++++++
 testing-x86_64/nfs-server.target              |   10 ++
 testing-x86_64/nfs-utils-1.1.4-mtab-sym.patch |   39 ++++++++
 testing-x86_64/nfs-utils-1.1.4-no-exec.patch  |   15 +++
 testing-x86_64/nfs-utils.conf                 |    1 
 testing-x86_64/nfs-utils.install              |   32 +++++++
 testing-x86_64/nfsd.service                   |   20 ++++
 testing-x86_64/proc-fs-nfsd.mount             |    8 +
 testing-x86_64/rpc-gssd.service               |   16 +++
 testing-x86_64/rpc-idmapd.service             |   15 +++
 testing-x86_64/rpc-mountd.service             |   15 +++
 testing-x86_64/rpc-statd.service              |   15 +++
 testing-x86_64/rpc-svcgssd.service            |   15 +++
 testing-x86_64/start-statd.patch              |   10 ++
 testing-x86_64/var-lib-nfs-rpc_pipefs.mount   |    7 +
 44 files changed, 880 insertions(+)

Copied: nfs-utils/repos/testing-i686/PKGBUILD (from rev 201593, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,105 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: John Proctor <jproctor at prium.net>
+# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>
+# Contributor: abelstr <abel at pinklf.eu>
+# Contributor: Marco Lima <cipparello gmail com>
+
+pkgname=nfs-utils
+pkgver=1.2.9
+pkgrel=2
+pkgdesc="Support programs for Network File Systems"
+arch=('i686' 'x86_64')
+url='http://nfs.sourceforge.net'
+license=('GPL')
+backup=(etc/{exports,idmapd.conf,nfsmount.conf} etc/conf.d/{nfs-common.conf,nfs-server.conf})
+depends=('glibc' 'e2fsprogs' 'rpcbind' 'libtirpc>=0.2.1' 'librpcsecgss>=0.19-2' 'nfsidmap' 'libevent>=2.0.10' 'libgssglue' 'device-mapper')
+makedepends=('pkgconfig' 'autoconf' 'automake' 'sqlite')
+source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2
+	nfs-common.conf
+	nfs-server.conf
+	exports
+	idmapd.conf
+	nfs-utils-1.1.4-mtab-sym.patch
+	nfs-utils-1.1.4-no-exec.patch
+	rpc-gssd.service
+	rpc-mountd.service
+	rpc-svcgssd.service
+	rpc-idmapd.service
+	rpc-statd.service
+	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'
+         'e6ad3c7a59c7e4c24965a0e7da35026c'
+         'eb4f4027fab6fc1201f1ca04f5954c76'
+         '7674106eaaa4c149bccd4f05fe3604e9'
+         '4f4827dfc93008dfadd0a530ad0872b2'
+         '4c704d8e7e7e8dce3050319b9db88d2b'
+         '656ac433c4443eba6b47744a53a3c7d9'
+         '295ec0c9c049e146992561650fec9d52'
+         'ace4d56493e2c4822dda165db8263da6'
+         '35479f98600d594071ed21bf553a38da'
+         '01a1dd533382630ccecc9b882c47aa2f'
+         'f48da2fb07b1d5f016d63c16b0979ebb'
+         '972eb80ff8c94c647b977a8a3cdd985f'
+         'a13e9f388cd939d68fa6ada205eb4e25'
+         '1ee3eea917131f04bb08f2f858be7724'
+         '2e4a567cd3d4bf0feab0e380c46c3e50'
+         '8ac484023d786766d287ccbe878ae4ba'
+         'a43aabf0b8d02406b1babc3a206d952a'
+         'f8bb29c2ca1ce178e6371091a3e1090d')
+
+prepare() {
+  cd $srcdir/${pkgname}-${pkgver}
+  patch -Np1 -i ../nfs-utils-1.1.4-mtab-sym.patch
+  # fix /usr/bin in start-statd shell script
+  patch -Np1 -i ../start-statd.patch
+  #patch -Np1 -i ../nfs-utils-1.1.4-no-exec.patch
+}
+
+build() {
+  cd $srcdir/${pkgname}-${pkgver}
+  ./configure --prefix=/usr --sbindir=/usr/bin --enable-nfsv4 --enable-nfsv41 --enable-gss \
+              --without-tcp-wrappers --with-statedir=/var/lib/nfs \
+              --enable-ipv6 --sysconfdir=/etc --enable-libmount-mount \
+              --with-gssglue \
+              --enable-mountconfig --with-start-statd=/usr/bin/start-statd
+  # move mount helpers to /usr/bin
+  sed -i -e 's#sbindir = /sbin#sbindir = /usr/bin#g' utils/mount/Makefile
+  # move osd_login to /usr/bin
+  sed -i -e 's#sbindir = /sbin#sbindir = /usr/bin#g' utils/osd_login/Makefile
+  make 
+}
+
+package() {
+  cd $srcdir/${pkgname}-${pkgver}
+
+  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
+
+  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
+  mkdir "$pkgdir"/etc/exports.d
+  mkdir -m 555 "$pkgdir"/var/lib/nfs/rpc_pipefs
+  mkdir "$pkgdir"/var/lib/nfs/v4recovery
+}

Copied: nfs-utils/repos/testing-i686/blkmapd.service (from rev 201593, nfs-utils/trunk/blkmapd.service)
===================================================================
--- testing-i686/blkmapd.service	                        (rev 0)
+++ testing-i686/blkmapd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,12 @@
+[Unit]
+Description=pNFS Block Layout Client Mapping Daemon
+Documentation=man:blkmapd(8)
+After=nfsd.service
+RequiresMountsFor=/var/lib/nfs/rpc_pipefs
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/blkmapd
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/exports (from rev 201593, nfs-utils/trunk/exports)
===================================================================
--- testing-i686/exports	                        (rev 0)
+++ testing-i686/exports	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,12 @@
+# /etc/exports - exports(5) - directories exported to NFS clients
+#
+# Example for NFSv2 and NFSv3:
+#  /srv/home        hostname1(rw,sync) hostname2(ro,sync)
+# Example for NFSv4:
+#  /srv/nfs4	    hostname1(rw,sync,fsid=0)
+#  /srv/nfs4/home   hostname1(rw,sync,nohide)
+# Using Kerberos and integrity checking:
+#  /srv/nfs4        *(rw,sync,sec=krb5i,fsid=0)
+#  /srv/nfs4/home   *(rw,sync,sec=krb5i,nohide)
+#
+# Use `exportfs -arv` to reload.

Copied: nfs-utils/repos/testing-i686/id_resolver.conf (from rev 201593, nfs-utils/trunk/id_resolver.conf)
===================================================================
--- testing-i686/id_resolver.conf	                        (rev 0)
+++ testing-i686/id_resolver.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,2 @@
+create id_resolver * * /usr/bin/nfsidmap %k %d
+

Copied: nfs-utils/repos/testing-i686/idmapd.conf (from rev 201593, nfs-utils/trunk/idmapd.conf)
===================================================================
--- testing-i686/idmapd.conf	                        (rev 0)
+++ testing-i686/idmapd.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,14 @@
+[General]
+
+Verbosity = 0
+Pipefs-Directory = /var/lib/nfs/rpc_pipefs
+Domain = localdomain
+
+[Mapping]
+
+Nobody-User = nobody
+Nobody-Group = nobody
+
+[Translation]
+
+Method = nsswitch

Copied: nfs-utils/repos/testing-i686/nfs-client.target (from rev 201593, nfs-utils/trunk/nfs-client.target)
===================================================================
--- testing-i686/nfs-client.target	                        (rev 0)
+++ testing-i686/nfs-client.target	2013-12-16 08:30:46 UTC (rev 201594)
@@ -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

Copied: nfs-utils/repos/testing-i686/nfs-common.conf (from rev 201593, nfs-utils/trunk/nfs-common.conf)
===================================================================
--- testing-i686/nfs-common.conf	                        (rev 0)
+++ testing-i686/nfs-common.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,40 @@
+# Parameters to be passed to nfs-common (nfs clients & server) init script.
+#
+
+# If you do not set values for the NEED_ options, they will be attempted
+# autodetected; this should be sufficient for most people. Valid alternatives
+# for the NEED_ options are "yes" and "no".
+
+# Do you want to start the statd daemon? It is not needed for NFSv4.
+NEED_STATD=""
+
+# Options to pass to rpc.statd.
+# See rpc.statd(8) for more details.
+# N.B. statd normally runs on both client and server, and run-time
+# options should be specified accordingly.
+# STATD_OPTS="-p 32765 -o 32766"
+STATD_OPTS=""
+
+# Options to pass to sm-notify
+# e.g. SMNOTIFY_OPTS="-p 32764"
+SMNOTIFY_OPTS=""
+
+# Do you want to start the idmapd daemon? It is only needed for NFSv4.
+NEED_IDMAPD=""
+
+# Options to pass to rpc.idmapd.
+# See rpc.idmapd(8) for more details.
+IDMAPD_OPTS=""
+
+# Do you want to start the gssd daemon? It is required for Kerberos mounts.
+NEED_GSSD=""
+
+# Options to pass to rpc.gssd.
+# See rpc.gssd(8) for more details.
+GSSD_OPTS=""
+
+# Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
+PIPEFS_MOUNTPOINT=""
+
+# Options used to mount rpc_pipefs filesystem; the default is "defaults".
+PIPEFS_MOUNTOPTS=""

Copied: nfs-utils/repos/testing-i686/nfs-server.conf (from rev 201593, nfs-utils/trunk/nfs-server.conf)
===================================================================
--- testing-i686/nfs-server.conf	                        (rev 0)
+++ testing-i686/nfs-server.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,29 @@
+# Parameters to be passed to nfs-server init script.
+#
+
+# Options to pass to rpc.nfsd.
+# See rpc.nfsd(8) for more details.
+NFSD_OPTS=""
+
+# Number of servers to start up; the default is 8 servers.
+NFSD_COUNT=""
+
+# Where to mount nfsd filesystem; the default is "/proc/fs/nfsd".
+PROCNFSD_MOUNTPOINT=""
+
+# Options used to mount nfsd filesystem; the default is "rw,nodev,noexec,nosuid".
+PROCNFSD_MOUNTOPTS=""
+
+# Options for rpc.mountd.
+# If you have a port-based firewall, you might want to set up
+# a fixed port here using the --port option.
+# See rpc.mountd(8) for more details.
+MOUNTD_OPTS=""
+
+# Do you want to start the svcgssd daemon? It is only required for Kerberos
+# exports. Valid alternatives are "yes" and "no"; the default is "no".
+NEED_SVCGSSD=""
+
+# Options to pass to rpc.svcgssd.
+# See rpc.svcgssd(8) for more details.
+SVCGSSD_OPTS=""

Copied: nfs-utils/repos/testing-i686/nfs-server.target (from rev 201593, nfs-utils/trunk/nfs-server.target)
===================================================================
--- testing-i686/nfs-server.target	                        (rev 0)
+++ testing-i686/nfs-server.target	2013-12-16 08:30:46 UTC (rev 201594)
@@ -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

Copied: nfs-utils/repos/testing-i686/nfs-utils-1.1.4-mtab-sym.patch (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-mtab-sym.patch)
===================================================================
--- testing-i686/nfs-utils-1.1.4-mtab-sym.patch	                        (rev 0)
+++ testing-i686/nfs-utils-1.1.4-mtab-sym.patch	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,39 @@
+ripped from Debian
+
+--- nfs-utils-1.1.4/utils/mount/fstab.c
++++ nfs-utils-1.1.4/utils/mount/fstab.c
+@@ -57,7 +57,7 @@ mtab_does_not_exist(void) {
+ 	return var_mtab_does_not_exist;
+ }
+ 
+-static int
++int
+ mtab_is_a_symlink(void) {
+         get_mtab_info();
+         return var_mtab_is_a_symlink;
+--- nfs-utils-1.1.4/utils/mount/fstab.h
++++ nfs-utils-1.1.4/utils/mount/fstab.h
+@@ -7,6 +7,7 @@
+ #define _PATH_FSTAB "/etc/fstab"
+ #endif
+ 
++int mtab_is_a_symlink(void);
+ int mtab_is_writable(void);
+ int mtab_does_not_exist(void);
+ void reset_mtab_info(void);
+--- nfs-utils-1.1.4/utils/mount/mount.c
++++ nfs-utils-1.1.4/utils/mount/mount.c
+@@ -230,6 +230,13 @@ create_mtab (void) {
+ 	int flags;
+ 	mntFILE *mfp;
+ 
++	/* Avoid writing if the mtab is a symlink to /proc/mounts, since
++	   that would create a file /proc/mounts in case the proc filesystem
++	   is not mounted, and the fchmod below would also fail. */
++	if (mtab_is_a_symlink()) {
++		return EX_SUCCESS;
++	}
++
+ 	lock_mtab();
+ 
+ 	mfp = nfs_setmntent (MOUNTED, "a+");

Copied: nfs-utils/repos/testing-i686/nfs-utils-1.1.4-no-exec.patch (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-no-exec.patch)
===================================================================
--- testing-i686/nfs-utils-1.1.4-no-exec.patch	                        (rev 0)
+++ testing-i686/nfs-utils-1.1.4-no-exec.patch	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+ripped from Debian
+
+--- nfs-utils-1.1.2/utils/mount/mount.c
++++ nfs-utils-1.1.2/utils/mount/mount.c
+@@ -381,10 +381,6 @@
+ 		mount_error(NULL, mount_point, ENOTDIR);
+ 		return 1;
+ 	}
+-	if (access(mount_point, X_OK) < 0) {
+-		mount_error(NULL, mount_point, errno);
+-		return 1;
+-	}
+ 
+ 	return 0;
+ }

Copied: nfs-utils/repos/testing-i686/nfs-utils.conf (from rev 201593, nfs-utils/trunk/nfs-utils.conf)
===================================================================
--- testing-i686/nfs-utils.conf	                        (rev 0)
+++ testing-i686/nfs-utils.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1 @@
+nfs

Copied: nfs-utils/repos/testing-i686/nfs-utils.install (from rev 201593, nfs-utils/trunk/nfs-utils.install)
===================================================================
--- testing-i686/nfs-utils.install	                        (rev 0)
+++ testing-i686/nfs-utils.install	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,32 @@
+## arg 1:  the new package version
+post_install() {
+cat << 'EOM'
+  ==> PLEASE NOTE:
+  ==> Extended configuration options for NFS (clients & server) are available in
+  ==> /etc/conf.d/nfs-common.conf and in /etc/conf.d/nfs-server.conf
+  ==>
+  ==> Please refer to http://wiki.archlinux.org/index.php/NFS
+  ==> for further information on NFS4; for NFSv3, refer to
+  ==> http://wiki.archlinux.org/index.php/NFSv3   
+EOM
+}
+
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  if [ "$(vercmp $2 1.2.0-2)" -lt 0 ]; then
+cat << 'EOM'
+  ==> IMPORTANT NFS UTILS CHANGES:
+  ==> This is a rather important upgrade, you are going to have to change config files.
+  ==> /etc/rc.conf daemons changes:
+  ==> Change portmap to rpcbind
+  ==> Change nfslock to nfs-common
+  ==> Change nfsd to nfs-server
+  ==>
+  ==> Extended configuration options for NFS (clients & server) are available in:
+  ==> /etc/conf.d/nfs-common
+  ==> /etc/conf.d/nfs-server
+  ==> Please change them to your needs.
+EOM
+  fi
+}

Copied: nfs-utils/repos/testing-i686/nfsd.service (from rev 201593, nfs-utils/trunk/nfsd.service)
===================================================================
--- testing-i686/nfsd.service	                        (rev 0)
+++ testing-i686/nfsd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,20 @@
+[Unit]
+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
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/proc-fs-nfsd.mount (from rev 201593, nfs-utils/trunk/proc-fs-nfsd.mount)
===================================================================
--- testing-i686/proc-fs-nfsd.mount	                        (rev 0)
+++ testing-i686/proc-fs-nfsd.mount	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,8 @@
+[Unit]
+Description=NFS Configuration File System
+DefaultDependencies=no
+
+[Mount]
+What=sunrpc
+Where=/proc/fs/nfsd
+Type=nfsd

Copied: nfs-utils/repos/testing-i686/rpc-gssd.service (from rev 201593, nfs-utils/trunk/rpc-gssd.service)
===================================================================
--- testing-i686/rpc-gssd.service	                        (rev 0)
+++ testing-i686/rpc-gssd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,16 @@
+[Unit]
+Description=RPC GSS-API Client Daemon
+Documentation=man:rpc.gssd(8)
+After=rpcbind.service
+Requires=rpcbind.service
+RequiresMountsFor=/var/lib/nfs/rpc_pipefs
+Before=nfs-client.target remote-fs-pre.target
+PartOf=nfs-client.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/nfs-common.conf
+ExecStart=/usr/bin/rpc.gssd $GSSD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/rpc-idmapd.service (from rev 201593, nfs-utils/trunk/rpc-idmapd.service)
===================================================================
--- testing-i686/rpc-idmapd.service	                        (rev 0)
+++ testing-i686/rpc-idmapd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+Description=NFS v4 ID-Name Mapping Daemon
+Documentation=man:rpc.idmapd(8) man:idmapd.conf(5)
+After=nfsd.service
+RequiresMountsFor=/var/lib/nfs/rpc_pipefs
+Before=nfs-server.target
+PartOf=nfs-server.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/nfs-common.conf
+ExecStart=/usr/bin/rpc.idmapd $IDMAPD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/rpc-mountd.service (from rev 201593, nfs-utils/trunk/rpc-mountd.service)
===================================================================
--- testing-i686/rpc-mountd.service	                        (rev 0)
+++ testing-i686/rpc-mountd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+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
+EnvironmentFile=/etc/conf.d/nfs-server.conf
+ExecStart=/usr/bin/rpc.mountd $MOUNTD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/rpc-statd.service (from rev 201593, nfs-utils/trunk/rpc-statd.service)
===================================================================
--- testing-i686/rpc-statd.service	                        (rev 0)
+++ testing-i686/rpc-statd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+Description=NFS v2/3 Network Status Monitor Daemon
+Documentation=man:rpc.statd(8)
+After=rpcbind.service
+Requires=rpcbind.service
+Before=nfs-server.target
+PartOf=nfs-server.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/nfs-common.conf
+ExecStart=/usr/bin/rpc.statd $STATD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/rpc-svcgssd.service (from rev 201593, nfs-utils/trunk/rpc-svcgssd.service)
===================================================================
--- testing-i686/rpc-svcgssd.service	                        (rev 0)
+++ testing-i686/rpc-svcgssd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+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
+EnvironmentFile=/etc/conf.d/nfs-server.conf
+ExecStart=/usr/bin/rpc.svcgssd $SVCGSSD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-i686/start-statd.patch (from rev 201593, nfs-utils/trunk/start-statd.patch)
===================================================================
--- testing-i686/start-statd.patch	                        (rev 0)
+++ testing-i686/start-statd.patch	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,10 @@
+--- nfs-utils-1.2.8/utils/statd/start-statd.old	2013-05-23 11:35:10.408221686 +0200
++++ nfs-utils-1.2.8/utils/statd/start-statd	2013-05-23 11:35:22.191356904 +0200
+@@ -4,6 +4,6 @@
+ # /var/run/rpc.statd.pid).
+ # It should run statd with whatever flags are apropriate for this
+ # site.
+-PATH=/sbin:/usr/sbin
++PATH=/sbin:/usr/sbin:/usr/bin
+ exec rpc.statd --no-notify
+ 

Copied: nfs-utils/repos/testing-i686/var-lib-nfs-rpc_pipefs.mount (from rev 201593, nfs-utils/trunk/var-lib-nfs-rpc_pipefs.mount)
===================================================================
--- testing-i686/var-lib-nfs-rpc_pipefs.mount	                        (rev 0)
+++ testing-i686/var-lib-nfs-rpc_pipefs.mount	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,7 @@
+[Unit]
+Description=RPC Pipe File System
+
+[Mount]
+What=rpc_pipefs
+Where=/var/lib/nfs/rpc_pipefs
+Type=rpc_pipefs

Copied: nfs-utils/repos/testing-x86_64/PKGBUILD (from rev 201593, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,105 @@
+# $Id$
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: John Proctor <jproctor at prium.net>
+# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>
+# Contributor: abelstr <abel at pinklf.eu>
+# Contributor: Marco Lima <cipparello gmail com>
+
+pkgname=nfs-utils
+pkgver=1.2.9
+pkgrel=2
+pkgdesc="Support programs for Network File Systems"
+arch=('i686' 'x86_64')
+url='http://nfs.sourceforge.net'
+license=('GPL')
+backup=(etc/{exports,idmapd.conf,nfsmount.conf} etc/conf.d/{nfs-common.conf,nfs-server.conf})
+depends=('glibc' 'e2fsprogs' 'rpcbind' 'libtirpc>=0.2.1' 'librpcsecgss>=0.19-2' 'nfsidmap' 'libevent>=2.0.10' 'libgssglue' 'device-mapper')
+makedepends=('pkgconfig' 'autoconf' 'automake' 'sqlite')
+source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2
+	nfs-common.conf
+	nfs-server.conf
+	exports
+	idmapd.conf
+	nfs-utils-1.1.4-mtab-sym.patch
+	nfs-utils-1.1.4-no-exec.patch
+	rpc-gssd.service
+	rpc-mountd.service
+	rpc-svcgssd.service
+	rpc-idmapd.service
+	rpc-statd.service
+	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'
+         'e6ad3c7a59c7e4c24965a0e7da35026c'
+         'eb4f4027fab6fc1201f1ca04f5954c76'
+         '7674106eaaa4c149bccd4f05fe3604e9'
+         '4f4827dfc93008dfadd0a530ad0872b2'
+         '4c704d8e7e7e8dce3050319b9db88d2b'
+         '656ac433c4443eba6b47744a53a3c7d9'
+         '295ec0c9c049e146992561650fec9d52'
+         'ace4d56493e2c4822dda165db8263da6'
+         '35479f98600d594071ed21bf553a38da'
+         '01a1dd533382630ccecc9b882c47aa2f'
+         'f48da2fb07b1d5f016d63c16b0979ebb'
+         '972eb80ff8c94c647b977a8a3cdd985f'
+         'a13e9f388cd939d68fa6ada205eb4e25'
+         '1ee3eea917131f04bb08f2f858be7724'
+         '2e4a567cd3d4bf0feab0e380c46c3e50'
+         '8ac484023d786766d287ccbe878ae4ba'
+         'a43aabf0b8d02406b1babc3a206d952a'
+         'f8bb29c2ca1ce178e6371091a3e1090d')
+
+prepare() {
+  cd $srcdir/${pkgname}-${pkgver}
+  patch -Np1 -i ../nfs-utils-1.1.4-mtab-sym.patch
+  # fix /usr/bin in start-statd shell script
+  patch -Np1 -i ../start-statd.patch
+  #patch -Np1 -i ../nfs-utils-1.1.4-no-exec.patch
+}
+
+build() {
+  cd $srcdir/${pkgname}-${pkgver}
+  ./configure --prefix=/usr --sbindir=/usr/bin --enable-nfsv4 --enable-nfsv41 --enable-gss \
+              --without-tcp-wrappers --with-statedir=/var/lib/nfs \
+              --enable-ipv6 --sysconfdir=/etc --enable-libmount-mount \
+              --with-gssglue \
+              --enable-mountconfig --with-start-statd=/usr/bin/start-statd
+  # move mount helpers to /usr/bin
+  sed -i -e 's#sbindir = /sbin#sbindir = /usr/bin#g' utils/mount/Makefile
+  # move osd_login to /usr/bin
+  sed -i -e 's#sbindir = /sbin#sbindir = /usr/bin#g' utils/osd_login/Makefile
+  make 
+}
+
+package() {
+  cd $srcdir/${pkgname}-${pkgver}
+
+  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
+
+  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
+  mkdir "$pkgdir"/etc/exports.d
+  mkdir -m 555 "$pkgdir"/var/lib/nfs/rpc_pipefs
+  mkdir "$pkgdir"/var/lib/nfs/v4recovery
+}

Copied: nfs-utils/repos/testing-x86_64/blkmapd.service (from rev 201593, nfs-utils/trunk/blkmapd.service)
===================================================================
--- testing-x86_64/blkmapd.service	                        (rev 0)
+++ testing-x86_64/blkmapd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,12 @@
+[Unit]
+Description=pNFS Block Layout Client Mapping Daemon
+Documentation=man:blkmapd(8)
+After=nfsd.service
+RequiresMountsFor=/var/lib/nfs/rpc_pipefs
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/blkmapd
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/exports (from rev 201593, nfs-utils/trunk/exports)
===================================================================
--- testing-x86_64/exports	                        (rev 0)
+++ testing-x86_64/exports	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,12 @@
+# /etc/exports - exports(5) - directories exported to NFS clients
+#
+# Example for NFSv2 and NFSv3:
+#  /srv/home        hostname1(rw,sync) hostname2(ro,sync)
+# Example for NFSv4:
+#  /srv/nfs4	    hostname1(rw,sync,fsid=0)
+#  /srv/nfs4/home   hostname1(rw,sync,nohide)
+# Using Kerberos and integrity checking:
+#  /srv/nfs4        *(rw,sync,sec=krb5i,fsid=0)
+#  /srv/nfs4/home   *(rw,sync,sec=krb5i,nohide)
+#
+# Use `exportfs -arv` to reload.

Copied: nfs-utils/repos/testing-x86_64/id_resolver.conf (from rev 201593, nfs-utils/trunk/id_resolver.conf)
===================================================================
--- testing-x86_64/id_resolver.conf	                        (rev 0)
+++ testing-x86_64/id_resolver.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,2 @@
+create id_resolver * * /usr/bin/nfsidmap %k %d
+

Copied: nfs-utils/repos/testing-x86_64/idmapd.conf (from rev 201593, nfs-utils/trunk/idmapd.conf)
===================================================================
--- testing-x86_64/idmapd.conf	                        (rev 0)
+++ testing-x86_64/idmapd.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,14 @@
+[General]
+
+Verbosity = 0
+Pipefs-Directory = /var/lib/nfs/rpc_pipefs
+Domain = localdomain
+
+[Mapping]
+
+Nobody-User = nobody
+Nobody-Group = nobody
+
+[Translation]
+
+Method = nsswitch

Copied: nfs-utils/repos/testing-x86_64/nfs-client.target (from rev 201593, nfs-utils/trunk/nfs-client.target)
===================================================================
--- testing-x86_64/nfs-client.target	                        (rev 0)
+++ testing-x86_64/nfs-client.target	2013-12-16 08:30:46 UTC (rev 201594)
@@ -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

Copied: nfs-utils/repos/testing-x86_64/nfs-common.conf (from rev 201593, nfs-utils/trunk/nfs-common.conf)
===================================================================
--- testing-x86_64/nfs-common.conf	                        (rev 0)
+++ testing-x86_64/nfs-common.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,40 @@
+# Parameters to be passed to nfs-common (nfs clients & server) init script.
+#
+
+# If you do not set values for the NEED_ options, they will be attempted
+# autodetected; this should be sufficient for most people. Valid alternatives
+# for the NEED_ options are "yes" and "no".
+
+# Do you want to start the statd daemon? It is not needed for NFSv4.
+NEED_STATD=""
+
+# Options to pass to rpc.statd.
+# See rpc.statd(8) for more details.
+# N.B. statd normally runs on both client and server, and run-time
+# options should be specified accordingly.
+# STATD_OPTS="-p 32765 -o 32766"
+STATD_OPTS=""
+
+# Options to pass to sm-notify
+# e.g. SMNOTIFY_OPTS="-p 32764"
+SMNOTIFY_OPTS=""
+
+# Do you want to start the idmapd daemon? It is only needed for NFSv4.
+NEED_IDMAPD=""
+
+# Options to pass to rpc.idmapd.
+# See rpc.idmapd(8) for more details.
+IDMAPD_OPTS=""
+
+# Do you want to start the gssd daemon? It is required for Kerberos mounts.
+NEED_GSSD=""
+
+# Options to pass to rpc.gssd.
+# See rpc.gssd(8) for more details.
+GSSD_OPTS=""
+
+# Where to mount rpc_pipefs filesystem; the default is "/var/lib/nfs/rpc_pipefs".
+PIPEFS_MOUNTPOINT=""
+
+# Options used to mount rpc_pipefs filesystem; the default is "defaults".
+PIPEFS_MOUNTOPTS=""

Copied: nfs-utils/repos/testing-x86_64/nfs-server.conf (from rev 201593, nfs-utils/trunk/nfs-server.conf)
===================================================================
--- testing-x86_64/nfs-server.conf	                        (rev 0)
+++ testing-x86_64/nfs-server.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,29 @@
+# Parameters to be passed to nfs-server init script.
+#
+
+# Options to pass to rpc.nfsd.
+# See rpc.nfsd(8) for more details.
+NFSD_OPTS=""
+
+# Number of servers to start up; the default is 8 servers.
+NFSD_COUNT=""
+
+# Where to mount nfsd filesystem; the default is "/proc/fs/nfsd".
+PROCNFSD_MOUNTPOINT=""
+
+# Options used to mount nfsd filesystem; the default is "rw,nodev,noexec,nosuid".
+PROCNFSD_MOUNTOPTS=""
+
+# Options for rpc.mountd.
+# If you have a port-based firewall, you might want to set up
+# a fixed port here using the --port option.
+# See rpc.mountd(8) for more details.
+MOUNTD_OPTS=""
+
+# Do you want to start the svcgssd daemon? It is only required for Kerberos
+# exports. Valid alternatives are "yes" and "no"; the default is "no".
+NEED_SVCGSSD=""
+
+# Options to pass to rpc.svcgssd.
+# See rpc.svcgssd(8) for more details.
+SVCGSSD_OPTS=""

Copied: nfs-utils/repos/testing-x86_64/nfs-server.target (from rev 201593, nfs-utils/trunk/nfs-server.target)
===================================================================
--- testing-x86_64/nfs-server.target	                        (rev 0)
+++ testing-x86_64/nfs-server.target	2013-12-16 08:30:46 UTC (rev 201594)
@@ -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

Copied: nfs-utils/repos/testing-x86_64/nfs-utils-1.1.4-mtab-sym.patch (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-mtab-sym.patch)
===================================================================
--- testing-x86_64/nfs-utils-1.1.4-mtab-sym.patch	                        (rev 0)
+++ testing-x86_64/nfs-utils-1.1.4-mtab-sym.patch	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,39 @@
+ripped from Debian
+
+--- nfs-utils-1.1.4/utils/mount/fstab.c
++++ nfs-utils-1.1.4/utils/mount/fstab.c
+@@ -57,7 +57,7 @@ mtab_does_not_exist(void) {
+ 	return var_mtab_does_not_exist;
+ }
+ 
+-static int
++int
+ mtab_is_a_symlink(void) {
+         get_mtab_info();
+         return var_mtab_is_a_symlink;
+--- nfs-utils-1.1.4/utils/mount/fstab.h
++++ nfs-utils-1.1.4/utils/mount/fstab.h
+@@ -7,6 +7,7 @@
+ #define _PATH_FSTAB "/etc/fstab"
+ #endif
+ 
++int mtab_is_a_symlink(void);
+ int mtab_is_writable(void);
+ int mtab_does_not_exist(void);
+ void reset_mtab_info(void);
+--- nfs-utils-1.1.4/utils/mount/mount.c
++++ nfs-utils-1.1.4/utils/mount/mount.c
+@@ -230,6 +230,13 @@ create_mtab (void) {
+ 	int flags;
+ 	mntFILE *mfp;
+ 
++	/* Avoid writing if the mtab is a symlink to /proc/mounts, since
++	   that would create a file /proc/mounts in case the proc filesystem
++	   is not mounted, and the fchmod below would also fail. */
++	if (mtab_is_a_symlink()) {
++		return EX_SUCCESS;
++	}
++
+ 	lock_mtab();
+ 
+ 	mfp = nfs_setmntent (MOUNTED, "a+");

Copied: nfs-utils/repos/testing-x86_64/nfs-utils-1.1.4-no-exec.patch (from rev 201593, nfs-utils/trunk/nfs-utils-1.1.4-no-exec.patch)
===================================================================
--- testing-x86_64/nfs-utils-1.1.4-no-exec.patch	                        (rev 0)
+++ testing-x86_64/nfs-utils-1.1.4-no-exec.patch	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+ripped from Debian
+
+--- nfs-utils-1.1.2/utils/mount/mount.c
++++ nfs-utils-1.1.2/utils/mount/mount.c
+@@ -381,10 +381,6 @@
+ 		mount_error(NULL, mount_point, ENOTDIR);
+ 		return 1;
+ 	}
+-	if (access(mount_point, X_OK) < 0) {
+-		mount_error(NULL, mount_point, errno);
+-		return 1;
+-	}
+ 
+ 	return 0;
+ }

Copied: nfs-utils/repos/testing-x86_64/nfs-utils.conf (from rev 201593, nfs-utils/trunk/nfs-utils.conf)
===================================================================
--- testing-x86_64/nfs-utils.conf	                        (rev 0)
+++ testing-x86_64/nfs-utils.conf	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1 @@
+nfs

Copied: nfs-utils/repos/testing-x86_64/nfs-utils.install (from rev 201593, nfs-utils/trunk/nfs-utils.install)
===================================================================
--- testing-x86_64/nfs-utils.install	                        (rev 0)
+++ testing-x86_64/nfs-utils.install	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,32 @@
+## arg 1:  the new package version
+post_install() {
+cat << 'EOM'
+  ==> PLEASE NOTE:
+  ==> Extended configuration options for NFS (clients & server) are available in
+  ==> /etc/conf.d/nfs-common.conf and in /etc/conf.d/nfs-server.conf
+  ==>
+  ==> Please refer to http://wiki.archlinux.org/index.php/NFS
+  ==> for further information on NFS4; for NFSv3, refer to
+  ==> http://wiki.archlinux.org/index.php/NFSv3   
+EOM
+}
+
+## arg 1:  the new package version
+## arg 2:  the old package version
+post_upgrade() {
+  if [ "$(vercmp $2 1.2.0-2)" -lt 0 ]; then
+cat << 'EOM'
+  ==> IMPORTANT NFS UTILS CHANGES:
+  ==> This is a rather important upgrade, you are going to have to change config files.
+  ==> /etc/rc.conf daemons changes:
+  ==> Change portmap to rpcbind
+  ==> Change nfslock to nfs-common
+  ==> Change nfsd to nfs-server
+  ==>
+  ==> Extended configuration options for NFS (clients & server) are available in:
+  ==> /etc/conf.d/nfs-common
+  ==> /etc/conf.d/nfs-server
+  ==> Please change them to your needs.
+EOM
+  fi
+}

Copied: nfs-utils/repos/testing-x86_64/nfsd.service (from rev 201593, nfs-utils/trunk/nfsd.service)
===================================================================
--- testing-x86_64/nfsd.service	                        (rev 0)
+++ testing-x86_64/nfsd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,20 @@
+[Unit]
+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
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/proc-fs-nfsd.mount (from rev 201593, nfs-utils/trunk/proc-fs-nfsd.mount)
===================================================================
--- testing-x86_64/proc-fs-nfsd.mount	                        (rev 0)
+++ testing-x86_64/proc-fs-nfsd.mount	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,8 @@
+[Unit]
+Description=NFS Configuration File System
+DefaultDependencies=no
+
+[Mount]
+What=sunrpc
+Where=/proc/fs/nfsd
+Type=nfsd

Copied: nfs-utils/repos/testing-x86_64/rpc-gssd.service (from rev 201593, nfs-utils/trunk/rpc-gssd.service)
===================================================================
--- testing-x86_64/rpc-gssd.service	                        (rev 0)
+++ testing-x86_64/rpc-gssd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,16 @@
+[Unit]
+Description=RPC GSS-API Client Daemon
+Documentation=man:rpc.gssd(8)
+After=rpcbind.service
+Requires=rpcbind.service
+RequiresMountsFor=/var/lib/nfs/rpc_pipefs
+Before=nfs-client.target remote-fs-pre.target
+PartOf=nfs-client.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/nfs-common.conf
+ExecStart=/usr/bin/rpc.gssd $GSSD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/rpc-idmapd.service (from rev 201593, nfs-utils/trunk/rpc-idmapd.service)
===================================================================
--- testing-x86_64/rpc-idmapd.service	                        (rev 0)
+++ testing-x86_64/rpc-idmapd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+Description=NFS v4 ID-Name Mapping Daemon
+Documentation=man:rpc.idmapd(8) man:idmapd.conf(5)
+After=nfsd.service
+RequiresMountsFor=/var/lib/nfs/rpc_pipefs
+Before=nfs-server.target
+PartOf=nfs-server.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/nfs-common.conf
+ExecStart=/usr/bin/rpc.idmapd $IDMAPD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/rpc-mountd.service (from rev 201593, nfs-utils/trunk/rpc-mountd.service)
===================================================================
--- testing-x86_64/rpc-mountd.service	                        (rev 0)
+++ testing-x86_64/rpc-mountd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+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
+EnvironmentFile=/etc/conf.d/nfs-server.conf
+ExecStart=/usr/bin/rpc.mountd $MOUNTD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/rpc-statd.service (from rev 201593, nfs-utils/trunk/rpc-statd.service)
===================================================================
--- testing-x86_64/rpc-statd.service	                        (rev 0)
+++ testing-x86_64/rpc-statd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+Description=NFS v2/3 Network Status Monitor Daemon
+Documentation=man:rpc.statd(8)
+After=rpcbind.service
+Requires=rpcbind.service
+Before=nfs-server.target
+PartOf=nfs-server.target
+
+[Service]
+Type=forking
+EnvironmentFile=/etc/conf.d/nfs-common.conf
+ExecStart=/usr/bin/rpc.statd $STATD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/rpc-svcgssd.service (from rev 201593, nfs-utils/trunk/rpc-svcgssd.service)
===================================================================
--- testing-x86_64/rpc-svcgssd.service	                        (rev 0)
+++ testing-x86_64/rpc-svcgssd.service	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,15 @@
+[Unit]
+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
+EnvironmentFile=/etc/conf.d/nfs-server.conf
+ExecStart=/usr/bin/rpc.svcgssd $SVCGSSD_OPTS
+
+[Install]
+WantedBy=multi-user.target

Copied: nfs-utils/repos/testing-x86_64/start-statd.patch (from rev 201593, nfs-utils/trunk/start-statd.patch)
===================================================================
--- testing-x86_64/start-statd.patch	                        (rev 0)
+++ testing-x86_64/start-statd.patch	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,10 @@
+--- nfs-utils-1.2.8/utils/statd/start-statd.old	2013-05-23 11:35:10.408221686 +0200
++++ nfs-utils-1.2.8/utils/statd/start-statd	2013-05-23 11:35:22.191356904 +0200
+@@ -4,6 +4,6 @@
+ # /var/run/rpc.statd.pid).
+ # It should run statd with whatever flags are apropriate for this
+ # site.
+-PATH=/sbin:/usr/sbin
++PATH=/sbin:/usr/sbin:/usr/bin
+ exec rpc.statd --no-notify
+ 

Copied: nfs-utils/repos/testing-x86_64/var-lib-nfs-rpc_pipefs.mount (from rev 201593, nfs-utils/trunk/var-lib-nfs-rpc_pipefs.mount)
===================================================================
--- testing-x86_64/var-lib-nfs-rpc_pipefs.mount	                        (rev 0)
+++ testing-x86_64/var-lib-nfs-rpc_pipefs.mount	2013-12-16 08:30:46 UTC (rev 201594)
@@ -0,0 +1,7 @@
+[Unit]
+Description=RPC Pipe File System
+
+[Mount]
+What=rpc_pipefs
+Where=/var/lib/nfs/rpc_pipefs
+Type=rpc_pipefs




More information about the arch-commits mailing list