From 98ea64220948bc5bd6d4c2e855c8637c21fae3b4 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 8 Aug 2012 07:55:40 +0000 Subject: main/openldap: fix permissions ref #1296 --- main/openldap/APKBUILD | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'main/openldap/APKBUILD') 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 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 } -- cgit v1.2.3