Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Dec 2006 04:53:12 +0800 (CST)
From:      Yen-Ming Lee <leeym@FreeBSD.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        stefan@FreeBSD.org
Subject:   ports/107110: [PATCH] mail/spamprobe: utilize USE_BDB
Message-ID:  <20061222205312.EACC1B29F20@utopia.leeym.com>
Resent-Message-ID: <200612222120.kBMLK9rj066957@freefall.freebsd.org>

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

>Number:         107110
>Category:       ports
>Synopsis:       [PATCH] mail/spamprobe: utilize USE_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:   Fri Dec 22 21:20:09 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 6.2-PRERELEASE i386
>Organization:
FreeBSD Taiwan
>Environment:
System: FreeBSD utopia.leeym.com 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Sun Nov 26 10:23:41 CST 2006
>Description:
- utilize USE_BDB (based on ports/89023)

Port maintainer (stefan@FreeBSD.org) is cc'd.

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

--- spamprobe-1.4b.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/mail/spamprobe/Makefile,v
retrieving revision 1.17
diff -u -u -r1.17 Makefile
--- Makefile	7 May 2006 13:32:13 -0000	1.17
+++ Makefile	22 Dec 2006 20:52:12 -0000
@@ -14,14 +14,15 @@
 MAINTAINER=	stefan@FreeBSD.org
 COMMENT=	Spam detector using Bayesian analysis of word counts
 
-LIB_DEPENDS=	db4:${PORTSDIR}/databases/db4
+USE_BDB=	3+
+INVALID_BDB_VER=2
 
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS=	--enable-default-8bit --enable-cdb
-CPPFLAGS=	-I${LOCALBASE}/include/db4
-LDFLAGS=	-L${LOCALBASE}/lib -ldb4
+CPPFLAGS=	-I${BDB_INCLUDE_DIR}
+LDFLAGS=	-L${LOCALBASE}/lib -l${BDB_LIB_NAME}
 
 MAN1=		spamprobe.1
 PLIST_FILES=	bin/spamprobe
--- spamprobe-1.4b.patch ends here ---

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



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