aboutsummaryrefslogtreecommitdiffstats
path: root/main/nss-pam-ldapd/APKBUILD
diff options
context:
space:
mode:
authorJeff Bilyk <jbilyk@alpinelinux.org>2014-07-31 10:51:32 -0400
committerJeff Bilyk <jbilyk@alpinelinux.org>2014-07-31 10:51:32 -0400
commitb7b4cd204f9281a2ff589c681e7e0f1532483e9c (patch)
tree43be0225ac964253670acbbd0c6adfe05d0bd640 /main/nss-pam-ldapd/APKBUILD
parent03005f4653bee3cb3b05b6b95c218336bce3690c (diff)
downloadaports-b7b4cd204f9281a2ff589c681e7e0f1532483e9c.tar.bz2
aports-b7b4cd204f9281a2ff589c681e7e0f1532483e9c.tar.xz
main/nss-pam-ldapd: moved from testing
Diffstat (limited to 'main/nss-pam-ldapd/APKBUILD')
-rw-r--r--main/nss-pam-ldapd/APKBUILD56
1 files changed, 56 insertions, 0 deletions
diff --git a/main/nss-pam-ldapd/APKBUILD b/main/nss-pam-ldapd/APKBUILD
new file mode 100644
index 0000000000..e92283128d
--- /dev/null
+++ b/main/nss-pam-ldapd/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=nss-pam-ldapd
+pkgver=0.9.3
+pkgrel=1
+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="89c433fa238c8d7b9420260768bbd03c nss-pam-ldapd-0.9.3.tar.gz
+af4621ebbe7a732987b38e8f301efeb8 nslcd.initd"
+sha256sums="b42ad9fef4664b21845358c32e9c776c31858df2981b9e0e7bf686ce511884fa nss-pam-ldapd-0.9.3.tar.gz
+a46a25da684b51725a820a855473d868cbe6620076f4531bdee8f445d4a194de nslcd.initd"
+sha512sums="8f2e68d5adf63d60f6f60fd2abbbde17a8cd9c7f082d7302ab1201168c624eeffe4d63c459172723cc20f120b3d2b091fe838c9d8857bc01aa8fcb3b3dd99825 nss-pam-ldapd-0.9.3.tar.gz
+c6184e2870dc7fb35d27955c27f2dbf884b5af881c476ff8581b4952bc5748b95d103d4799035904bd157e0d736864422a85eb6f4dca0ff992d7c9c227815e59 nslcd.initd"