blob: b631b4dacce6bf690ca94df4a5ed6924cd56fd4e (
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
52
53
54
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=nss-pam-ldapd
pkgver=0.9.7
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
install -Dm755 "$srcdir"/nslcd.initd "$pkgdir"/etc/init.d/nslcd
}
md5sums="912f2a5ead193d2defc6c525423e84e8 nss-pam-ldapd-0.9.7.tar.gz
2b1ad47c1e25b3865db0f91a665bdc73 nslcd.initd"
sha256sums="0db88d6518bf7ffb01b44f8f8841ece5162906982ce2c9e45e6afff90d3783eb nss-pam-ldapd-0.9.7.tar.gz
1588e64b938b70001081691d085911f143b8c38af5961cc3e772e3d1fd457870 nslcd.initd"
sha512sums="2117262f41c4fc54987f9f663ed71126100420ecff391cc280e98d7864094db201a81a4ebf7e5634436982092be3c751971d8aee53e39c42a8572ab57b561284 nss-pam-ldapd-0.9.7.tar.gz
26db842fd517ccc0b242677d6e92c2fe66028e441681c8e6129150e81c93a282ae0c3142230f61b579f40596c2843ca1f2217d46f9d8fb3ba4b117896912355b nslcd.initd"
|