aboutsummaryrefslogtreecommitdiffstats
path: root/main/openldap/APKBUILD
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-08-08 07:55:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-08-08 07:56:23 +0000
commit98ea64220948bc5bd6d4c2e855c8637c21fae3b4 (patch)
tree63b8db77ced072e562a0dd0bb2615fc0c5beecde /main/openldap/APKBUILD
parent98f92d1f029119b8479cd456829e48e5f0c658fc (diff)
downloadaports-98ea64220948bc5bd6d4c2e855c8637c21fae3b4.tar.bz2
aports-98ea64220948bc5bd6d4c2e855c8637c21fae3b4.tar.xz
main/openldap: fix permissions
ref #1296
Diffstat (limited to 'main/openldap/APKBUILD')
-rw-r--r--main/openldap/APKBUILD14
1 files changed, 9 insertions, 5 deletions
diff --git a/main/openldap/APKBUILD b/main/openldap/APKBUILD
index ad4e4c0085..79dfffd9b1 100644
--- a/main/openldap/APKBUILD
+++ b/main/openldap/APKBUILD
@@ -1,7 +1,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=openldap
pkgver=2.4.32
-pkgrel=0
+pkgrel=1
pkgdesc="LDAP Server"
url="http://www.openldap.org/"
arch="all"
@@ -85,10 +85,14 @@ 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
+ chown -R ldap.ldap "$pkgdir"/var/lib/openldap/openldap-data
+ chmod 700 "$pkgdir"/var/lib/openldap \
+ "$pkgdir"/var/lib/openldap/openldap-data
+ chown -R ldap.ldap "$pkgdir"/var/lib/openldap/openldap-data
+
+ install -Dm755 "$srcdir"/slapd.initd "$pkgdir"/etc/init.d/slapd
+ install -Dm755 "$srcdir"/slapd.confd "$pkgdir"/etc/conf.d/slapd
+ install -Dm755 "$srcdir"/slurpd.initd "$pkgdir"/etc/init.d/slurpd
# FIXME: symlinks in sbin are symlinked to /usr/lib/slapd
ln -s /usr/sbin/slapd "$pkgdir"/usr/lib/slapd
}