[arch-commits] Commit in nfs-utils/repos (5 files)
Andreas Radke
andyrtr at gemini.archlinux.org
Tue Aug 9 20:46:05 UTC 2022
Date: Tuesday, August 9, 2022 @ 20:46:04
Author: andyrtr
Revision: 452491
archrelease: copy trunk to testing-x86_64
Added:
nfs-utils/repos/testing-x86_64/
nfs-utils/repos/testing-x86_64/PKGBUILD
(from rev 452490, nfs-utils/trunk/PKGBUILD)
nfs-utils/repos/testing-x86_64/exports
(from rev 452490, nfs-utils/trunk/exports)
nfs-utils/repos/testing-x86_64/keys/
nfs-utils/repos/testing-x86_64/sysusers.d
(from rev 452490, nfs-utils/trunk/sysusers.d)
------------+
PKGBUILD | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
exports | 12 +++++
sysusers.d | 1
3 files changed, 138 insertions(+)
Copied: nfs-utils/repos/testing-x86_64/PKGBUILD (from rev 452490, nfs-utils/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD (rev 0)
+++ testing-x86_64/PKGBUILD 2022-08-09 20:46:04 UTC (rev 452491)
@@ -0,0 +1,125 @@
+# 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>
+
+pkgbase=nfs-utils
+pkgname=('nfs-utils' 'nfsidmap')
+pkgver=2.6.2
+pkgrel=1
+arch=('x86_64')
+url='http://nfs.sourceforge.net'
+makedepends=('libevent' 'sqlite' 'rpcsvc-proto' 'device-mapper')
+options=('debug')
+# 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}
+ exports
+ sysusers.d)
+# https://mirrors.edge.kernel.org/pub/linux/utils/nfs-utils/2.6.2/sha256sums.asc
+sha256sums=('5200873e81c4d610e2462fc262fe18135f2dbe78b7979f95accd159ae64d5011'
+ 'SKIP'
+ 'b8238b74179f7e1626db2b637671ddc17288a1c5b7692954ae6d2fbb1be3788d'
+ '8e1b6aa59cf5539b9da13cfec217b3ca7b6c32e08df3b0a204901ed2891b2ded')
+validpgpkeys=('E1B71E339E20A10A676F7CB69AFB1D681A125177') # Steve Dickson
+
+prepare() {
+ cd "${pkgbase}"-${pkgver}
+
+ # fix hardcoded sbin/libexec path to our needs
+ sed -i "s|sbindir = /sbin|sbindir = /usr/bin|g" utils/*/Makefile.am
+ sed -i "s|sbin|bin|" utils/nfsidmap/id_resolver.conf
+ sed -i "s|sbin|usr/bin|" systemd/50-nfs.conf
+ sed -i "s|/sbin|/usr/bin|" systemd/50-nfs.conf
+ sed -i "s|libexec|bin|" tools/nfsrahead/99-nfs.rules
+ autoreconf -vfi
+}
+
+build() {
+ cd "${pkgbase}"-${pkgver}
+ ./configure --prefix=/usr \
+ --sbindir=/usr/bin \
+ --sysconfdir=/etc \
+ --libexecdir=/usr/bin \
+ --with-statedir=/var/lib/nfs \
+ --with-statdpath=/var/lib/nfs/statd \
+ --with-start-statd=/usr/bin/start-statd \
+ --enable-nfsv4server \
+ --enable-gss \
+ --without-tcp-wrappers \
+ --enable-ipv6 \
+ --enable-libmount-mount \
+ --enable-mountconfig \
+ --with-systemd
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make
+}
+
+check() {
+ cd "${pkgbase}"-${pkgver}
+ #make -k check || /bin/true
+ make check
+}
+
+package_nfs-utils() {
+
+ pkgdesc="Support programs for Network File Systems"
+ license=('GPL2')
+
+ backup=(etc/{exports,nfs.conf,nfsmount.conf}
+ var/lib/nfs/{etab,rmtab})
+ depends=('rpcbind' 'nfsidmap' 'gssproxy' 'libevent' 'device-mapper')
+ optdepends=('sqlite: for nfsdcltrack usage'
+ 'python: for rpcctl, nfsiostat, nfsdclnts and mountstats usage')
+
+ cd "${pkgbase}"-${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
+
+ install -d -m 755 "$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 utils/nfsidmap/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
+
+ # systemd sysusers - FS#75536
+ install -D -m 644 ../sysusers.d "${pkgdir}"/usr/lib/sysusers.d/rpcuser.conf
+ chown -Rv 34:34 "${pkgdir}"/var/lib/nfs/statd
+ chmod -R 700 "${pkgdir}"/var/lib/nfs/statd
+ chmod 644 "${pkgdir}"/var/lib/nfs/statd/state
+
+ # nfsidmap cleanup
+ rm -vrf "$pkgdir"/usr/include #/nfsid*
+ rm -vrf "$pkgdir"/usr/lib/libnfsidmap*
+ rm -vrf "$pkgdir"/usr/lib/pkgconfig #/libnfsidmap.pc
+ rm -v "$pkgdir"/usr/share/man/{man3/nfs4_uid_to_name*,man5/idmapd.conf*}
+ rm -rf "$pkgdir"/usr/share/man/man3
+}
+
+package_nfsidmap() {
+
+ pkgdesc="Library to help mapping IDs, mainly for NFSv4"
+ license=('GPL2')
+ backup=(etc/idmapd.conf)
+ depends=('libldap' 'krb5')
+
+ cd "${pkgbase}"-${pkgver}
+ make -C support DESTDIR="$pkgdir" install
+ # config file
+ install -D -m 644 support/nfsidmap/idmapd.conf "$pkgdir"/etc/idmapd.conf
+ # license
+ install -Dm644 support/nfsidmap/COPYING $pkgdir/usr/share/licenses/nfsidmap/LICENSE
+}
Copied: nfs-utils/repos/testing-x86_64/exports (from rev 452490, nfs-utils/trunk/exports)
===================================================================
--- testing-x86_64/exports (rev 0)
+++ testing-x86_64/exports 2022-08-09 20:46:04 UTC (rev 452491)
@@ -0,0 +1,12 @@
+# /etc/exports - exports(5) - directories exported to NFS clients
+#
+# Example for 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/sysusers.d (from rev 452490, nfs-utils/trunk/sysusers.d)
===================================================================
--- testing-x86_64/sysusers.d (rev 0)
+++ testing-x86_64/sysusers.d 2022-08-09 20:46:04 UTC (rev 452491)
@@ -0,0 +1 @@
+u rpcuser 34 "RPC Service User" /var/lib/nfs
More information about the arch-commits
mailing list