Waldemar Brodkorb 1 год назад
Родитель
Сommit
0a381caf8d

+ 5 - 5
package/openldap/Makefile

@@ -4,13 +4,13 @@
 include ${ADK_TOPDIR}/rules.mk
 
 PKG_NAME:=		openldap
-PKG_VERSION:=		2.6.0
+PKG_VERSION:=		2.6.8
 PKG_RELEASE:=		1
-PKG_HASH:=		b71c580eac573e9aba15d95f33dd4dd08f2ed4f0d7fc09e08ad4be7ed1e41a4f
+PKG_HASH:=		48969323e94e3be3b03c6a132942dcba7ef8d545f2ad35401709019f696c3c4e
 PKG_DESCR:=		ldap client libraries
 PKG_SECTION:=		libs/misc
-PKG_DEPENDS:=		libsasl2 libdb libuuid libncurses libressl
-PKG_BUILDDEP:=		cyrus-sasl db util-linux libressl
+PKG_DEPENDS:=		libsasl2 libuuid libncurses libressl
+PKG_BUILDDEP:=		cyrus-sasl util-linux libressl
 PKG_NEEDS:=		threads c++
 PKG_URL:=		http://www.openldap.org/
 PKG_SITES:=		https://openldap.org/software/download/OpenLDAP/openldap-release/
@@ -39,7 +39,7 @@ $(eval $(call PKG_template,OPENLDAP_SLAPD,openldap-slapd,${PKG_VERSION}-${PKG_RE
 CONFIGURE_ENV+=		ac_cv_func_memcmp_working=yes
 CONFIGURE_ARGS+= 	--enable-slapd \
 			--libexecdir=/usr/sbin \
-			--enable-bdb \
+			--disable-bdb \
 			--disable-hdb \
 			--disable-relay \
 			--enable-dynamic \

+ 2 - 2
package/openldap/files/slapd.conf

@@ -13,9 +13,9 @@ argsfile	/var/run/slapd.args
 # moduleload	back_ldap.la
 
 #######################################################################
-# BDB database definitions
+# MDB database definitions
 #######################################################################
-database	bdb
+database	mdb
 suffix		"o=openadk"
 rootdn		"cn=admin,o=openadk"
 # Cleartext passwords, especially for the rootdn, should

+ 0 - 11
package/openldap/patches/patch-Makefile_in

@@ -1,11 +0,0 @@
---- openldap-2.4.23.orig/Makefile.in	2010-04-13 22:22:14.000000000 +0200
-+++ openldap-2.4.23/Makefile.in	2011-03-04 20:59:55.000000000 +0100
-@@ -13,7 +13,7 @@
- ## top-level directory of the distribution or, alternatively, at
- ## <http://www.OpenLDAP.org/license.html>.
- 
--SUBDIRS= include libraries clients servers tests doc
-+SUBDIRS= include libraries clients servers
- CLEANDIRS=
- INSTALLDIRS= 
- 

+ 0 - 33
package/openldap/patches/patch-configure

@@ -1,33 +0,0 @@
---- openldap-2.4.42.orig/configure	2015-08-14 17:25:28.000000000 +0200
-+++ openldap-2.4.42/configure	2015-10-22 07:28:53.000000000 +0200
-@@ -22223,29 +22223,10 @@ $as_echo "$as_me: WARNING: Strong authen
- 	fi
- fi
- 
--if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
--	dev=no
--	if test -r /dev/urandom ; then
--		dev="/dev/urandom";
--	elif test -r /idev/urandom ; then
--		dev="/idev/urandom";
--	elif test -r /dev/srandom ; then
--		dev="/dev/srandom";
--	elif test -r /dev/random ; then
--		dev="/dev/random";
--	elif test -r /idev/random ; then
--		dev="/idev/random";
--	fi
--
--	if test $dev != no ; then
--
- cat >>confdefs.h <<_ACEOF
--#define URANDOM_DEVICE "$dev"
-+#define URANDOM_DEVICE "/dev/urandom"
- _ACEOF
- 
--	fi
--fi
--
- ol_link_fetch=no
- if test $ol_with_fetch != no ; then
- 	ol_LIBS=$LIBS

+ 0 - 31
package/openldap/patches/patch-configure_in

@@ -1,31 +0,0 @@
---- openldap-2.4.42.orig/configure.in	2015-08-14 17:25:28.000000000 +0200
-+++ openldap-2.4.42/configure.in	2015-10-22 07:23:38.000000000 +0200
-@@ -2147,26 +2147,8 @@ else
- 	fi
- fi
- 
--dnl ----------------------------------------------------------------
--dnl Check for entropy sources
--if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
--	dev=no
--	if test -r /dev/urandom ; then
--		dev="/dev/urandom";
--	elif test -r /idev/urandom ; then
--		dev="/idev/urandom";
--	elif test -r /dev/srandom ; then
--		dev="/dev/srandom";
--	elif test -r /dev/random ; then
--		dev="/dev/random";
--	elif test -r /idev/random ; then
--		dev="/idev/random";
--	fi
--
--	if test $dev != no ; then
--		AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"$dev",[set to urandom device])
--	fi
--fi
-+# set unconditionally to /dev/urandom for Linux cross-compilation
-+AC_DEFINE_UNQUOTED(URANDOM_DEVICE,"/dev/urandom",[set to urandom device])
- 
- dnl ----------------------------------------------------------------
- dnl

+ 0 - 21
package/openldap/patches/patch-libraries_librewrite_rewrite-int_h

@@ -1,21 +0,0 @@
---- openldap-2.4.36.orig/libraries/librewrite/rewrite-int.h	2013-08-16 20:12:59.000000000 +0200
-+++ openldap-2.4.36/libraries/librewrite/rewrite-int.h	2013-11-01 14:30:43.000000000 +0100
-@@ -40,12 +40,18 @@
- 
- #include <rewrite.h>
- 
-+/*
-+#undef malloc
- #define malloc(x)	ber_memalloc(x)
-+#undef calloc
- #define calloc(x,y)	ber_memcalloc(x,y)
-+#undef realloc
- #define realloc(x,y)	ber_memrealloc(x,y)
-+#undef free
- #define free(x)	ber_memfree(x)
- #undef strdup
- #define	strdup(x)	ber_strdup(x)
-+*/
- 
- /* Uncomment to use ldap pvt threads */
- #define USE_REWRITE_LDAP_PVT_THREADS