diff options
Diffstat (limited to 'main/nfs-utils/APKBUILD')
-rw-r--r-- | main/nfs-utils/APKBUILD | 41 |
1 files changed, 32 insertions, 9 deletions
diff --git a/main/nfs-utils/APKBUILD b/main/nfs-utils/APKBUILD index 4807e752c..45e1c89e8 100644 --- a/main/nfs-utils/APKBUILD +++ b/main/nfs-utils/APKBUILD @@ -1,28 +1,39 @@ # Contributor: Carlo Landmeter <clandmeter@gmail.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=nfs-utils -pkgver=1.2.0 -pkgrel=3 +pkgver=1.2.2 +pkgrel=0 pkgdesc="kernel-mode NFS" url="http://nfs.sourceforge.net/" license="GPL" -depends="portmap" -makedepends="e2fsprogs-dev" +depends="rpcbind" +makedepends="util-linux-ng-dev libtirpc-dev libcap-dev" subpackages="$pkgname-doc rpcgen" source="http://downloads.sourceforge.net/nfs/$pkgname-$pkgver.tar.bz2 nfs.initd + nfsmount.initd + rpc.gssd.initd + rpc.idmapd.initd + rpc.pipefs.initd + rpc.statd.initd + rpc.svcgssd.initd + nfs.confd nfs.exports nfs-utils-no-exec.patch nfs-utils-mtab-sym.patch" -build() { +prepare() { cd "$srcdir/$pkgname-$pkgver" - for i in "$srcdir"/*.patch; do msg "Applying $i" patch -p0 -i "${i}" || return 1 done + sed -i -e '/^#include <libio.h>/d' support/include/sockaddr.h +} + +build() { + cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ --sysconfdir=/etc \ @@ -43,7 +54,13 @@ package() { cd "$srcdir/$pkgname-$pkgver" make -j1 DESTDIR="$pkgdir" install - install -m755 -D "$srcdir"/nfs.initd "$pkgdir"/etc/init.d/nfs + for i in nfs rpc.gssd rpc.pipefs rpc.svcgssd nfsmount rpc.idmapd \ + rpc.statd; do + install -m755 -D "$srcdir"/$i.initd "$pkgdir"/etc/init.d/$i \ + || return 1 + done + + install -m644 -D "$srcdir"/nfs.confd "$pkgdir"/etc/conf.d/nfs install -m644 -D "$srcdir"/nfs.exports "$pkgdir"/etc/exports } @@ -54,8 +71,14 @@ rpcgen() { install -m755 -D tools/rpcgen/rpcgen "$subpkgdir"/usr/bin/rpcgen } -md5sums="779cf81044e92cb51ad590960e7b3671 nfs-utils-1.2.0.tar.bz2 -23240b9ab44ef7d6b6c437c0ae34915d nfs.initd +md5sums="dad92f64db3266c7757f71bb53ee8f35 nfs-utils-1.2.2.tar.bz2 +f1873e0441b8c3b4b90023c038d755ec nfs.initd +d514fb87ce5de9909f43d99012352f09 nfsmount.initd +144b0e1f7d32265abe4c499a47af6154 rpc.gssd.initd +650f68e51a02ba84c272960fc302c445 rpc.idmapd.initd +80772890099fafdb8af3d6dd3db242c2 rpc.pipefs.initd +37fdb069a5fcabea507012497bb95c53 rpc.statd.initd +20e71ab412555b2dc9b50f346f68e5c8 rpc.svcgssd.initd 09135438d6df50b868bbe5a2260f973c nfs.confd 4f1bb7b2412ce5952ecb5ec22d8ed99d nfs.exports 5e0963b0889e779ff36af0299d17d6cb nfs-utils-no-exec.patch |