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

Andreas Radke andyrtr at archlinux.org
Sat Jan 14 15:25:42 UTC 2017


    Date: Saturday, January 14, 2017 @ 15:25:41
  Author: andyrtr
Revision: 286364

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

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

----------------------------------+
 testing-i686/PKGBUILD            |   86 +++++++++++++++++++++++++++++++++++++
 testing-i686/exports             |   12 +++++
 testing-i686/id_resolver.conf    |    9 +++
 testing-i686/nfs-utils.install   |   28 ++++++++++++
 testing-x86_64/PKGBUILD          |   86 +++++++++++++++++++++++++++++++++++++
 testing-x86_64/exports           |   12 +++++
 testing-x86_64/id_resolver.conf  |    9 +++
 testing-x86_64/nfs-utils.install |   28 ++++++++++++
 8 files changed, 270 insertions(+)

Copied: nfs-utils/repos/testing-i686/PKGBUILD (from rev 286363, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2017-01-14 15:25:41 UTC (rev 286364)
@@ -0,0 +1,86 @@
+# $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=2.1.1
+pkgrel=1
+pkgdesc="Support programs for Network File Systems"
+arch=('i686' 'x86_64')
+url='http://nfs.sourceforge.net'
+license=('GPL2')
+backup=(etc/{exports,nfs.conf,nfsmount.conf})
+depends=('rpcbind' 'nfsidmap' 'gssproxy' 'libevent' 'device-mapper')
+makedepends=('sqlite')
+# http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=summary
+source=(https://www.kernel.org/pub/linux/utils/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.{xz,sign}
+        id_resolver.conf
+        exports)
+install=nfs-utils.install
+optdepends=('sqlite: for nfsdcltrack usage'
+            'python: for nfsiostat and mountstats usage')
+# https://www.kernel.org/pub/linux/utils/nfs-utils/2.1.1/sha256sums.asc
+sha256sums=('0faeb54c70b84e6bd3b9b6901544b1f6add8d246f35c1683e402daf4e0c719ef'
+            'SKIP'
+            'ed31ae843cf66d3c262b39ed54533a861876231c5f5bb3811c0c498ac2ffa102'
+            '610715ed3daedc43b2536f541c7c57e138fb31eab5d837d9a6187a7403e30154')
+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
+  install -D -m 644 nfs.conf "$pkgdir"/etc/nfs.conf
+  
+  for i in systemd/{*.service,*.mount,*.target}; do
+    install -D -m 644 $i "$pkgdir"/usr/lib/systemd/system/$(basename $i)
+  done
+  install -d -m 644 "$pkgdir"/usr/share/doc/$pkgname
+  install -D -m 644 systemd/README "$pkgdir"/usr/share/doc/$pkgname/README.systemd
+  
+  # docs
+  install -m 644 {NEWS,README} "$pkgdir"/usr/share/doc/$pkgname/
+
+  # 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
+
+  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 286363, nfs-utils/trunk/exports)
===================================================================
--- testing-i686/exports	                        (rev 0)
+++ testing-i686/exports	2017-01-14 15:25:41 UTC (rev 286364)
@@ -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 286363, nfs-utils/trunk/id_resolver.conf)
===================================================================
--- testing-i686/id_resolver.conf	                        (rev 0)
+++ testing-i686/id_resolver.conf	2017-01-14 15:25:41 UTC (rev 286364)
@@ -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.install (from rev 286363, nfs-utils/trunk/nfs-utils.install)
===================================================================
--- testing-i686/nfs-utils.install	                        (rev 0)
+++ testing-i686/nfs-utils.install	2017-01-14 15:25:41 UTC (rev 286364)
@@ -0,0 +1,28 @@
+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
+  if [ "$(vercmp $2 2.1.1-1)" -lt 0 ]; then
+cat << 'EOM'
+  ==> Configuration file has been changed again. 
+  ==> All the daemon configurations now go through 
+  ==> one file, /etc/nfs.conf. See nfs.conf(5). 
+EOM
+  fi
+}

Copied: nfs-utils/repos/testing-x86_64/PKGBUILD (from rev 286363, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2017-01-14 15:25:41 UTC (rev 286364)
@@ -0,0 +1,86 @@
+# $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=2.1.1
+pkgrel=1
+pkgdesc="Support programs for Network File Systems"
+arch=('i686' 'x86_64')
+url='http://nfs.sourceforge.net'
+license=('GPL2')
+backup=(etc/{exports,nfs.conf,nfsmount.conf})
+depends=('rpcbind' 'nfsidmap' 'gssproxy' 'libevent' 'device-mapper')
+makedepends=('sqlite')
+# http://git.linux-nfs.org/?p=steved/nfs-utils.git;a=summary
+source=(https://www.kernel.org/pub/linux/utils/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.{xz,sign}
+        id_resolver.conf
+        exports)
+install=nfs-utils.install
+optdepends=('sqlite: for nfsdcltrack usage'
+            'python: for nfsiostat and mountstats usage')
+# https://www.kernel.org/pub/linux/utils/nfs-utils/2.1.1/sha256sums.asc
+sha256sums=('0faeb54c70b84e6bd3b9b6901544b1f6add8d246f35c1683e402daf4e0c719ef'
+            'SKIP'
+            'ed31ae843cf66d3c262b39ed54533a861876231c5f5bb3811c0c498ac2ffa102'
+            '610715ed3daedc43b2536f541c7c57e138fb31eab5d837d9a6187a7403e30154')
+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
+  install -D -m 644 nfs.conf "$pkgdir"/etc/nfs.conf
+  
+  for i in systemd/{*.service,*.mount,*.target}; do
+    install -D -m 644 $i "$pkgdir"/usr/lib/systemd/system/$(basename $i)
+  done
+  install -d -m 644 "$pkgdir"/usr/share/doc/$pkgname
+  install -D -m 644 systemd/README "$pkgdir"/usr/share/doc/$pkgname/README.systemd
+  
+  # docs
+  install -m 644 {NEWS,README} "$pkgdir"/usr/share/doc/$pkgname/
+
+  # 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
+
+  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 286363, nfs-utils/trunk/exports)
===================================================================
--- testing-x86_64/exports	                        (rev 0)
+++ testing-x86_64/exports	2017-01-14 15:25:41 UTC (rev 286364)
@@ -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 286363, nfs-utils/trunk/id_resolver.conf)
===================================================================
--- testing-x86_64/id_resolver.conf	                        (rev 0)
+++ testing-x86_64/id_resolver.conf	2017-01-14 15:25:41 UTC (rev 286364)
@@ -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.install (from rev 286363, nfs-utils/trunk/nfs-utils.install)
===================================================================
--- testing-x86_64/nfs-utils.install	                        (rev 0)
+++ testing-x86_64/nfs-utils.install	2017-01-14 15:25:41 UTC (rev 286364)
@@ -0,0 +1,28 @@
+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
+  if [ "$(vercmp $2 2.1.1-1)" -lt 0 ]; then
+cat << 'EOM'
+  ==> Configuration file has been changed again. 
+  ==> All the daemon configurations now go through 
+  ==> one file, /etc/nfs.conf. See nfs.conf(5). 
+EOM
+  fi
+}



More information about the arch-commits mailing list