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

Andreas Radke andyrtr at archlinux.org
Thu Aug 25 20:49:09 UTC 2016


    Date: Thursday, August 25, 2016 @ 20:49:09
  Author: andyrtr
Revision: 274650

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

Added:
  nfs-utils/repos/testing-i686/
  nfs-utils/repos/testing-i686/PKGBUILD
    (from rev 274649, nfs-utils/trunk/PKGBUILD)
  nfs-utils/repos/testing-i686/exports
    (from rev 274649, nfs-utils/trunk/exports)
  nfs-utils/repos/testing-i686/id_resolver.conf
    (from rev 274649, nfs-utils/trunk/id_resolver.conf)
  nfs-utils/repos/testing-i686/nfs-utils.conf
    (from rev 274649, nfs-utils/trunk/nfs-utils.conf)
  nfs-utils/repos/testing-i686/nfs-utils.install
    (from rev 274649, nfs-utils/trunk/nfs-utils.install)
  nfs-utils/repos/testing-i686/nfs-utils_env.sh
    (from rev 274649, nfs-utils/trunk/nfs-utils_env.sh)
  nfs-utils/repos/testing-i686/nfs.sysconfig
    (from rev 274649, nfs-utils/trunk/nfs.sysconfig)
  nfs-utils/repos/testing-x86_64/
  nfs-utils/repos/testing-x86_64/PKGBUILD
    (from rev 274649, nfs-utils/trunk/PKGBUILD)
  nfs-utils/repos/testing-x86_64/exports
    (from rev 274649, nfs-utils/trunk/exports)
  nfs-utils/repos/testing-x86_64/id_resolver.conf
    (from rev 274649, nfs-utils/trunk/id_resolver.conf)
  nfs-utils/repos/testing-x86_64/nfs-utils.conf
    (from rev 274649, nfs-utils/trunk/nfs-utils.conf)
  nfs-utils/repos/testing-x86_64/nfs-utils.install
    (from rev 274649, nfs-utils/trunk/nfs-utils.install)
  nfs-utils/repos/testing-x86_64/nfs-utils_env.sh
    (from rev 274649, nfs-utils/trunk/nfs-utils_env.sh)
  nfs-utils/repos/testing-x86_64/nfs.sysconfig
    (from rev 274649, nfs-utils/trunk/nfs.sysconfig)

----------------------------------+
 testing-i686/PKGBUILD            |   98 +++++++++++++++++++++++++++++++++++++
 testing-i686/exports             |   12 ++++
 testing-i686/id_resolver.conf    |    9 +++
 testing-i686/nfs-utils.conf      |    1 
 testing-i686/nfs-utils.install   |   21 +++++++
 testing-i686/nfs-utils_env.sh    |   54 ++++++++++++++++++++
 testing-i686/nfs.sysconfig       |   42 +++++++++++++++
 testing-x86_64/PKGBUILD          |   98 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/exports           |   12 ++++
 testing-x86_64/id_resolver.conf  |    9 +++
 testing-x86_64/nfs-utils.conf    |    1 
 testing-x86_64/nfs-utils.install |   21 +++++++
 testing-x86_64/nfs-utils_env.sh  |   54 ++++++++++++++++++++
 testing-x86_64/nfs.sysconfig     |   42 +++++++++++++++
 14 files changed, 474 insertions(+)

