1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- 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]
This commit is contained in:
Renato Botelho 2006-02-04 13:26:43 +00:00
parent d0e8f7623b
commit a9d04cbc48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155196
4 changed files with 26 additions and 30 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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 ###