aboutsummaryrefslogtreecommitdiffstats
path: root/main/libnfsidmap/APKBUILD
blob: 480dab8a810f09e74d1a1b0b782546101694d802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libnfsidmap
pkgver=0.25
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="2ac4893c92716add1a1447ae01df77ab  libnfsidmap-0.25.tar.gz"
sha256sums="656d245d84400e1030f8f40a5a27da76370690c4a932baf249110f047fe7efcf  libnfsidmap-0.25.tar.gz"
sha512sums="8acf30790cdd19341c75cb8a4f7ee4dbc9f688c8514258046e55c8f4245df213709ccb7d5327a11b146b0e3b7266d3d4da018699c6be47fbedcc4cd384b54557  libnfsidmap-0.25.tar.gz"