]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
openldap: Moved datadir to /var partition.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 13 Aug 2009 13:36:42 +0000 (15:36 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 16 Aug 2009 19:39:19 +0000 (21:39 +0200)
lfs/openldap

index 67afa47f55ec071ff0f3799f5c5eba8ca1e64de9..3c7c09dd8db42a62e45dff83df689c53c538a1f8 100644 (file)
@@ -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)