summaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-02-17 16:50:32 +0000
committergarga <garga@FreeBSD.org>2006-02-17 16:50:32 +0000
commitbb884ae671ad0b75c5ef35a21ef3cd16ccdc1b17 (patch)
tree382f80cf1c0d4240b73b7828066b4b0ca6bb72e0 /mail
parent911c4294bba9b49a224fcb133d17e4d0a435fe29 (diff)
downloadFreeBSD-ports-bb884ae671ad0b75c5ef35a21ef3cd16ccdc1b17.zip
FreeBSD-ports-bb884ae671ad0b75c5ef35a21ef3cd16ccdc1b17.tar.gz
- Update to stable 3.6.4 release:
- Drop NEURAL_NET (removed upstream) and TRAIN_SCRIPT (now always installed and depend on PERL5 for it). - Fix removal of EXAMPLESDIR on pkg-plist - Fix spelling in pkg-message and UPDATING - Some Makefile cleanup - drop RC_SUFX in Makefile, USE_RC_SUBR= ${PORTNAME} and move files/dspam.sh.in ---> files/dspam.in PR: ports/93361 Submitted by: maintainer
Diffstat (limited to 'mail')
-rw-r--r--mail/dspam/Makefile53
-rw-r--r--mail/dspam/distinfo6
-rw-r--r--mail/dspam/files/UPDATING40
-rw-r--r--mail/dspam/files/dspam.in (renamed from mail/dspam/files/dspam.sh.in)0
-rw-r--r--mail/dspam/pkg-message4
-rw-r--r--mail/dspam/pkg-plist8
6 files changed, 59 insertions, 52 deletions
diff --git a/mail/dspam/Makefile b/mail/dspam/Makefile
index 8cc4229..44d60c1 100644
--- a/mail/dspam/Makefile
+++ b/mail/dspam/Makefile
@@ -20,9 +20,11 @@ MASTER_SITES= # set later
MAINTAINER= itetcu@people.tecnik93.com
COMMENT= Bayesian spam filter - stable maintenance version
-PORTVER_MAJ= 3.6.3
+PORTVER_MAJ= 3.6.4
#SNAP_DATE= .20051211.2134
+MIN_OPTIONS_VER= ${PORTNAME}-3.6.4
+
.ifdef(SNAP_DATE)
MASTER_SITES= http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
WRKSRC= ${WRKDIR}/dspam-${SNAP_DATE}
@@ -42,10 +44,6 @@ OPTIONS+= VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
OPTIONS+= BNR_DEBUG "Enable debug for BNR" off
OPTIONS+= PREF_EXT "Preferences in database not in files" off
OPTIONS+= DAEMON "Daemonize dspam; speaks LMTP or DLMTP" on
-
-## algorithm options
-OPTIONS+= NEURAL_NET "Enable neural networking" off
-
#
OPTIONS+= CLAMAV "Enable clamav support" on
OPTIONS+= CLAMAV_DEVEL "Enable clamav support" off
@@ -87,8 +85,8 @@ OPTIONS+= POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
OPTIONS+= QMAIL "Play nice with Qmail mail server" off
OPTIONS+= CGI "Install CGI (pulls in apache)" off
-OPTIONS+= TRAIN_SCRIPT "Install trainning script (needs perl)" off
+USE_PERL5= yes
USE_AUTOTOOLS= libtool:15
INSTALLS_SHLIB= yes
GNU_CONFIGURE= yes
@@ -163,18 +161,13 @@ CONFIGURE_ARGS+= --enable-preferences-extension
.ifdef(WITH_DAEMON)
CONFIGURE_ARGS+= --enable-daemon
-RC_SUFX= .sh
-USE_RC_SUBR= ${PORTNAME}${RC_SUFX}
+USE_RC_SUBR= ${PORTNAME}
_SED_SCRIPT+= -e 's,%%DAEMON%%,,g'
SUB_LIST+= DSPAM_HOME=${DSPAM_HOME}
.else
_SED_SCRIPT+= -e '/%%DAEMON%%/D'
.endif
-.ifdef(WITH_NEURAL_NET)
-CONFIGURE_ARGS+= --enable-neural-networking
-.endif
-
.ifdef(WITH_CLAMAV) && defined(WITH_CLAMAV_LOCAL)
CONFIGURE_ARGS+= --enable-clamav
RUN_DEPENDS+= clamav>=0:${PORTSDIR}/security/clamav
@@ -422,15 +415,8 @@ PLIST_SUB+= CGI="@comment "
_SED_SCRIPT+= -e '/%%CGI%%/D'
.endif
-.ifdef(WITH_TRAIN_SCRIPT)
-USE_PERL5= yes
-PLIST_SUB+= TRAIN_SCRIPT=""
-.else
-PLIST_SUB+= TRAIN_SCRIPT="@comment "
-.endif
-
MAN1= dspam.1 dspam_clean.1 dspam_corpus.1 dspam_dump.1 dspam_merge.1 \
- dspam_stats.1
+ dspam_stats.1 dspam_train.1
MAN3= libdspam.3
MLINKS= libdspam.3 dspam_init.3
MLINKS+= libdspam.3 dspam_create.3
@@ -446,21 +432,17 @@ _DOCSL= courier.txt exim.txt markov.txt mysql_drv.txt ora_drv.txt \
pgsql_drv.txt pop3filter.txt postfix.txt qmail.txt relay.txt \
sendmail.txt sqlite_drv.txt
-.ifndef(MAINT)
pre-everything::
+.ifndef(MAINT)
@${ECHO_CMD} ""
@${ECHO_CMD} "Last ${FILESDIR}/UPDATING entry:"
@${GREP} -B 1 -A ${_UPD_LINE_NO} ${PKGNAME} ${FILESDIR}/UPDATING
@${ECHO_CMD} ""
@sleep 5
-.else # maintainer only
-post-fetch:
-. ifndef(STOP)
-#. include "/root/ports/upd"
-. endif
.endif
-pre-extract: check-options-version
+pre-extract: check-options-version
+.ifndef(MAINT)
@${ECHO_CMD} ""
@${ECHO_CMD} "Define vars below before make-ing if you need:"
@${ECHO_CMD} ""
@@ -480,6 +462,7 @@ pre-extract: check-options-version
. endif
@${ECHO_CMD} ""
@sleep 5
+.endif
post-patch:
@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \
@@ -494,10 +477,7 @@ post-patch:
${WRKSRC}/src/tools.sqlite_drv/purge-2.sql
@${REINPLACE_CMD} -e "s|where julianday('now')-julianday(created_on) > 14;|where julianday('now')-julianday(created_on) > ${SIGNATURE_LIFE};|" \
${WRKSRC}/src/tools.sqlite_drv/purge-3.sql
-
-.ifdef(WITH_TRAIN_SCRIPT)
- @${REINPLACE_CMD} -e "s^%%PERL%%^${PERL}^; s^%%DSPAM_PATH%%^${PREFIX}/bin^" ${WRKSRC}/scripts/train.pl
-.endif
+ @${REINPLACE_CMD} -e "s^%%PERL%%^${PERL}^; s^%%DSPAM_PATH%%^${PREFIX}/bin^" ${WRKSRC}/scripts/train.pl
pre-configure:
@${ECHO_CMD}
@@ -511,11 +491,6 @@ pre-configure:
@${ECHO_CMD} "You need to enable at least one database back-end."
@${FALSE}
.endif
-.if defined(WITH_NEURAL_NET) && \
- !( defined(USE_MYSQL) || defined(WITH_POSTGRESQL) )
- @${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
- @${FALSE}
-.endif
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
defined(WITH_POSTGRESQL) || defined(WITH_ORACLE) || defined(WITH_HASH) )
@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
@@ -568,7 +543,6 @@ post-install:
${INSTALL_DATA} mysql_objects-4.1.sql \
mysql_objects-space.sql \
mysql_objects-speed.sql \
- neural.sql \
purge-4.1.sql purge.sql \
virtual_user_aliases.sql \
virtual_users.sql ${EXAMPLESDIR}/mysql
@@ -608,11 +582,6 @@ post-install:
${INSTALL_DATA} *.html ${CGI_PATH}/templates/
.endif
-.ifdef(WITH_TRAIN_SCRIPT)
- cd ${WRKSRC}/scripts && \
- ${INSTALL_SCRIPT} train.pl ${PREFIX}/bin/dspam_train
-.endif
-
@${SED} ${_SED_SCRIPT} ${.CURDIR}/pkg-message > ${WRKSRC}/README.FreeBSD
.if !defined(NOPORTDOCS)
diff --git a/mail/dspam/distinfo b/mail/dspam/distinfo
index 85dfa21..cdc98b3 100644
--- a/mail/dspam/distinfo
+++ b/mail/dspam/distinfo
@@ -1,3 +1,3 @@
-MD5 (dspam-3.6.3.tar.gz) = db1aedb9677e6bf5c7a47a72d4f130e5
-SHA256 (dspam-3.6.3.tar.gz) = 6283c067c192f589a4fb925b845ba1bd9b51fe1b3df93d7f03897d7617a4aa7a
-SIZE (dspam-3.6.3.tar.gz) = 740097
+MD5 (dspam-3.6.4.tar.gz) = e9fdb00a23a99e05c9e4c22aa8aa3655
+SHA256 (dspam-3.6.4.tar.gz) = bdb10acbff97483db8ef7aafee8ba2e9113f6b7d5fc76cf569334b32937ca304
+SIZE (dspam-3.6.4.tar.gz) = 743664
diff --git a/mail/dspam/files/UPDATING b/mail/dspam/files/UPDATING
index 42057a7..946af38 100644
--- a/mail/dspam/files/UPDATING
+++ b/mail/dspam/files/UPDATING
@@ -17,6 +17,46 @@ in the port directory:
make extract; more `find . -type f -maxdepth 2 -name UPGRADING`
###########################################################################
+# dspam-3.6.4
+#
+
+BugFixes:
+- accuracy fixes (esp. for FP dspam is much better that in 3.6.3 release)
+- safeguards for segfault when strange clamav behavior
+- for no output when using --classify in client/server mode
+- LOG_WARNING if truncating MySQL user/pass + plus othersmall fixes
+
+New features:
+- dspam_train: a true training and testing mechanism, useful for building
+pretrained databases or training a user with their own corpus. also provides
+a test jig for measuring efficiency/accuracy with a corpus over a
+configuration; support for training using an index file to define the order
+of ham/spam
+- DeliveryHost for delivery to different hosts based on domain
+- ClassAlias options, useful if classifying things other than spam
+- WebUI: undo option for retraining
+- WebUI: support for existing storeFragments option to recall message in
+history
+- WebUI: mass-retraining option
+- Documentation: of all user preferences in the README
+
+Changed features:
+- dspam-statrs: changed names; now displays TP (true positives),
+TN (true negatives), FN (false negatives), and FP (false positives),
+OCA (Overall Accuracy)
+- dspam_corpus now uses default settings for features and training modes,
+instead of its own and now requires --spam or --nonspam arguments
+- the trainining buffer (Feature tb=n in dspam.conf) is now offby default
+- dspam.conf: HashRec sizes prime numbers for better spread
+- no signature on classify
+- ignore X-DSPAM-* in tokenizer code
+
+Removed features:
+- removed neural networking (NEURAL_NET), which was experimental, needed a
+rewrite, had no support and high maintenance
+
+
+###########################################################################
# dspam-3.6.3
#
diff --git a/mail/dspam/files/dspam.sh.in b/mail/dspam/files/dspam.in
index 1d35cf6..1d35cf6 100644
--- a/mail/dspam/files/dspam.sh.in
+++ b/mail/dspam/files/dspam.in
diff --git a/mail/dspam/pkg-message b/mail/dspam/pkg-message
index f74687f..a1f6028 100644
--- a/mail/dspam/pkg-message
+++ b/mail/dspam/pkg-message
@@ -8,8 +8,8 @@
uname -a, dspam --version, %%_VAR_DIR%%/db/ports/%%PORTNAME%%/options, MTA setup.
Asking about updates or telling me there is one: not only I am active on the
-mailing lists but I also track dspam cvs so I already know; either there is a
-problem with the new version or I didn't have enough time to patch the port
+mailing lists and IRC but I also track dspam CVS so I already know; either there
+is a problem with the new version or I didn't have enough time to patch the port
and _test_ the new version; please report your succes/failure if you run the
new version or the cvs version.
diff --git a/mail/dspam/pkg-plist b/mail/dspam/pkg-plist
index dcc772f..636be9c 100644
--- a/mail/dspam/pkg-plist
+++ b/mail/dspam/pkg-plist
@@ -15,7 +15,7 @@ bin/dspam_logrotate
bin/dspam_merge
%%PGSQL%%bin/dspam_pg2int8
bin/dspam_stats
-%%TRAIN_SCRIPT%%bin/dspam_train
+bin/dspam_train
@unexec if cmp -s %D/etc/dspam.conf %D/etc/dspam.conf.sample; then rm -f %D/etc/dspam.conf; fi
etc/dspam.conf.sample
include/dspam/buffer.h
@@ -69,22 +69,19 @@ libdata/pkgconfig/dspam.pc
%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-4.1.sql
%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-space.sql
%%MYSQL%%%%EXAMPLESDIR%%/mysql/mysql_objects-speed.sql
-%%MYSQL%%%%EXAMPLESDIR%%/mysql/neural.sql
%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge-4.1.sql
%%MYSQL%%%%EXAMPLESDIR%%/mysql/purge.sql
%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_user_aliases.sql
%%MYSQL%%%%EXAMPLESDIR%%/mysql/virtual_users.sql
%%MYSQL%%@dirrm %%EXAMPLESDIR%%/mysql
-%%MYSQL%%@dirrm %%EXAMPLESDIR%%
%%PGSQL%%%%EXAMPLESDIR%%/pgsql/pgsql_objects.sql
%%PGSQL%%%%EXAMPLESDIR%%/pgsql/purge.sql
%%PGSQL%%%%EXAMPLESDIR%%/pgsql/virtual_users.sql
%%PGSQL%%@dirrm %%EXAMPLESDIR%%/pgsql
-%%PGSQL%%@dirrm %%EXAMPLESDIR%%
%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-2.sql
%%SQLITE%%%%EXAMPLESDIR%%/sqlite/purge-3.sql
%%SQLITE%%@dirrm %%EXAMPLESDIR%%/sqlite
-%%SQLITE%%@dirrm %%EXAMPLESDIR%%
+@dirrmtry %%EXAMPLESDIR%%
%%CGI%%www/vhosts/dspam/admins.sample
%%CGI%%www/vhosts/dspam/admin.cgi
%%CGI%%www/vhosts/dspam/admingraph.cgi
@@ -102,6 +99,7 @@ libdata/pkgconfig/dspam.pc
%%CGI%%www/vhosts/dspam/templates/nav_alerts.html
%%CGI%%www/vhosts/dspam/templates/nav_analysis.html
%%CGI%%www/vhosts/dspam/templates/nav_error.html
+%%CGI%%www/vhosts/dspam/templates/nav_fragment.html
%%CGI%%www/vhosts/dspam/templates/nav_history.html
%%CGI%%www/vhosts/dspam/templates/nav_performance.html
%%CGI%%www/vhosts/dspam/templates/nav_preferences.html
OpenPOWER on IntegriCloud