aboutsummaryrefslogtreecommitdiffstats
path: root/testing/openldap/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-04-23 12:13:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-04-23 12:13:16 +0000
commite7518be1013cb7c0a942cc3ebb0a0faa2acadf19 (patch)
tree1aefb250d8292d1f7860f8ca7aee8a1343dba3ab /testing/openldap/APKBUILD
parente155b71abc27514ff72c03a3a7dff53b212976a0 (diff)
downloadaports-e7518be1013cb7c0a942cc3ebb0a0faa2acadf19.tar.bz2
aports-e7518be1013cb7c0a942cc3ebb0a0faa2acadf19.tar.xz
testing/openldap: upgrade to 2.4.16 and fix the init.d script
tested that it works
Diffstat (limited to 'testing/openldap/APKBUILD')
-rw-r--r--testing/openldap/APKBUILD27
1 files changed, 23 insertions, 4 deletions
diff --git a/testing/openldap/APKBUILD b/testing/openldap/APKBUILD
index 132e898d0b..b66e3ee61a 100644
--- a/testing/openldap/APKBUILD
+++ b/testing/openldap/APKBUILD
@@ -1,16 +1,21 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openldap
-pkgver=2.4.11
+pkgver=2.4.16
pkgrel=0
pkgdesc="LDAP Server"
url="http://www.openldap.org/"
license="custom"
depends="db openssl uclibc"
-makedepends="db-dev openssl-dev groff"
+makedepends="db-dev openssl-dev groff libldap"
subpackages="$pkgname-dev $pkgname-doc libldap"
+install="$pkgname.pre-install $pkgname.post-install"
source="ftp://ftp.$pkgname.org/pub/OpenLDAP/$pkgname-release/$pkgname-$pkgver.tgz
openldap-2.4-ppolicy.patch
openldap-2.4.11-libldap_r.patch
+ $install
+ slapd.initd
+ slapd.confd
+ slurpd.initd
"
# berkdb crypt ipv6 ssl
@@ -45,6 +50,15 @@ build () {
make || return 1
make DESTDIR="$pkgdir" install
+
+ install -d "$pkgdir"/var/run/openldap
+ sed -i -e 's:/var/lib/openldap/run:/var/run/openldap:g' \
+ "$pkgdir"/etc/openldap/slapd.conf
+
+ chmod g+r "$pkgdir"/etc/openldap/slapd.conf
+ install -Dm755 ../slapd.initd "$pkgdir"/etc/init.d/slapd
+ install -Dm755 ../slapd.confd "$pkgdir"/etc/conf.d/slapd
+ install -Dm755 ../slurpd.initd "$pkgdir"/etc/init.d/slurpd
}
libldap() {
@@ -55,6 +69,11 @@ libldap() {
mv "$pkgdir"/etc/openldap/ldap.conf "$subpkgdir"/etc/openldap/
}
-md5sums="920fedbbb5bc61c2ca52c56edeef770a openldap-2.4.11.tgz
+md5sums="ed5b86e9d2b372d10edfe3bb59fee165 openldap-2.4.16.tgz
2524e490ba334a760fa57057c16da7a9 openldap-2.4-ppolicy.patch
-d19d0502f046078ecd737e29e7552fa8 openldap-2.4.11-libldap_r.patch"
+d19d0502f046078ecd737e29e7552fa8 openldap-2.4.11-libldap_r.patch
+07b1fae35627ea4216dccce33c0b8c69 openldap.pre-install
+f38a6f1de624c17cc0cb6776a089880b openldap.post-install
+13d0e57e54df945671e975acdfb48636 slapd.initd
+b672311fca605c398240cd37a2ae080a slapd.confd
+ba44f1a0e62cb88c68aa64e4a39847fa slurpd.initd"