diff options
author | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-06-18 14:45:03 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2012-06-18 14:45:13 +0000 |
commit | 70f3df0f04ad73ce09410d7d88ede6bd1081d6ff (patch) | |
tree | 87a8754103ae6b892bc177c26d1eca4b7e1957e9 /main | |
parent | ad31fdffc032e207270c6d28dbf7f54709f438b5 (diff) | |
download | aports-70f3df0f04ad73ce09410d7d88ede6bd1081d6ff.tar.bz2 aports-70f3df0f04ad73ce09410d7d88ede6bd1081d6ff.tar.xz |
main/openldap: fix slapd path and data dir ownership
Diffstat (limited to 'main')
-rw-r--r-- | main/openldap/APKBUILD | 3 | ||||
-rw-r--r-- | main/openldap/slapd.initd | 2 |
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 $? |