From 9b6da671a3931a17084ad99bb4aba4bdfd1a9d0e Mon Sep 17 00:00:00 2001 From: Nicolas Thill Date: Wed, 9 Nov 2011 11:20:17 +0000 Subject: [PATCH] [backfire] packages/openldap: merge r28843 SVN-Revision: 28877 --- libs/openldap/Makefile | 10 +++++++--- libs/openldap/files/ldap.init | 4 ++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/libs/openldap/Makefile b/libs/openldap/Makefile index 496bb0e6c8..6165d1f361 100644 --- a/libs/openldap/Makefile +++ b/libs/openldap/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2006-2009 OpenWrt.org +# Copyright (C) 2006-2011 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=openldap PKG_VERSION:=2.4.23 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz PKG_SOURCE_URL:=ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/ \ @@ -136,8 +136,12 @@ define Package/openldap-server/install $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/schema/* $(1)/etc/openldap/schema/ $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/openldap/slapd.conf $(1)/etc/openldap/ $(INSTALL_DIR) $(1)/usr/sbin - # OpenLDAP installs slapd into libexecdir, not sbindir: + # XXX: OpenLDAP installs slapd into libexecdir, not sbindir: $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/lib/slapd $(1)/usr/sbin/ + # XXX: switch default backend to ldif, since bdb is disabled + $(SED) 's|^\(database\)\([ \t]\+\)bdb|\1\2ldif|g' \ + -e 's|^\(index\)|#\1|g' \ + $(1)/etc/openldap/slapd.conf endef $(eval $(call BuildPackage,libopenldap)) diff --git a/libs/openldap/files/ldap.init b/libs/openldap/files/ldap.init index aae19356e9..dd14b2133d 100644 --- a/libs/openldap/files/ldap.init +++ b/libs/openldap/files/ldap.init @@ -1,10 +1,10 @@ #!/bin/sh /etc/rc.common -# Copyright (C) 2009 OpenWrt.org +# Copyright (C) 2009-2011 OpenWrt.org START=60 start() { - mkdir -p /var/run/openldap + mkdir -p /var/openldap-data /usr/sbin/slapd } -- 2.30.2