summaryrefslogtreecommitdiffstats
path: root/main/nfs-utils
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-05-12 09:36:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-05-12 09:36:46 +0000
commit576e978b936ff46e0ca43463338bc74180db7a2e (patch)
tree107907c64b77bf5d2ee9a79dc8dd4b1302a4e1bd /main/nfs-utils
parent4fbbb627548e7f72a952d6779b08645bedd73760 (diff)
downloadaports-576e978b936ff46e0ca43463338bc74180db7a2e.tar.bz2
aports-576e978b936ff46e0ca43463338bc74180db7a2e.tar.xz
main/nfs-utils: subpackage for rpcgen
Diffstat (limited to 'main/nfs-utils')
-rw-r--r--main/nfs-utils/APKBUILD16
1 files changed, 12 insertions, 4 deletions
diff --git a/main/nfs-utils/APKBUILD b/main/nfs-utils/APKBUILD
index 45ee5a706..4807e752c 100644
--- a/main/nfs-utils/APKBUILD
+++ b/main/nfs-utils/APKBUILD
@@ -2,13 +2,13 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nfs-utils
pkgver=1.2.0
-pkgrel=2
+pkgrel=3
pkgdesc="kernel-mode NFS"
url="http://nfs.sourceforge.net/"
license="GPL"
depends="portmap"
makedepends="e2fsprogs-dev"
-subpackages="$pkgname-doc"
+subpackages="$pkgname-doc rpcgen"
source="http://downloads.sourceforge.net/nfs/$pkgname-$pkgver.tar.bz2
nfs.initd
nfs.confd
@@ -37,13 +37,21 @@ build() {
--with-statedir=/var/lib/nfs
make || return 1
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
make -j1 DESTDIR="$pkgdir" install
install -m755 -D "$srcdir"/nfs.initd "$pkgdir"/etc/init.d/nfs
install -m644 -D "$srcdir"/nfs.confd "$pkgdir"/etc/conf.d/nfs
install -m644 -D "$srcdir"/nfs.exports "$pkgdir"/etc/exports
- #mkdir -p "$pkgdir"/usr/lib/nfs
- install -m755 -D tools/rpcgen/rpcgen "$pkgdir"/usr/bin/rpcgen
+}
+
+rpcgen() {
+ pkgdesc="Remote Procedure Call (RPC) protocol compiler"
+ cd "$srcdir/$pkgname-$pkgver"
+ install -m755 -D tools/rpcgen/rpcgen "$subpkgdir"/usr/bin/rpcgen
}
md5sums="779cf81044e92cb51ad590960e7b3671 nfs-utils-1.2.0.tar.bz2