aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/APKBUILD
diff options
context:
space:
mode:
authorHenrik Riomar <henrik.riomar@gmail.com>2018-09-26 07:32:42 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2018-09-26 14:18:14 +0000
commit0c96010c975485d928d8ee1dbd3bf448204ee0d5 (patch)
tree5f5d060e81e179e4fde1d05358fcf8c2172783f6 /main/nfs-utils/APKBUILD
parentca439c55663f45a263e42a7441208d69753f5d03 (diff)
downloadaports-0c96010c975485d928d8ee1dbd3bf448204ee0d5.tar.bz2
aports-0c96010c975485d928d8ee1dbd3bf448204ee0d5.tar.xz
main/nfs-utils: drop build dep on libnfsidmap-dev
libnfsidmap-dev has been integrated into nfs-utils since 2.2.1 Fixes: #8487
Diffstat (limited to 'main/nfs-utils/APKBUILD')
-rw-r--r--main/nfs-utils/APKBUILD35
1 files changed, 31 insertions, 4 deletions
diff --git a/main/nfs-utils/APKBUILD b/main/nfs-utils/APKBUILD
index 44a16de561..78eea6ffe5 100644
--- a/main/nfs-utils/APKBUILD
+++ b/main/nfs-utils/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nfs-utils
pkgver=2.3.2
-pkgrel=0
+pkgrel=1
pkgdesc="kernel-mode NFS"
url="http://linux-nfs.org"
arch="all"
@@ -10,9 +10,10 @@ license="GPL-2.0+, BSD-3-Clause"
depends="rpcbind"
options="suid"
makedepends="util-linux-dev libtirpc-dev libcap-dev libevent-dev
- libnfsidmap-dev keyutils-dev lvm2-dev krb5-dev sqlite-dev
- autoconf automake libtool bsd-compat-headers"
-subpackages="$pkgname-doc $pkgname-dbg $pkgname-openrc rpcgen"
+ keyutils-dev lvm2-dev krb5-dev sqlite-dev
+ autoconf automake libtool bsd-compat-headers openldap-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-dbg $pkgname-openrc rpcgen
+ libnfsidmap libnfsidmap-ldap"
source="https://www.kernel.org/pub/linux/utils/nfs-utils/$pkgver/nfs-utils-$pkgver.tar.gz
0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
@@ -86,12 +87,38 @@ package() {
done
}
+dev() {
+ replaces="libnfsidmap-dev libnfsidmap-ldap-dev"
+ default_dev
+}
+
+doc() {
+ replaces="libnfsidmap-doc"
+ default_doc
+}
+
rpcgen() {
pkgdesc="Remote Procedure Call (RPC) protocol compiler"
install -Dm755 "$builddir"/tools/rpcgen/rpcgen \
"$subpkgdir"/usr/bin/rpcgen
}
+libnfsidmap() {
+ pkgdesc="NFSv4 User and Group ID Mapping Library"
+ install -Dm644 "$builddir"/support/nfsidmap/idmapd.conf "$subpkgdir"/etc/idmapd.conf
+ mkdir -p "$subpkgdir"/usr/lib/libnfsidmap
+ mv "$pkgdir"/usr/lib/libnfsidmap.so* "$subpkgdir"/usr/lib/
+ mv "$pkgdir"/usr/lib/libnfsidmap/static* "$subpkgdir"/usr/lib/libnfsidmap/
+ mv "$pkgdir"/usr/lib/libnfsidmap/nsswitch* "$subpkgdir"/usr/lib/libnfsidmap/
+
+}
+
+ldap() {
+ pkgdesc="LDAP plugin for libnfsidmap"
+ mkdir -p "$subpkgdir"/usr/lib/libnfsidmap
+ mv "$pkgdir"/usr/lib/libnfsidmap/*ldap* "$subpkgdir"/usr/lib/libnfsidmap/
+}
+
sha512sums="0a6f81a838ab8252521468b18f5578a4302b722c0ad99c67437f32248d698bea4e664d3b2d176cad7ae5a8487b2443b554c65262d3719aa9622d237df5e6de54 nfs-utils-2.3.2.tar.gz
e55dbcc6df1626f992b660ae4ca80eac07ad539f3660448a27b34b6cc63764d59074a10c34e97c1b05f356cf60f68ec724f3dbdc1986be024773a2fe957b55fa 0011-exportfs-only-do-glibc-specific-hackery-on-glibc.patch
674ecf2c4bc8e9364ddd0f34cc03c96674753494cbc5a5d157bd70ed4342ff90356c3e85c544510648dbe90cb43b7fd83ba50653bddffc4b3b5550367b6d0b8e nfs-utils-mtab-sym.patch