ports/60138: Update mail/dspam to 2.8
Rob Evers
rob at debank.tv
Thu Dec 11 13:40:27 UTC 2003
>Number: 60138
>Category: ports
>Synopsis: Update mail/dspam to 2.8
>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: Thu Dec 11 05:40:14 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: Rob Evers
>Release: FreeBSD 4.9-RELEASE i386
>Organization:
>Environment:
System: FreeBSD haha.debank.tv 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Thu Nov 13 01:17:26 CET 2003 rob at haha.debank.tv:/usr/obj/usr/src/sys/HAHA i386
>Description:
Update mail/dspam to 2.8
Added a few knobs
>How-To-Repeat:
>Fix:
--- dspam.patch begins here ---
diff -ru dspam.orig/Makefile dspam/Makefile
--- dspam.orig/Makefile Mon Nov 10 01:38:16 2003
+++ dspam/Makefile Thu Dec 11 13:50:26 2003
@@ -6,22 +6,41 @@
#
PORTNAME= dspam
-PORTVERSION= 2.7.1
+PORTVERSION= 2.8
CATEGORIES= mail
MASTER_SITES= http://www.nuclearelephant.com/projects/dspam/sources/
MAINTAINER= dom at wirespeed.org.uk
COMMENT= A server-side bayesian spam filter
-LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
-
GNU_CONFIGURE= yes
-CONFIGURE_ARGS= --with-userdir=${PREFIX}/etc/dspam \
- --with-db4-includes=${LOCALBASE}/include/db41
+CONFIGURE_ARGS= --with-userdir=${PREFIX}/etc/dspam
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
INSTALLS_SHLIB= yes
USE_LIBTOOL= yes
USE_REINPLACE= yes
+
+.if defined(WITH_MYSQL)
+USE_MYSQL= yes
+CONFIGURE_ARGS+=--with-storage-driver=mysql_drv \
+ --with-mysql-includes=/usr/local/include/mysql \
+ --with-mysql-libraries=/usr/local/lib/mysql
+.endif
+
+.if !defined(WITH_MYSQL)
+LIB_DEPENDS= db41.1:${PORTSDIR}/databases/db41
+CONFIGURE_ARGS+=--with-db4-includes=${LOCALBASE}/include/db41
+.endif
+
+.if defined(WITH_MAILDROP)
+RUN_DEPENDS= maildrop:${PORTSDIR}/mail/maildrop
+CONFIGURE_ARGS+=--with-local-delivery-agent='/usr/local/bin/maildrop $u'
+.endif
+
+.if defined(WITH_PROCMAIL)
+RUN_DEPENDS= procmail:${PORTSDIR}/mail/procmail
+CONFIGURE_ARGS+=--with-local-delivery-agent='/usr/local/bin/procmail $u'
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g ; \
diff -ru dspam.orig/distinfo dspam/distinfo
--- dspam.orig/distinfo Sat Oct 4 01:37:55 2003
+++ dspam/distinfo Thu Dec 11 01:25:40 2003
@@ -1 +1 @@
-MD5 (dspam-2.7.1.tar.gz) = 91af21f8f0636249c8c888b101b63f1f
+MD5 (dspam-2.8.tar.gz) = 00a74c53e72c16943974ecd0bb2db30b
diff -ru dspam.orig/files/patch-configure dspam/files/patch-configure
--- dspam.orig/files/patch-configure Sat Oct 4 01:37:55 2003
+++ dspam/files/patch-configure Thu Dec 11 14:01:25 2003
@@ -1,56 +1,12 @@
---- configure.orig Tue Sep 23 22:45:17 2003
-+++ configure Tue Sep 23 22:44:11 2003
-@@ -7513,7 +7513,8 @@
-
-
+--- configure.orig Wed Nov 26 14:35:34 2003
++++ configure Thu Dec 11 14:00:18 2003
+@@ -7548,7 +7548,8 @@
+
+
# This can be used to rebuild libtool when needed
-LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
+LIBTOOL_DEPS="%%LIBTOOLFLAGS%% $ac_aux_dir/ltmain.sh"
+$ac_aux_dir/ltconfig $LIBTOOL_DEPS
-
+
# Always use our own libtool.
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
-@@ -9287,9 +9288,9 @@
- ds_db4_libs_LIBS="-L$with_db4_libraries"
- fi
-
--echo "$as_me:$LINENO: checking for db_create in -ldb-4" >&5
--echo $ECHO_N "checking for db_create in -ldb-4... $ECHO_C" >&6
--LIBS="$ds_db4_libs_LIBS -ldb-4 $ds_db4_libs_save_LIBS"
-+echo "$as_me:$LINENO: checking for db_create in -ldb41" >&5
-+echo $ECHO_N "checking for db_create in -ldb41... $ECHO_C" >&6
-+LIBS="$ds_db4_libs_LIBS -ldb41 $ds_db4_libs_save_LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- #line $LINENO "configure"
- /* confdefs.h. */
-@@ -9325,7 +9326,7 @@
- (exit $ac_status); }; }; then
-
- ds_db4_libs_success=yes
-- ds_db4_libs_LIBS="$ds_db4_libs_LIBS -ldb-4"
-+ ds_db4_libs_LIBS="$ds_db4_libs_LIBS -ldb41"
-
- else
- echo "$as_me: failed program was:" >&5
-@@ -9340,9 +9341,9 @@
-
- if test "x$ds_db4_libs_success" != xyes
- then
-- echo "$as_me:$LINENO: checking for db_create in -ldb-4 (with -lpthread)" >&5
--echo $ECHO_N "checking for db_create in -ldb-4 (with -lpthread)... $ECHO_C" >&6
-- LIBS="$ds_db4_libs_LIBS -ldb-4 -lpthread $LIBS"
-+ echo "$as_me:$LINENO: checking for db_create in -ldb41 (with -lpthread)" >&5
-+echo $ECHO_N "checking for db_create in -ldb41 (with -lpthread)... $ECHO_C" >&6
-+ LIBS="$ds_db4_libs_LIBS -ldb41 -lpthread $LIBS"
- cat >conftest.$ac_ext <<_ACEOF
- #line $LINENO "configure"
- /* confdefs.h. */
-@@ -9378,7 +9379,7 @@
- (exit $ac_status); }; }; then
-
- ds_db4_libs_success=yes
-- ds_db4_libs_LIBS="$ds_db4_libs_LIBS -ldb-4 -lpthread"
-+ ds_db4_libs_LIBS="$ds_db4_libs_LIBS -ldb41 -lpthread"
-
- else
- echo "$as_me: failed program was:" >&5
diff -ru dspam.orig/pkg-plist dspam/pkg-plist
--- dspam.orig/pkg-plist Mon Dec 8 18:40:38 2003
+++ dspam/pkg-plist Thu Dec 11 02:32:25 2003
@@ -1,14 +1,20 @@
bin/dspam
+bin/dspam_2mysql
bin/dspam_dump
bin/dspam_clean
+bin/dspam_corpus
bin/dspam_crc
bin/dspam_genaliases
bin/dspam_merge
+bin/dspam_ngstats
+bin/dspam_purge
+bin/dspam_purge.libdb4
bin/dspam_stats
-bin/dspam_corpus
+bin/libdb4_purge
lib/libdspam.so
-lib/libdspam.so.3
+lib/libdspam.so.4
lib/libdspam.a
+lib/libdspam.la
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/CHANGE
%%PORTDOCS%%@dirrm %%DOCSDIR%%
Only in dspam/: work
--- dspam.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list