ports/101383: [PATCH] mail/cyrus-imapd: add handling of WITHOUT_BDB

Sean Farley sean-freebsd at farley.org
Sat Aug 5 00:30:18 UTC 2006


>Number:         101383
>Category:       ports
>Synopsis:       [PATCH] mail/cyrus-imapd: add handling of WITHOUT_BDB
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 05 00:30:17 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Sean Farley
>Release:        FreeBSD 6.1-STABLE i386
>Organization:
>Environment:
System: FreeBSD thor.farley.org 6.1-STABLE FreeBSD 6.1-STABLE #0: Thu Jul 20 15:22:07 CDT 2006
>Description:
The patch adds handling to not use Berkeley DB for the port when
WITHOUT_BDB is defined.

Port maintainer (ume at FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- cyrus-imapd-2.3.7.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/mail/cyrus-imapd23.orig/Makefile /usr/ports/mail/cyrus-imapd23/Makefile
--- /usr/ports/mail/cyrus-imapd23.orig/Makefile	Tue Jul 11 13:01:24 2006
+++ /usr/ports/mail/cyrus-imapd23/Makefile	Fri Aug  4 19:27:03 2006
@@ -38,6 +38,7 @@
 		--with-openssl=${OPENSSLBASE} \
 		--with-perl=${PERL5}
 
+.if !defined(WITHOUT_BDB)
 .if defined(WITH_BDB_VER)
 USE_BDB_VER=	${WITH_BDB_VER}
 .else
@@ -88,6 +89,7 @@
 .else
 IGNORE=		"cannot install: WITH_BDB_VER must be 3, 4, 41, 42, 43 or 44"
 .endif
+.endif
 
 OPTIONS+=	DRAC		"Enable DRAC support"			off
 OPTIONS+=	IDLED		"Enable IMAP idled support"		off
@@ -104,6 +106,7 @@
 
 .include <bsd.port.pre.mk>
 
+.if !defined(WITHOUT_BDB)
 BDB_W:=
 BDB_WO:=
 .for v in ${BDB_VERS}
@@ -135,8 +138,11 @@
 .elif defined(WITH_BDB_44)
 USE_BDB=	44
 .endif
-CONFIGURE_ARGS+=--with-bdb-incdir=${BDB_INCLUDE_DIR} \
-		--with-bdb=${BDB_LIB_NAME}
+CONFIGURE_ARGS+=--with-bdb-incdir=${BDB_INCLUDE_DIR}
+.else
+BDB_LIB_NAME=	"no"
+.endif
+CONFIGURE_ARGS+=--with-bdb=${BDB_LIB_NAME}
 
 .if defined(WITH_NNTP)
 CONFIGURE_ARGS+=--enable-nntp
--- cyrus-imapd-2.3.7.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list