Subject: bogofilter+sqlite3 (was Re: Please update pkgsrc/mail/bogofilter to 0.96.6)
To: Matthias Andree <matthias.andree@gmx.de>
From: Geert Hendrickx <ghen@telenet.be>
List: tech-pkg
Date: 11/22/2005 08:46:12
--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
On Mon, Nov 21, 2005 at 09:05:22PM +0100, Matthias Andree wrote:
> The new package build worked for me on SUSE Linux 9.3 i386, dank U wel.
wiz@ committed the update.
Here's another diff which adds an sqlite3 option to the package.
Geert
--vkogqOf2sHV7VnPd
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="bogofilter.diff"
Index: Makefile
===================================================================
RCS file: /pub/NetBSD-CVS/pkgsrc/mail/bogofilter/Makefile,v
retrieving revision 1.30
diff -u -r1.30 Makefile
--- Makefile 21 Nov 2005 23:47:02 -0000 1.30
+++ Makefile 22 Nov 2005 07:44:06 -0000
@@ -22,8 +22,7 @@
USE_TOOLS+= perl:run
REPLACE_PERL= src/bogoupgrade
-BUILDLINK_TRANSFORM+= l:db:db4
+.include "options.mk"
-.include "../../databases/db4/buildlink3.mk"
.include "../../math/gsl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
Index: options.mk
===================================================================
RCS file: options.mk
diff -N options.mk
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ options.mk 22 Nov 2005 07:44:06 -0000
@@ -0,0 +1,19 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.bogofilter
+PKG_OPTIONS_REQUIRED_GROUPS= database
+PKG_OPTIONS_GROUP.database= db4 sqlite3
+PKG_SUGGESTED_OPTIONS= db4
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdb4)
+CONFIGURE_ARGS+= --with-database=db
+.include "../../databases/db4/buildlink3.mk"
+BUILDLINK_TRANSFORM+= l:db:db4
+.endif
+
+.if !empty(PKG_OPTIONS:Msqlite3)
+CONFIGURE_ARGS+= --with-database=sqlite3
+.include "../../databases/sqlite3/buildlink3.mk"
+.endif
--vkogqOf2sHV7VnPd--