Support building against Berkeley DB 6.x.
PR: ports/185630 Submitted by: Yasuhiro KIMURA <yasu utahime org>
This commit is contained in:
parent
d510ce7116
commit
746fea831a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=339653
2 changed files with 20 additions and 1 deletions
|
@ -46,6 +46,7 @@ LATEST_LINK?= ${PKGNAMEPREFIX}openldap24${PKGNAMESUFFIX}
|
|||
USE_OPENSSL= yes
|
||||
USE_AUTOTOOLS= libtool
|
||||
.if !defined(CLIENT_ONLY)
|
||||
USE_AUTOTOOLS+= autoconf
|
||||
USERS= ldap
|
||||
GROUPS= ldap
|
||||
.endif
|
||||
|
@ -343,7 +344,7 @@ INVALID_BDB_VER= 42
|
|||
USE_BDB= yes
|
||||
|
||||
# XXX Can BDB 5.x use XY instead of X as version?
|
||||
.if ${WITH_BDB_VER} >= 43 || ${WITH_BDB_VER} == 5
|
||||
.if ${WITH_BDB_VER} >= 43 || ${WITH_BDB_VER} == 5 || ${WITH_BDB_VER} == 6
|
||||
CONFIGURE_ARGS+= --enable-bdb=${BACKEND_ENABLE} \
|
||||
--enable-hdb=${BACKEND_ENABLE}
|
||||
PLIST_SUB+= BACK_BDB=${BACKEND_PLIST} \
|
||||
|
|
18
net/openldap24-server/files/patch-bdb6
Normal file
18
net/openldap24-server/files/patch-bdb6
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- build/openldap.m4.orig 2013-11-15 12:31:27.000000000 +0900
|
||||
+++ build/openldap.m4 2014-01-10 15:21:33.000000000 +0900
|
||||
@@ -357,7 +357,14 @@
|
||||
AC_DEFUN([OL_BERKELEY_DB_LINK],
|
||||
[ol_cv_lib_db=no
|
||||
|
||||
-if test $ol_cv_bdb_major = 5 ; then
|
||||
+if test $ol_cv_bdb_major = 6 ; then
|
||||
+ OL_BERKELEY_DB_TRY(ol_cv_db_db_6_dot_m,[-ldb-6.$ol_cv_bdb_minor])
|
||||
+ OL_BERKELEY_DB_TRY(ol_cv_db_db6m,[-ldb6$ol_cv_bdb_minor])
|
||||
+ OL_BERKELEY_DB_TRY(ol_cv_db_db_6m,[-ldb-6$ol_cv_bdb_minor])
|
||||
+ OL_BERKELEY_DB_TRY(ol_cv_db_db_6_m,[-ldb-6-$ol_cv_bdb_minor])
|
||||
+ OL_BERKELEY_DB_TRY(ol_cv_db_db_6,[-ldb-6])
|
||||
+ OL_BERKELEY_DB_TRY(ol_cv_db_db6,[-ldb6])
|
||||
+elif test $ol_cv_bdb_major = 5 ; then
|
||||
OL_BERKELEY_DB_TRY(ol_cv_db_db_5_dot_m,[-ldb-5.$ol_cv_bdb_minor])
|
||||
OL_BERKELEY_DB_TRY(ol_cv_db_db5m,[-ldb5$ol_cv_bdb_minor])
|
||||
OL_BERKELEY_DB_TRY(ol_cv_db_db_5m,[-ldb-5$ol_cv_bdb_minor])
|
Loading…
Reference in a new issue