summaryrefslogtreecommitdiffstats
path: root/abs/core/nfs-utils/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/nfs-utils/PKGBUILD')
-rw-r--r--abs/core/nfs-utils/PKGBUILD99
1 files changed, 69 insertions, 30 deletions
diff --git a/abs/core/nfs-utils/PKGBUILD b/abs/core/nfs-utils/PKGBUILD
index 32626c6..cbc3999 100644
--- a/abs/core/nfs-utils/PKGBUILD
+++ b/abs/core/nfs-utils/PKGBUILD
@@ -1,48 +1,87 @@
-# $Id: PKGBUILD 13100 2008-09-25 22:15:28Z ronald $
-# Maintainer: dorphell <dorphell@archlinux.org>
+# $Id: PKGBUILD 97759 2010-11-01 20:06:42Z 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.1.3
-pkgrel=2
+pkgver=1.2.2
+pkgrel=4
pkgdesc="Support programs for Network File Systems"
arch=('i686' 'x86_64')
url='http://nfs.sourceforge.net'
license=('GPL')
-backup=('etc/exports' 'etc/conf.d/nfs')
-depends=('glibc' 'tcp_wrappers' 'e2fsprogs' 'portmap' 'nfsidmap' 'libevent>=1.3e')
-source=(http://downloads.sourceforge.net/nfs/${pkgname}-${pkgver}.tar.gz
- nfsd
- nfslock
+backup=(etc/{exports,idmapd.conf} etc/conf.d/{nfs-common.conf,nfs-server.conf})
+depends=('glibc' 'tcp_wrappers' 'e2fsprogs' 'rpcbind' 'libtirpc>=0.2.1' 'librpcsecgss>=0.19-2' 'nfsidmap' 'libevent>=1.3e' 'libgssglue')
+makedepends=('pkgconfig' 'autoconf' 'automake')
+source=(http://downloads.sourceforge.net/project/nfs/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.bz2
+ nfs-common
+ nfs-common.conf
+ nfs-server
+ nfs-server.conf
exports
- nfs.conf.d
- start-statd.patch)
+ idmapd.conf
+ start-statd.patch
+ nfs-utils-1.1.2-kerberos-ac.patch
+ nfs-utils-1.1.6-no_libgssapi.patch
+ nfs-utils-1.1.6-heimdal_functions.patch
+ nfs-utils-1.1.4-mtab-sym.patch
+ nfs-utils-1.1.4-no-exec.patch)
install=nfs-utils.install
-md5sums=('167d231850b00c7c63300747aeb94c38'
- '5a9436e492e68efaf801b9c496684541'
- '5d0d31f27f2319747d4499df11485ae7'
- '1358d29a549dfc37b522c35e823c6813'
- 'b4aae6963ec25d226eb2d97214f5bb18'
- '9c8aeff40ca25312328afe3b7fad293f')
build() {
cd $srcdir/${pkgname}-${pkgver}
-
+ # Patches from gentoo for heimdal compatibility Bug 231396
+ # http://bugs.gentoo.org/show_bug.cgi?id=231396
+ patch -Np1 -i ../nfs-utils-1.1.2-kerberos-ac.patch
+ patch -Np1 -i ../nfs-utils-1.1.6-no_libgssapi.patch
+ patch -Np0 -i ../nfs-utils-1.1.6-heimdal_functions.patch
+ patch -Np1 -i ../nfs-utils-1.1.4-mtab-sym.patch
+ patch -Np1 -i ../nfs-utils-1.1.4-no-exec.patch
+
# arch specific patch
- patch -Np0 -i ../start-statd.patch || return 1
-
- ./configure --prefix=/usr --enable-nfsv3 --disable-gss \
- --with-statedir=/var/lib/nfs --sysconfdir=/etc
-
+ patch -Np0 -i $srcdir/start-statd.patch
+
+ rm -f config.guess config.sub ltmain.sh
+ autoreconf -i
+
+ export GSSGLUE_CFLAGS='-I/usr/include/gssapi'
+ export GSSGLUE_LIBS='-lgssapi -ldl'
+
+ ./configure --prefix=/usr --enable-nfsv3 --enable-nfsv4 --enable-gss \
+ --with-tcp-wrappers --with-statedir=/var/lib/nfs --enable-ipv6 --sysconfdir=/etc
+
+ unset LDFLAGS
make || return 1
+}
+
+package() {
+ cd $srcdir/${pkgname}-${pkgver}
make DESTDIR=$pkgdir install || return 1
- install -D -m 755 ../nfsd ${startdir}/pkg/etc/rc.d/nfsd
- install -D -m 755 ../nfslock ${startdir}/pkg/etc/rc.d/nfslock
- install -D -m 644 ../exports ${startdir}/pkg/etc/exports
- install -D -m 644 ../nfs.conf.d ${startdir}/pkg/etc/conf.d/nfs
-
- install -d $pkgdir/var/lib/nfs/v4recovery
+ # NFS & NFSv4 init scripts
+ install -D -m 755 ../nfs-common "$pkgdir/"etc/rc.d/nfs-common
+ install -D -m 755 ../nfs-server "$pkgdir/"etc/rc.d/nfs-server
+ # Configuration
+ install -D -m 644 ../exports "$pkgdir/"etc/exports
+ install -D -m 644 ../idmapd.conf "$pkgdir/"etc/idmapd.conf
+ 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
+ # directories
+ mkdir "$pkgdir/"var/lib/nfs/rpc_pipefs
+ mkdir "$pkgdir/"var/lib/nfs/v4recovery
}
-
+md5sums=('dad92f64db3266c7757f71bb53ee8f35'
+ '1beda3420086f1801a7228c06d80fb4e'
+ 'f73f197a16b02c3e248488ec35c4cf43'
+ '5ae080f6117cef3140f02bc162bdc755'
+ 'b9b334414baec31b97f0431d9ecdcfb9'
+ 'ff585faf410a62c4333a027c50b56bae'
+ 'eb4f4027fab6fc1201f1ca04f5954c76'
+ 'e24f81a8c8657672e262c61235d34b4a'
+ 'f3be115d392d9f9bb0f056e8d4341a14'
+ '20c6fae1c771b9d8e91c4973f16372e3'
+ 'e6fd3a8acfe97970a53db1b902c34f45'
+ '7674106eaaa4c149bccd4f05fe3604e9'
+ '4f4827dfc93008dfadd0a530ad0872b2')