updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / nfs-utils-ipv6 / PKGBUILD
blobd88b883dddb626cb32e1ac0a2c6986be77c95b3b
1 # $Id: $
2 # Maintainer: sh0 <mee@sh0.org>
4 _pkgname=nfs-utils
5 pkgname=nfs-utils-ipv6
6 pkgver=1.2.2
7 pkgrel=2
8 pkgdesc="Support programs for Network File Systems (with IPv6 support)"
9 arch=('i686' 'x86_64')
10 url='http://nfs.sourceforge.net'
11 license=('GPL')
12 conflicts=('nfs-utils')
13 replaces=('nfs-utils')
14 backup=(etc/{exports,idmapd.conf} etc/conf.d/{nfs-common.conf,nfs-server.conf})
15 depends=('glibc' 'tcp_wrappers' 'e2fsprogs' 'rpcbind' 'libtirpc>=0.2.1' 'librpcsecgss>=0.19-2' 'nfsidmap' 'libevent>=1.3e' 'libgssglue')
16 makedepends=('pkgconfig' 'autoconf' 'automake')
17 source=(http://downloads.sourceforge.net/project/nfs/${_pkgname}/${pkgver}/${_pkgname}-${pkgver}.tar.bz2
18         nfs-common
19         nfs-common.conf
20         nfs-server
21         nfs-server.conf
22         exports
23         idmapd.conf
24         start-statd.patch
25         nfs-utils-1.1.2-kerberos-ac.patch
26         nfs-utils-1.1.6-no_libgssapi.patch
27         nfs-utils-1.1.6-heimdal_functions.patch
28         nfs-utils-1.1.4-mtab-sym.patch
29         nfs-utils-1.1.4-no-exec.patch)
30 install=nfs-utils.install
31 md5sums=('dad92f64db3266c7757f71bb53ee8f35'
32          '1beda3420086f1801a7228c06d80fb4e'
33          'f73f197a16b02c3e248488ec35c4cf43'
34          '5ae080f6117cef3140f02bc162bdc755'
35          'b9b334414baec31b97f0431d9ecdcfb9'
36          'ff585faf410a62c4333a027c50b56bae'
37          'eb4f4027fab6fc1201f1ca04f5954c76'
38          'e24f81a8c8657672e262c61235d34b4a'
39          'f3be115d392d9f9bb0f056e8d4341a14'
40          '20c6fae1c771b9d8e91c4973f16372e3'
41          'e6fd3a8acfe97970a53db1b902c34f45'
42          '7674106eaaa4c149bccd4f05fe3604e9'
43          '4f4827dfc93008dfadd0a530ad0872b2')
45 build() {
46   cd $srcdir/${_pkgname}-${pkgver}
47   # Patches from gentoo for heimdal compatibility Bug 231396
48   # http://bugs.gentoo.org/show_bug.cgi?id=231396
49   patch -Np1 -i ../nfs-utils-1.1.2-kerberos-ac.patch || return 1
50   patch -Np1 -i ../nfs-utils-1.1.6-no_libgssapi.patch || return 1
51   patch -Np0 -i ../nfs-utils-1.1.6-heimdal_functions.patch || return 1
52   patch -Np1 -i ../nfs-utils-1.1.4-mtab-sym.patch || return 1
53   patch -Np1 -i ../nfs-utils-1.1.4-no-exec.patch || return 1
55   # arch specific patch
56   patch -Np0 -i $srcdir/start-statd.patch || return 1
58   rm -f config.guess config.sub ltmain.sh
59   autoreconf -i
61   export GSSGLUE_CFLAGS='-I/usr/include/gssapi'
62   export GSSGLUE_LIBS='-lgssapi -ldl'
64   ./configure --prefix=/usr --enable-nfsv3 --enable-nfsv4 --enable-gss \
65               --with-tcp-wrappers --with-statedir=/var/lib/nfs --sysconfdir=/etc \
66               --enable-ipv6
68   unset LDFLAGS
69   make || return 1
72 package() {
73   cd $srcdir/${_pkgname}-${pkgver}
74   make DESTDIR=$pkgdir install || return 1
76   # NFS & NFSv4 init scripts
77   install -D -m 755 ../nfs-common "$pkgdir/"etc/rc.d/nfs-common
78   install -D -m 755 ../nfs-server "$pkgdir/"etc/rc.d/nfs-server
79   # Configuration
80   install -D -m 644 ../exports "$pkgdir/"etc/exports
81   install -D -m 644 ../idmapd.conf "$pkgdir/"etc/idmapd.conf
82   install -D -m 644 ../nfs-common.conf "$pkgdir/"etc/conf.d/nfs-common.conf
83   install -D -m 644 ../nfs-server.conf "$pkgdir/"etc/conf.d/nfs-server.conf
84   # directories
85   mkdir "$pkgdir/"var/lib/nfs/rpc_pipefs
86   mkdir "$pkgdir/"var/lib/nfs/v4recovery