Copied: nfs-utils/repos/testing-i686/PKGBUILD (from rev 274649, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,98 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# 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.3.4
+pkgrel=1
+pkgdesc="Support programs for Network File Systems"
+arch=('i686' 'x86_64')
+url='http://nfs.sourceforge.net'
+license=('GPL2')
+backup=(etc/{exports,nfsmount.conf} etc/sysconfig/nfs)
+depends=('rpcbind' 'nfsidmap' 'gssproxy' 'libevent' 'device-mapper')
+makedepends=('sqlite')
+# http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=summary
+source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.{bz2,sign}
+        id_resolver.conf
+        nfs-utils_env.sh
+        nfs.sysconfig
+        exports
+        #nfs-utils.conf 
+)
+install=nfs-utils.install
+optdepends=('sqlite: for nfsdcltrack usage'
+            'python: for nfsiostat and mountstats usage')
+sha1sums=('f66ce79f6d2de8907e0e2f6b00f96d7486281cc5'
+          'SKIP'
+          '24b3c10b47dc120b2d252cf1e5001effa8f76a62'
+          '519eaaebecf423dcea156ed6e2c4f722236df0b2'
+          'e9648adc732f47f24da6d71e1729da5a7697e203'
+          '170a929d9c0f22edb13b656648cadf372efea841')
+validpgpkeys=('E1B71E339E20A10A676F7CB69AFB1D681A125177') # Steve Dickson
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  # fix hardcoded sbin path to our needs
+  sed -i "s|sbindir = /sbin|sbindir = /usr/bin|g" utils/*/Makefile.am
+  autoreconf -vfi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --enable-gss \
+    --without-tcp-wrappers \
+    --with-statedir=/var/lib/nfs \
+    --enable-ipv6 \
+    --enable-libmount-mount \
+    --enable-mountconfig \
+    --with-start-statd=/usr/bin/start-statd
+  make 
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make -k check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="$pkgdir" install
+ 
+  install -D -m 644 utils/mount/nfsmount.conf "$pkgdir"/etc/nfsmount.conf
+  
+  for i in systemd/{*.service,*.mount,*.target}; do
+    install -D -m 644 $i "$pkgdir"/usr/lib/systemd/system/$(basename $i)
+  done
+
+  cd ..
+
+  # distro specific daemon flags - files taken from Fedora ( = upstream developer)
+  install -D -m 755 nfs-utils_env.sh "$pkgdir"/usr/lib/nfs-utils/nfs-utils_env.sh
+  install -D -m 644 nfs.sysconfig    "$pkgdir"/etc/sysconfig/nfs
+  
+  # fix path - this will be fixed in 1.3.5rc2 and later
+  sed -i "s:libexec:lib:" "$pkgdir"/usr/lib/systemd/system/nfs-config.service
+
+  # empty exports file  
+  install -D -m 644 exports          "$pkgdir"/etc/exports
+
+  # config file for idmappers in newer kernels
+  install -D -m 644 id_resolver.conf "$pkgdir"/etc/request-key.d/id_resolver.conf
+
+  # load kernel module - should be obsolete
+#  install -D -m 644 nfs-utils.conf   "$pkgdir"/usr/lib/modules-load.d/nfs-utils.conf
+
+  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/exports (from rev 274649, nfs-utils/trunk/exports)
===================================================================
--- testing-i686/exports	                        (rev 0)
+++ testing-i686/exports	2016-08-25 20:49:09 UTC (rev 274650)
@@ -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 274649, nfs-utils/trunk/id_resolver.conf)
===================================================================
--- testing-i686/id_resolver.conf	                        (rev 0)
+++ testing-i686/id_resolver.conf	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,9 @@
+#
+# nfsidmap(5) - The NFS idmapper upcall program
+# Summary: Used by NFSv4 to map user/group ids into 
+#          user/group names and names into in ids
+# Options:
+# -v         Increases the verbosity of the output to syslog
+# -t timeout Set the expiration timer, in seconds, on the key
+#
+create id_resolver * * /usr/bin/nfsidmap %k %d

Copied: nfs-utils/repos/testing-i686/nfs-utils.conf (from rev 274649, nfs-utils/trunk/nfs-utils.conf)
===================================================================
--- testing-i686/nfs-utils.conf	                        (rev 0)
+++ testing-i686/nfs-utils.conf	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1 @@
+nfs

Copied: nfs-utils/repos/testing-i686/nfs-utils.install (from rev 274649, nfs-utils/trunk/nfs-utils.install)
===================================================================
--- testing-i686/nfs-utils.install	                        (rev 0)
+++ testing-i686/nfs-utils.install	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,21 @@
+post_install() {
+cat << 'EOM'
+  ==> PLEASE NOTE:
+  ==> Extended configuration options for NFS are available in
+  ==> /etc/sysconfig/nfs
+  ==>
+  ==> Please refer to http://wiki.archlinux.org/index.php/NFS
+  ==> for further information.
+EOM
+}
+
+post_upgrade() {
+  if [ "$(vercmp $2 1.3.4-0)" -lt 0 ]; then
+cat << 'EOM'
+  ==> Configuration file has been changed - there's now
+  ==> one unified place to apply system specific changes:
+  ==> Please merge your config from 
+  ==> /etc/conf.d/nfs-{common,server} into /etc/sysconfig/nfs
+EOM
+  fi
+}

Copied: nfs-utils/repos/testing-i686/nfs-utils_env.sh (from rev 274649, nfs-utils/trunk/nfs-utils_env.sh)
===================================================================
--- testing-i686/nfs-utils_env.sh	                        (rev 0)
+++ testing-i686/nfs-utils_env.sh	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+#
+# Extract configuration from /etc/sysconfig/nfs and write
+# environment variables to /run/sysconfig/nfs-utils to be 
+# used by systemd nfs-config service
+#
+
+nfs_config=/etc/sysconfig/nfs
+if test -r $nfs_config; then
+    . $nfs_config
+fi
+
+[ -n "$LOCKDARG" ] && /usr/bin/modprobe lockd $LOCKDARG
+if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then
+    [ -z "$LOCKDARG" ] && /usr/bin/modprobe lockd $LOCKDARG
+    [ -n "$LOCKD_TCPPORT" ] && \
+        /usr/bin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
+    [ -n "$LOCKD_UDPPORT" ] && \
+        /usr/bin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
+fi
+
+if [ -n "$NFSD_V4_GRACE" ]; then
+    grace="-G $NFSD_V4_GRACE"
+fi
+
+if [ -n "$NFSD_V4_LEASE" ]; then
+    lease="-L $NFSD_V4_LEASE"
+fi
+
+if [ -n "$RPCNFSDCOUNT" ]; then
+    nfsds=$RPCNFSDCOUNT
+else
+    nfsds=8
+fi
+
+if [ -n "$RPCNFSDARGS" ]; then
+    nfsdargs="$RPCNFSDARGS $grace $lease $nfsds"
+else
+    nfsdargs="$grace $lease $nfsds"
+fi
+
+mkdir -p /run/sysconfig
+{
+echo RPCNFSDARGS=\"$nfsdargs\"
+echo RPCMOUNTDARGS=\"$RPCMOUNTDOPTS\"
+echo STATDARGS=\"$STATDARG\"
+echo SMNOTIFYARGS=\"$SMNOTIFYARGS\"
+echo RPCIDMAPDARGS=\"$RPCIDMAPDARGS\"
+echo RPCGSSDARGS=\"$RPCGSSDARGS\"
+echo RPCSVCGSSDARGS=\"$RPCSVCGSSDARGS\"
+echo BLKMAPDARGS=\"$BLKMAPDARGS\"
+echo GSS_USE_PROXY=\"$GSS_USE_PROXY\"
+} > /run/sysconfig/nfs-utils

Copied: nfs-utils/repos/testing-i686/nfs.sysconfig (from rev 274649, nfs-utils/trunk/nfs.sysconfig)
===================================================================
--- testing-i686/nfs.sysconfig	                        (rev 0)
+++ testing-i686/nfs.sysconfig	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,42 @@
+#
+# 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=16
+#   
+# Set V4 grace period in seconds
+#NFSD_V4_GRACE=90
+#
+# Set V4 lease period in seconds
+#NFSD_V4_LEASE=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 sm-notify. See sm-notify(8)
+SMNOTIFYARGS=""
+#
+#
+# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
+RPCIDMAPDARGS=""
+#
+# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
+RPCGSSDARGS=""
+# Enable usage of gssproxy. See gssproxy-mech(8).
+GSS_USE_PROXY="yes"
+#
+# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
+RPCSVCGSSDARGS=""
+#
+# Optional arguments passed to blkmapd. See blkmapd(8)
+BLKMAPDARGS=""

Copied: nfs-utils/repos/testing-x86_64/PKGBUILD (from rev 274649, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,98 @@
+# $Id$
+# Maintainer: AndyRTR <andyrtr at archlinux.org>
+# 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.3.4
+pkgrel=1
+pkgdesc="Support programs for Network File Systems"
+arch=('i686' 'x86_64')
+url='http://nfs.sourceforge.net'
+license=('GPL2')
+backup=(etc/{exports,nfsmount.conf} etc/sysconfig/nfs)
+depends=('rpcbind' 'nfsidmap' 'gssproxy' 'libevent' 'device-mapper')
+makedepends=('sqlite')
+# http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=summary
+source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.{bz2,sign}
+        id_resolver.conf
+        nfs-utils_env.sh
+        nfs.sysconfig
+        exports
+        #nfs-utils.conf 
+)
+install=nfs-utils.install
+optdepends=('sqlite: for nfsdcltrack usage'
+            'python: for nfsiostat and mountstats usage')
+sha1sums=('f66ce79f6d2de8907e0e2f6b00f96d7486281cc5'
+          'SKIP'
+          '24b3c10b47dc120b2d252cf1e5001effa8f76a62'
+          '519eaaebecf423dcea156ed6e2c4f722236df0b2'
+          'e9648adc732f47f24da6d71e1729da5a7697e203'
+          '170a929d9c0f22edb13b656648cadf372efea841')
+validpgpkeys=('E1B71E339E20A10A676F7CB69AFB1D681A125177') # Steve Dickson
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+
+  # fix hardcoded sbin path to our needs
+  sed -i "s|sbindir = /sbin|sbindir = /usr/bin|g" utils/*/Makefile.am
+  autoreconf -vfi
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  ./configure --prefix=/usr \
+    --sbindir=/usr/bin \
+    --sysconfdir=/etc \
+    --enable-gss \
+    --without-tcp-wrappers \
+    --with-statedir=/var/lib/nfs \
+    --enable-ipv6 \
+    --enable-libmount-mount \
+    --enable-mountconfig \
+    --with-start-statd=/usr/bin/start-statd
+  make 
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  make -k check
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="$pkgdir" install
+ 
+  install -D -m 644 utils/mount/nfsmount.conf "$pkgdir"/etc/nfsmount.conf
+  
+  for i in systemd/{*.service,*.mount,*.target}; do
+    install -D -m 644 $i "$pkgdir"/usr/lib/systemd/system/$(basename $i)
+  done
+
+  cd ..
+
+  # distro specific daemon flags - files taken from Fedora ( = upstream developer)
+  install -D -m 755 nfs-utils_env.sh "$pkgdir"/usr/lib/nfs-utils/nfs-utils_env.sh
+  install -D -m 644 nfs.sysconfig    "$pkgdir"/etc/sysconfig/nfs
+  
+  # fix path - this will be fixed in 1.3.5rc2 and later
+  sed -i "s:libexec:lib:" "$pkgdir"/usr/lib/systemd/system/nfs-config.service
+
+  # empty exports file  
+  install -D -m 644 exports          "$pkgdir"/etc/exports
+
+  # config file for idmappers in newer kernels
+  install -D -m 644 id_resolver.conf "$pkgdir"/etc/request-key.d/id_resolver.conf
+
+  # load kernel module - should be obsolete
+#  install -D -m 644 nfs-utils.conf   "$pkgdir"/usr/lib/modules-load.d/nfs-utils.conf
+
+  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/exports (from rev 274649, nfs-utils/trunk/exports)
===================================================================
--- testing-x86_64/exports	                        (rev 0)
+++ testing-x86_64/exports	2016-08-25 20:49:09 UTC (rev 274650)
@@ -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 274649, nfs-utils/trunk/id_resolver.conf)
===================================================================
--- testing-x86_64/id_resolver.conf	                        (rev 0)
+++ testing-x86_64/id_resolver.conf	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,9 @@
+#
+# nfsidmap(5) - The NFS idmapper upcall program
+# Summary: Used by NFSv4 to map user/group ids into 
+#          user/group names and names into in ids
+# Options:
+# -v         Increases the verbosity of the output to syslog
+# -t timeout Set the expiration timer, in seconds, on the key
+#
+create id_resolver * * /usr/bin/nfsidmap %k %d

