aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2011-08-24 19:38:26 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-24 19:54:29 +0000
commita23ec43e7bfd9f15490d3954a16df8ffa94e7e31 (patch)
tree095426fd1455098e3d90678fcd50853d5d2b9af6 /main
parent0ae0f839c4f2558983a493c7067fc8f9f7e80a6b (diff)
downloadaports-a23ec43e7bfd9f15490d3954a16df8ffa94e7e31.tar.bz2
aports-a23ec43e7bfd9f15490d3954a16df8ffa94e7e31.tar.xz
main/libnfsidmap: move from testing
Diffstat (limited to 'main')
-rw-r--r--main/libnfsidmap/APKBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/main/libnfsidmap/APKBUILD b/main/libnfsidmap/APKBUILD
new file mode 100644
index 0000000000..d927d47217
--- /dev/null
+++ b/main/libnfsidmap/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libnfsidmap
+pkgver=0.24
+pkgrel=0
+pkgdesc="NFSv4 User and Group ID Mapping Library"
+url="http://www.citi.umich.edu/projects/nfsv4/linux/"
+arch="all"
+license="BSD"
+depends=""
+makedepends="openldap-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-ldap"
+source="http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap/libnfsidmap-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libnfsidmap-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la \
+ "$pkgdir"/usr/lib/$pkgname/*.la || return 1
+ install -D -m644 idmapd.conf "$pkgdir"/etc/idmapd.conf
+}
+
+ldap() {
+ pkgdesc="LDAP plugin for $pkgname"
+ mkdir -p "$subpkgdir"/usr/lib/$pkgname
+ mv "$pkgdir"/usr/lib/$pkgname/*ldap* "$subpkgdir"/usr/lib/$pkgname/
+}
+
+md5sums="d71a1ee9881d5b5814ff3ec41256937d libnfsidmap-0.24.tar.gz"