View | Details | Raw Unified | Return to bug 92762
Collapse All | Expand All

(-)dspam/Makefile (-25 / +3 lines)
Lines 3-9 Link Here
3
# Whom:					Dominic Marks <dom@wirespeed.org.uk>
3
# Whom:					Dominic Marks <dom@wirespeed.org.uk>
4
#
4
#
5
# $FreeBSD: ports/mail/dspam/Makefile,v 1.46 2006/02/02 19:00:25 erwin Exp $
5
# $FreeBSD: ports/mail/dspam/Makefile,v 1.46 2006/02/02 19:00:25 erwin Exp $
6
# $Tecnik: ports/mail/dspam/Makefile,v 1.4 2006/02/01 02:15:35 itetcu Exp $
6
# $Tecnik: ports/mail/dspam/Makefile,v 1.7 2006/02/03 09:57:32 itetcu Exp $
7
#
7
#
8
8
9
# Note to commiters: If don't commit a maintainer patch and as a result PKGNAME
9
# Note to commiters: If don't commit a maintainer patch and as a result PKGNAME
Lines 25-53 Link Here
25
25
26
.ifdef(SNAP_DATE)
26
.ifdef(SNAP_DATE)
27
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
27
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
28
WRKSRC=		${WRKDIR}/dspam-cvs${SNAP_DATE}
28
WRKSRC=		${WRKDIR}/dspam-${SNAP_DATE}
29
.else
29
.else
30
MASTER_SITES=	http://dspam.irontec.com/sources/ \
30
MASTER_SITES=	http://dspam.irontec.com/sources/ \
31
	http://dspam.nuclearelephant.com/sources/ \
31
	http://dspam.nuclearelephant.com/sources/ \
32
	http://dspam.systemadministrator.org/sources/ \
32
	http://dspam.systemadministrator.org/sources/ \
33
	http://dspam.sourceforge.net/sources/ \
33
	http://dspam.sourceforge.net/sources/ \
34
	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
34
	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
