From: Michael Tremer Date: Thu, 13 Aug 2009 13:36:42 +0000 (+0200) Subject: openldap: Moved datadir to /var partition. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067e857f88955faf5656ead82640649e56b90252;p=ipfire-3.x.git openldap: Moved datadir to /var partition. --- diff --git a/lfs/openldap b/lfs/openldap index 67afa47f5..3c7c09dd8 100644 --- a/lfs/openldap +++ b/lfs/openldap @@ -93,7 +93,7 @@ $(OBJECT): $(objects) --prefix=/usr \ --libexecdir=/usr/sbin \ --sysconfdir=/etc \ - --localstatedir=/srv/ldap \ + --localstatedir=/var \ --disable-debug \ --enable-dynamic \ --enable-crypt \ @@ -108,10 +108,17 @@ $(OBJECT): $(objects) cd $(DIR_APP) && make depend cd $(DIR_APP) && make $(PARALLELISMFLAGS) cd $(DIR_APP) && make install + + rm -rvf /var/openldap-data + for LINK in lber ldap ldap_r; do \ chmod -v 0755 /usr/lib/$$(readlink /usr/lib/lib$${LINK}.so); \ rm -vf /usr/lib/lib$${LINK}.la; \ done $(INSTALL_INITSCRIPT) + + -mkdir -pv /var/lib/ldap + chmod 700 -Rv /var/lib/ldap + @rm -rf $(DIR_APP) @$(POSTBUILD)