aboutsummaryrefslogtreecommitdiffstats
path: root/main/nss-pam-ldapd/APKBUILD
blob: aab67213f44f366bd31918f1e8bf2c7194fcc7e6 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nss-pam-ldapd
pkgver=0.9.11
pkgrel=1
pkgdesc="An nsswitch module which uses directory servers"
url="https://arthurdejong.org/nss-pam-ldapd/"
arch="all"
license="LGPL-2.0-or-later"
makedepends="autoconf automake linux-pam-dev openldap-dev musl-nscd-dev"
install="nss-pam-ldapd.pre-install"
subpackages="$pkgname-doc $pkgname-openrc"
source="https://arthurdejong.org/nss-pam-ldapd/nss-pam-ldapd-$pkgver.tar.gz
	10-define-netdb-internal.patch
	nslcd.initd"

prepare() {
	default_prepare
	autoreconf -fiv
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--libdir=/lib
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
	install -Dm755 "$srcdir"/nslcd.initd "$pkgdir"/etc/init.d/nslcd
}

sha512sums="2b307805667526b85c724e113fe38899eee397e5c8673e89090d4836ce6d0ffcf18dd022d6c20a5e11d4138e736451b841a0f16ba379d524de4faaaf02906645  nss-pam-ldapd-0.9.11.tar.gz
8916713358d8e8b42877701aaec241a8052c5dd95047355daee4bfbfcf26e138063797a2fa06db0298f7406b58c1ee6da1483d37000d2fcf47c88da9008a7443  10-define-netdb-internal.patch
26db842fd517ccc0b242677d6e92c2fe66028e441681c8e6129150e81c93a282ae0c3142230f61b579f40596c2843ca1f2217d46f9d8fb3ba4b117896912355b  nslcd.initd"