aboutsummaryrefslogtreecommitdiffstats
path: root/main/nss-pam-ldapd/APKBUILD
blob: eb8fe1dc9012aa39982d8e8d34ad507d763b2465 (plain) (blame)
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
52
53
54
55
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nss-pam-ldapd
pkgver=0.9.4
pkgrel=0
pkgdesc="An nsswitch module which uses directory servers"
url="http://arthurdejong.org/nss-pam-ldapd/"
arch="all"
license="LGPLv2+"
depends=""
depends_dev="linux-pam-dev openldap-dev"
makedepends="$depends_dev"
install="nss-pam-ldapd.pre-install"
subpackages="$pkgname-doc"
source="http://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-$pkgver.tar.gz
	nslcd.initd"

_builddir="$srcdir"/nss-pam-ldapd-$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 \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-nss \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
	install -Dm755 "$srcdir"/nslcd.initd "$pkgdir"/etc/init.d/nslcd
}

md5sums="0d74202700efdde3b6e551bfff49c132  nss-pam-ldapd-0.9.4.tar.gz
af4621ebbe7a732987b38e8f301efeb8  nslcd.initd"
sha256sums="fd2e3e0935acfd3d2b13682962f51d28d5855472e690d787e36a476fa40c88e6  nss-pam-ldapd-0.9.4.tar.gz
a46a25da684b51725a820a855473d868cbe6620076f4531bdee8f445d4a194de  nslcd.initd"
sha512sums="ca336d034f3a9e135cb805b4a7cfcca38db22260268f6e0da8f72e1357b4f4da186b9abca4b3a36ec046172fae92666bccd966a49e19b1e2810442b7d439ac34  nss-pam-ldapd-0.9.4.tar.gz
c6184e2870dc7fb35d27955c27f2dbf884b5af881c476ff8581b4952bc5748b95d103d4799035904bd157e0d736864422a85eb6f4dca0ff992d7c9c227815e59  nslcd.initd"