diff options
author | garga <garga@FreeBSD.org> | 2006-02-04 21:26:43 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-02-04 21:26:43 +0800 |
commit | f6a70eeeec7a94cb95865acffebf18311a9da910 (patch) | |
tree | 232c32ca928524ed0c0d353165aed7c1dcf551e8 /mail | |
parent | de8da55f22900e2b7ed2233d9a8eda4d441e42c9 (diff) | |
download | freebsd-ports-gnome-f6a70eeeec7a94cb95865acffebf18311a9da910.tar.gz freebsd-ports-gnome-f6a70eeeec7a94cb95865acffebf18311a9da910.tar.zst freebsd-ports-gnome-f6a70eeeec7a94cb95865acffebf18311a9da910.zip |
- files/patch-scripts_train.pl was missed in the last commit.
- Small Makefile cleanup.
- Insist dspam.conf should be updated to include the new directives.
- Fix typo in files/UPDATING [1]
PR: ports/92762
Submitted by: maintainer
Obtained from: edwin [1]
Diffstat (limited to 'mail')
-rw-r--r-- | mail/dspam/Makefile | 28 | ||||
-rw-r--r-- | mail/dspam/files/UPDATING | 9 | ||||
-rw-r--r-- | mail/dspam/files/dspam.sh.in | 2 | ||||
-rw-r--r-- | mail/dspam/files/patch-scripts_train.pl | 17 |
4 files changed, 26 insertions, 30 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile index 73c24dc182f7..def9c48c4bc5 100644 --- a/mail/dspam/Makefile +++ b/mail/dspam/Makefile @@ -3,7 +3,7 @@ # Whom: Dominic Marks <dom@wirespeed.org.uk> # # $FreeBSD$ -# $Tecnik: ports/mail/dspam/Makefile,v 1.4 2006/02/01 02:15:35 itetcu Exp $ +# $Tecnik: ports/mail/dspam/Makefile,v 1.7 2006/02/03 09:57:32 itetcu Exp $ # # Note to commiters: If don't commit a maintainer patch and as a result PKGNAME @@ -25,29 +25,16 @@ PORTVER_MAJ= 3.6.3 .ifdef(SNAP_DATE) MASTER_SITES= http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/ -WRKSRC= ${WRKDIR}/dspam-cvs${SNAP_DATE} +WRKSRC= ${WRKDIR}/dspam-${SNAP_DATE} .else MASTER_SITES= http://dspam.irontec.com/sources/ \ http://dspam.nuclearelephant.com/sources/ \ http://dspam.systemadministrator.org/sources/ \ http://dspam.sourceforge.net/sources/ \ http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/ -DISTFILES= dspam-${PORTVER_MAJ}.tar.gz .endif -## maintainer only -.ifdef(MAINT) -MASTER_SITES= http://dspam.nuclearelephant.com/sources/ -DISTFILES= dspam-${PORTVER_MAJ}.tar.gz -NO_CHECKSUM= yes -. ifdef(SNAP_DATE) -DISTFILES= snapshot-devel.tar.gz -#FETCH_BEFORE_ARGS= -v -o ${DISTDIR}/${PORTNAME}-${PORTVERSION}.tar.gz -. endif -FETCH_BEFORE_ARGS= -v -o ${DISTDIR}/${PORTNAME}-${PORTVERSION}.tar.gz -.endif - -_UPD_LINE_NO= 19 +_UPD_LINE_NO= 13 ## debug / log / admin options OPTIONS= DEBUG "Enable debugging logging" on @@ -536,13 +523,6 @@ pre-extract: .endfor post-patch: - @${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \ - s|%%PKGNAME%%|${PKGNAME}|; s|%%MAINTAINER%%|${MAINTAINER}|; \ - s|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g; \ - s|-ldb-4.1|-ldb41|g;' ${WRKSRC}/configure - @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \ - ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \ ${WRKSRC}/src/tools.mysql_drv/purge.sql @${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \ @@ -633,8 +613,6 @@ post-install: purge-4.1.sql purge.sql \ virtual_user_aliases.sql \ virtual_users.sql ${EXAMPLESDIR}/mysql -# @${INSTALL_DATA} ${FILESDIR}/2x_to_3x_db.sql ${EXAMPLESDIR}/mysql -# @${INSTALL_DATA} ${FILESDIR}/310_to_320.my.sql ${EXAMPLESDIR}/mysql .endif .ifdef(WITH_POSTGRESQL) @${MKDIR} ${EXAMPLESDIR}/pgsql diff --git a/mail/dspam/files/UPDATING b/mail/dspam/files/UPDATING index 8f3367787853..a0220779f887 100644 --- a/mail/dspam/files/UPDATING +++ b/mail/dspam/files/UPDATING @@ -1,5 +1,5 @@ # $FreeBSD$ -# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.3 2006/02/01 02:15:42 itetcu Exp $ +# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.6 2006/02/03 10:18:25 itetcu Exp $ # # for each PKGNAME or user option change an entry should be added in this file # each entry @@ -16,13 +16,14 @@ also the UPGRADING enclosed in the dspam distribution. You can see it by doing in the port directory: make extract; more `find . -type f -maxdepth 2 -name UPGRADING` - ########################################################################### # dspam-3.6.3 # -To manny things to note here, please see mail-dspam-devel/UPDATING and read -UPGRADING and CHANGELOG and adjust your dspam.conf accordingly +To manny things to note here, please see mail/dsapm-devel/UPDATING and read +UPGRADING and CHANGELOG and adjust your dspam.conf accordingly; there are +NEW DIRECTIVES (see dspam.conf.sample) so if you miss this dspam will have +bad accuracy or could (possibly) crash. - you can now have the database drivers dynamically loaded at run time so you can select multiple drivers in the OPTIONS screen; see dspam.conf. - also algorithm selection is done exclusively via dspam.conf diff --git a/mail/dspam/files/dspam.sh.in b/mail/dspam/files/dspam.sh.in index 8ae583f12a41..290f7ce602bf 100644 --- a/mail/dspam/files/dspam.sh.in +++ b/mail/dspam/files/dspam.sh.in @@ -1,7 +1,7 @@ #!/bin/sh # $FreeBSD$ # formerly $ FreeBSD: ports/mail/dspam/files/dspam,v 1.1 2005/05/05 21:03:37 pav Exp $ -# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.3 2006/02/01 02:15:42 itetcu Exp $ +# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.5 2006/02/03 10:13:00 itetcu Exp $ # # PROVIDE: dspam diff --git a/mail/dspam/files/patch-scripts_train.pl b/mail/dspam/files/patch-scripts_train.pl new file mode 100644 index 000000000000..3550e64474f5 --- /dev/null +++ b/mail/dspam/files/patch-scripts_train.pl @@ -0,0 +1,17 @@ +--- scripts/train.pl.dist Tue Nov 8 14:34:38 2005 ++++ scripts/train.pl Tue Nov 8 14:36:06 2005 +@@ -1,4 +1,4 @@ +-#!/usr/bin/perl ++#!%%PERL%% + + # train.pl + # This tool trains a corpus of messages (a directory containing a nonspam and +@@ -14,7 +14,7 @@ + use vars qw { $USER $PATH $REPORTING_WINDOW $CORPUS $TRAINING_MODE }; + + $REPORTING_WINDOW = 250; # How often to summarize +-$PATH = "/usr/local/dspam/bin"; # Path to dspam binaries ++$PATH = "%%DSPAM_PATH%%"; # Path to dspam binaries + $TRAINING_MODE = "teft"; # Training mode + + ### DO NOT CONFIGURE BELOW THIS LINE ### |