blob: 8825d2c3879cf2a63e38362a736591ce549870f2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# $Id: PKGBUILD 215488 2014-06-26 19:15:59Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
# Contributor: dibblethewrecker <dibblethewrecker.at.jiwe.org>
# Contributor: abelstr <abel@pinklf.eu>
# Contributor: Marco Lima <cipparello gmail com>
pkgname=nfs-utils
pkgver=1.3.0
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.conf
id_resolver.conf
nfs-utils_env.sh
nfs-utils-1.3.1-rc2.patch)
install=nfs-utils.install
optdepends=('sqlite: for nfsdcltrack usage')
md5sums=('3ac3726eda563946d1f44ac3e5b61d56'
'21510b0b30e71c8d6679c7c23f3b78eb'
'c1fe8dd9581c1df788d8965f4f1479f3'
'e6ad3c7a59c7e4c24965a0e7da35026c'
'eb4f4027fab6fc1201f1ca04f5954c76'
'7674106eaaa4c149bccd4f05fe3604e9'
'8ac484023d786766d287ccbe878ae4ba'
'a43aabf0b8d02406b1babc3a206d952a'
'c6c9c32f153dfa6c0477ea6b99354288'
'92423a1e833ba90fdc446aa2296ac7f0')
prepare() {
cd $srcdir/${pkgname}-${pkgver}
patch -Np1 -i ../nfs-utils-1.1.4-mtab-sym.patch
# fix segfaults, from fedora git
patch -Np1 -i ../nfs-utils-1.3.1-rc2.patch
./autogen.sh
}
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
# move nfsdcltrack to /usr/bin
sed -i -e 's#sbindir = /sbin#sbindir = /usr/bin#g' utils/nfsdcltrack/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
for i in systemd/{*.service,*.mount,*.target}; do
install -D -m 644 $i "$pkgdir"/usr/lib/systemd/system/$(basename $i)
done
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 755 nfs-utils_env.sh "$pkgdir"/usr/lib/systemd/scripts/nfs-utils_env.sh
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
mkdir "$pkgdir"/etc/exports.d
mkdir -m 555 "$pkgdir"/var/lib/nfs/rpc_pipefs
mkdir "$pkgdir"/var/lib/nfs/v4recovery
}
|