Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Jan 2014 16:14:37 +0900 (JST)
From:      Yasuhiro KIMURA <yasu@utahime.org>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/185630: [PATCH] net/openldap24-server: add support of Berkeley DB 6.x
Message-ID:  <20140110071437.0CB2A4E646@eastasia.home.utahime.org>
Resent-Message-ID: <201401100720.s0A7K0u2086462@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         185630
>Category:       ports
>Synopsis:       [PATCH] net/openldap24-server: add support of Berkeley DB 6.x
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 10 07:20:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Yasuhiro KIMURA
>Release:        FreeBSD 9.2-RELEASE-p2 amd64
>Organization:
>Environment:
System: FreeBSD xxxx 9.2-RELEASE-p2 FreeBSD 9.2-RELEASE-p2 #0 r258726: Fri Nov 29 10:51:02 JST 2013 xxxx amd64


	
>Description:
	
	Add support of Berkeley DB 6.x.
	Patch is obtained from following URL:

	http://git.pld-linux.org/?p=packages/openldap.git;a=blob_plain;f=openldap-db.patch;h=3e3a78b0e2126f3723e6f223ecfb70bc1bd714f3;hb=HEAD

>How-To-Repeat:
	
>Fix:

	

--- patch-openldap24-server begins here ---
Index: Makefile
===================================================================
--- Makefile	(revision 339300)
+++ Makefile	(working copy)
@@ -46,6 +46,7 @@
 USE_OPENSSL=		yes
 USE_AUTOTOOLS=		libtool
 .if !defined(CLIENT_ONLY)
+USE_AUTOTOOLS+=		autoconf
 USERS=			ldap
 GROUPS=			ldap
 .endif
@@ -343,7 +344,7 @@
 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} \
Index: files/patch-build_openldap.m4
===================================================================
--- files/patch-build_openldap.m4	(revision 0)
+++ files/patch-build_openldap.m4	(working copy)
@@ -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])

Property changes on: files/patch-build_openldap.m4
___________________________________________________________________
Added: fbsd:nokeywords
## -0,0 +1 ##
+yes
\ No newline at end of property
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
--- patch-openldap24-server ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140110071437.0CB2A4E646>