35
DISTFILES=	dspam-${PORTVER_MAJ}.tar.gz
36
.endif
35
.endif
37
36
38
## maintainer only
37
_UPD_LINE_NO=	13
39
.ifdef(MAINT)
40
MASTER_SITES=	http://dspam.nuclearelephant.com/sources/
41
DISTFILES=	dspam-${PORTVER_MAJ}.tar.gz
42
NO_CHECKSUM=	yes
43
.	ifdef(SNAP_DATE)
44
DISTFILES=	snapshot-devel.tar.gz
45
#FETCH_BEFORE_ARGS=	-v -o ${DISTDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
46
.	endif
47
FETCH_BEFORE_ARGS=	-v -o ${DISTDIR}/${PORTNAME}-${PORTVERSION}.tar.gz
48
.endif
49
50
_UPD_LINE_NO=	19
51
38
52
## debug / log / admin options
39
## debug / log / admin options
53
OPTIONS=	DEBUG "Enable debugging logging" on
40
OPTIONS=	DEBUG "Enable debugging logging" on
Lines 536-548 Link Here
536
.endfor
523
.endfor
537
524
538
post-patch:
525
post-patch:
539
	@${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \
540
		s|%%PKGNAME%%|${PKGNAME}|; s|%%MAINTAINER%%|${MAINTAINER}|; \
541
		s|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g; \
542
		s|-ldb-4.1|-ldb41|g;'  ${WRKSRC}/configure
543
	@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
544
		${WRKSRC}/Makefile.in
545
546
	@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \
526
	@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \
547
		${WRKSRC}/src/tools.mysql_drv/purge.sql
527
		${WRKSRC}/src/tools.mysql_drv/purge.sql
548
	@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \
528
	@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' \
Lines 633-640 Link Here
633
			purge-4.1.sql purge.sql \
613
			purge-4.1.sql purge.sql \
634
			virtual_user_aliases.sql \
614
			virtual_user_aliases.sql \
635
			virtual_users.sql ${EXAMPLESDIR}/mysql
615
			virtual_users.sql ${EXAMPLESDIR}/mysql
636
#	@${INSTALL_DATA} ${FILESDIR}/2x_to_3x_db.sql ${EXAMPLESDIR}/mysql
637
#	@${INSTALL_DATA} ${FILESDIR}/310_to_320.my.sql ${EXAMPLESDIR}/mysql
638
.endif
616
.endif
639
.ifdef(WITH_POSTGRESQL)
617
.ifdef(WITH_POSTGRESQL)
640
	@${MKDIR} ${EXAMPLESDIR}/pgsql
618
	@${MKDIR} ${EXAMPLESDIR}/pgsql
(-)dspam/files/UPDATING (-4 / +5 lines)
Lines 1-5 Link Here
1
# $FreeBSD: ports/mail/dspam/files/UPDATING,v 1.19 2006/02/02 19:00:26 erwin Exp $
1
# $FreeBSD: ports/mail/dspam/files/UPDATING,v 1.19 2006/02/02 19:00:26 erwin Exp $
2
# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.3 2006/02/01 02:15:42 itetcu Exp $
2
# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.6 2006/02/03 10:18:25 itetcu Exp $
3
#
3
#
4
# for each PKGNAME or user option change an entry should be added in this file
4
# for each PKGNAME or user option change an entry should be added in this file
5
# each entry 
5
# each entry 
Lines 16-28 Link Here
16
in the port directory:
16
in the port directory:
17
make extract;  more `find . -type f -maxdepth 2 -name UPGRADING`
17
make extract;  more `find . -type f -maxdepth 2 -name UPGRADING`
18
18
19
20
###########################################################################
19
###########################################################################
21
# dspam-3.6.3
20
# dspam-3.6.3
22
#
21
#
23
22
24
To manny things to note here, please see mail-dspam-devel/UPDATING and read
23
To manny things to note here, please see mail/dsapm-devel/UPDATING and read
25
UPGRADING and CHANGELOG and adjust your dspam.conf accordingly
24
UPGRADING and CHANGELOG and adjust your dspam.conf accordingly; there are
25
NEW DIRECTIVES (see dspam.conf.sample) so if you miss this dspam will have
26
bad accuracy or could (possibly) crash.
26
- you can now have the database drivers dynamically loaded at run time so
27
- you can now have the database drivers dynamically loaded at run time so
27
you can select multiple drivers in the OPTIONS screen; see dspam.conf.
28
you can select multiple drivers in the OPTIONS screen; see dspam.conf.
28
- also algorithm selection is done exclusively via dspam.conf
29
- also algorithm selection is done exclusively via dspam.conf
(-)dspam/files/dspam.sh.in (-1 / +1 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD: ports/mail/dspam/files/dspam.sh.in,v 1.3 2006/02/02 19:00:26 erwin Exp $
2
# $FreeBSD: ports/mail/dspam/files/dspam.sh.in,v 1.3 2006/02/02 19:00:26 erwin Exp $
3
# formerly $ FreeBSD: ports/mail/dspam/files/dspam,v 1.1 2005/05/05 21:03:37 pav Exp $
3
# formerly $ FreeBSD: ports/mail/dspam/files/dspam,v 1.1 2005/05/05 21:03:37 pav Exp $
4
# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.3 2006/02/01 02:15:42 itetcu Exp $
4
# $Tecnik: ports/mail/dspam/files/dspam.sh.in,v 1.5 2006/02/03 10:13:00 itetcu Exp $
5
#
5
#
6
6
7
# PROVIDE: dspam
7
# PROVIDE: dspam
(-)dspam/files/patch-scripts_train.pl (+17 lines)
Line 0 Link Here
1
--- scripts/train.pl.dist	Tue Nov  8 14:34:38 2005
2
+++ scripts/train.pl	Tue Nov  8 14:36:06 2005
3
@@ -1,4 +1,4 @@
4
-#!/usr/bin/perl
5
+#!%%PERL%%
6
 
7
 # train.pl
8
 # This tool trains a corpus of messages (a directory containing a nonspam and
9
@@ -14,7 +14,7 @@
10
 use vars qw { $USER $PATH $REPORTING_WINDOW $CORPUS $TRAINING_MODE };
11
 
12
 $REPORTING_WINDOW  = 250;			# How often to summarize
13
-$PATH              = "/usr/local/dspam/bin";	# Path to dspam binaries
14
+$PATH              = "%%DSPAM_PATH%%";		# Path to dspam binaries
15
 $TRAINING_MODE     = "teft";			# Training mode
16
 
17
 ### DO NOT CONFIGURE BELOW THIS LINE ###

Return to bug 92762