Copied: nfs-utils/repos/testing-x86_64/nfs-utils.conf (from rev 274649, nfs-utils/trunk/nfs-utils.conf)
===================================================================
--- testing-x86_64/nfs-utils.conf	                        (rev 0)
+++ testing-x86_64/nfs-utils.conf	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1 @@
+nfs

Copied: nfs-utils/repos/testing-x86_64/nfs-utils.install (from rev 274649, nfs-utils/trunk/nfs-utils.install)
===================================================================
--- testing-x86_64/nfs-utils.install	                        (rev 0)
+++ testing-x86_64/nfs-utils.install	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,21 @@
+post_install() {
+cat << 'EOM'
+  ==> PLEASE NOTE:
+  ==> Extended configuration options for NFS are available in
+  ==> /etc/sysconfig/nfs
+  ==>
+  ==> Please refer to http://wiki.archlinux.org/index.php/NFS
+  ==> for further information.
+EOM
+}
+
+post_upgrade() {
+  if [ "$(vercmp $2 1.3.4-0)" -lt 0 ]; then
+cat << 'EOM'
+  ==> Configuration file has been changed - there's now
+  ==> one unified place to apply system specific changes:
+  ==> Please merge your config from 
+  ==> /etc/conf.d/nfs-{common,server} into /etc/sysconfig/nfs
+EOM
+  fi
+}

