aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/openldap/APKBUILD3
-rw-r--r--main/openldap/slapd.initd2
2 files changed, 3 insertions, 2 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index dfa569a38a..888d33b0d7 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openldap
pkgver=2.4.31
-pkgrel=1
+pkgrel=2
pkgdesc="LDAP Server"
url="http://www.openldap.org/"
arch="all"
@@ -85,6 +85,7 @@ package() {
mv "$pkgdir"/usr/lib/slapd "$pkgdir"/usr/sbin/ || reteurn 1
chgrp ldap "$pkgdir"/etc/openldap/slapd.conf
chmod g+r "$pkgdir"/etc/openldap/slapd.conf
+ chown -R ldap.ldap /var/lib/openldap/openldap-data
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
diff --git a/main/openldap/slapd.initd b/main/openldap/slapd.initd
index fbea0069e6..23437bc45e 100644
--- a/main/openldap/slapd.initd
+++ b/main/openldap/slapd.initd
@@ -25,7 +25,7 @@ start() {
[ -n "$KRB5_KTNAME" ] && export KRB5_KTNAME
eval start-stop-daemon --start \
--pidfile ${pidfile} \
- --exec /usr/lib/openldap/slapd \
+ --exec /usr/lib/slapd \
-- \
-u ldap -g ldap "${OPTS}"
eend $?