Copied: nfs-utils/repos/testing-x86_64/nfs-utils_env.sh (from rev 274649, nfs-utils/trunk/nfs-utils_env.sh)
===================================================================
--- testing-x86_64/nfs-utils_env.sh	                        (rev 0)
+++ testing-x86_64/nfs-utils_env.sh	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,54 @@
+#!/bin/sh
+
+#
+# Extract configuration from /etc/sysconfig/nfs and write
+# environment variables to /run/sysconfig/nfs-utils to be 
+# used by systemd nfs-config service
+#
+
+nfs_config=/etc/sysconfig/nfs
+if test -r $nfs_config; then
+    . $nfs_config
+fi
+
+[ -n "$LOCKDARG" ] && /usr/bin/modprobe lockd $LOCKDARG
+if [ -n "$LOCKD_TCPPORT" -o -n "$LOCKD_UDPPORT" ]; then
+    [ -z "$LOCKDARG" ] && /usr/bin/modprobe lockd $LOCKDARG
+    [ -n "$LOCKD_TCPPORT" ] && \
+        /usr/bin/sysctl -w fs.nfs.nlm_tcpport=$LOCKD_TCPPORT >/dev/null 2>&1
+    [ -n "$LOCKD_UDPPORT" ] && \
+        /usr/bin/sysctl -w fs.nfs.nlm_udpport=$LOCKD_UDPPORT >/dev/null 2>&1
+fi
+
+if [ -n "$NFSD_V4_GRACE" ]; then
+    grace="-G $NFSD_V4_GRACE"
+fi
+
+if [ -n "$NFSD_V4_LEASE" ]; then
+    lease="-L $NFSD_V4_LEASE"
+fi
+
+if [ -n "$RPCNFSDCOUNT" ]; then
+    nfsds=$RPCNFSDCOUNT
+else
+    nfsds=8
+fi
+
+if [ -n "$RPCNFSDARGS" ]; then
+    nfsdargs="$RPCNFSDARGS $grace $lease $nfsds"
+else
+    nfsdargs="$grace $lease $nfsds"
+fi
+
+mkdir -p /run/sysconfig
+{
+echo RPCNFSDARGS=\"$nfsdargs\"
+echo RPCMOUNTDARGS=\"$RPCMOUNTDOPTS\"
+echo STATDARGS=\"$STATDARG\"
+echo SMNOTIFYARGS=\"$SMNOTIFYARGS\"
+echo RPCIDMAPDARGS=\"$RPCIDMAPDARGS\"
+echo RPCGSSDARGS=\"$RPCGSSDARGS\"
+echo RPCSVCGSSDARGS=\"$RPCSVCGSSDARGS\"
+echo BLKMAPDARGS=\"$BLKMAPDARGS\"
+echo GSS_USE_PROXY=\"$GSS_USE_PROXY\"
+} > /run/sysconfig/nfs-utils

Copied: nfs-utils/repos/testing-x86_64/nfs.sysconfig (from rev 274649, nfs-utils/trunk/nfs.sysconfig)
===================================================================
--- testing-x86_64/nfs.sysconfig	                        (rev 0)
+++ testing-x86_64/nfs.sysconfig	2016-08-25 20:49:09 UTC (rev 274650)
@@ -0,0 +1,42 @@
+#
+# 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=16
+#   
+# Set V4 grace period in seconds
+#NFSD_V4_GRACE=90
+#
+# Set V4 lease period in seconds
+#NFSD_V4_LEASE=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 sm-notify. See sm-notify(8)
+SMNOTIFYARGS=""
+#
+#
+# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
+RPCIDMAPDARGS=""
+#
+# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
+RPCGSSDARGS=""
+# Enable usage of gssproxy. See gssproxy-mech(8).
+GSS_USE_PROXY="yes"
+#
+# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
+RPCSVCGSSDARGS=""
+#
+# Optional arguments passed to blkmapd. See blkmapd(8)
+BLKMAPDARGS=""



More information about the arch-commits mailing list