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

(-)Makefile (-34 / +68 lines)
Lines 2-15 Link Here
2
# Date created:				3 August 2003
2
# Date created:				3 August 2003
3
# Whom:					Dominic Marks <dom@wirespeed.org.uk>
3
# Whom:					Dominic Marks <dom@wirespeed.org.uk>
4
#
4
#
5
# $Tecnik: ports/mail/dspam/Makefile,v 1.12 2006/04/30 10:04:15 itetcu Exp $
5
# $FreeBSD: ports/mail/dspam/Makefile,v 1.50 2006/02/17 16:50:32 garga Exp $
6
# $FreeBSD: ports/mail/dspam/Makefile,v 1.50 2006/02/17 16:50:32 garga Exp $
6
# $Tecnik: ports/mail/dspam/Makefile,v 1.10 2006/02/09 22:20:22 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
10
# or user variables (WITH*) changes please add an entry in ${FILESDIR}/UPDATING and
10
# or user variables (WITH*) changes please add an entry in ${FILESDIR}/UPDATING and
11
# modify _UPD_LINE_NO=(no_of_added_lines-1) in this Makefile
11
# modify _UPD_LINE_NO=(no_of_added_lines-1) in this Makefile.
12
# else the port will be broken. Thanks.
12
# Else the port will be broken. Thanks.
13
13
14
PORTNAME=	dspam
14
PORTNAME=	dspam
15
PORTVERSION=	${PORTVER_MAJ}${SNAP_DATE}
15
PORTVERSION=	${PORTVER_MAJ}${SNAP_DATE}
Lines 20-59 Link Here
20
MAINTAINER=	itetcu@people.tecnik93.com
20
MAINTAINER=	itetcu@people.tecnik93.com
21
COMMENT=	Bayesian spam filter - stable maintenance version
21
COMMENT=	Bayesian spam filter - stable maintenance version
22
22
23
PORTVER_MAJ=	3.6.4
23
PORTVER_MAJ=	3.6.5
24
#SNAP_DATE=	.20051211.2134
24
#SNAP_DATE=	.20060421.2101
25
_UPD_LINE_NO=	51
25
26
26
MIN_OPTIONS_VER=	${PORTNAME}-3.6.4
27
MIN_OPTIONS_VER=	${PORTNAME}-3.6.5
27
28
28
.ifdef(SNAP_DATE)
29
.ifdef(SNAP_DATE)
29
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
30
MASTER_SITES=	http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/ \
31
		http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
30
WRKSRC=		${WRKDIR}/dspam-${SNAP_DATE}
32
WRKSRC=		${WRKDIR}/dspam-${SNAP_DATE}
31
.else
33
.else
32
MASTER_SITES=	http://dspam.irontec.com/sources/ \
34
MASTER_SITES=	http://dspam.irontec.com/sources/ \
33
	http://dspam.nuclearelephant.com/sources/ \
35
	http://dspam.nuclearelephant.com/sources/ \
34
	http://dspam.systemadministrator.org/sources/ \
36
	http://dspam.systemadministrator.org/sources/ \
35
	http://dspam.sourceforge.net/sources/ \
37
	http://dspam.sourceforge.net/sources/ \
38
	http://sce-tindy.tecnik93.com/FreeBSD/ports/${PORTNAME}/sources/ \
36
	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
39
	http://people.tecnik93.com/~itetcu/FreeBSD/ports/${PORTNAME}/sources/
37
.endif
40
.endif
38
41
39
_UPD_LINE_NO=	13
40
41
## debug / log / admin options
42
## debug / log / admin options
42
OPTIONS=	DEBUG "Enable debugging logging" on
43
OPTIONS=	SYSLOG "Logs via syslog" on
44
OPTIONS+=	DEBUG "Enable debugging logging" on
43
OPTIONS+=	VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
45
OPTIONS+=	VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
44
OPTIONS+=	BNR_DEBUG "Enable debug for BNR" off
46
OPTIONS+=	BNR_DEBUG "Enable debug for BNR" off
45
OPTIONS+=	PREF_EXT "Preferences in database not in files" off
47
OPTIONS+=	PREF_EXT "Preferences in database not in files" off
46
OPTIONS+=	DAEMON "Daemonize dspam; speaks LMTP or DLMTP" on
48
OPTIONS+=	DAEMON "Daemonize dspam; speaks LMTP or DLMTP" on
49
47
#
50
#
48
OPTIONS+=	CLAMAV "Enable clamav support" on
51
OPTIONS+=	CLAMAV "Enable clamav support" on
49
OPTIONS+=	CLAMAV_DEVEL "Enable clamav support" off
52
OPTIONS+=	CLAMAV_DEVEL "Enable clamav support" off
50
OPTIONS+=	CLAMAV_LOCAL "RUN_DEPEND on selected clamav" on
53
OPTIONS+=	CLAMAV_LOCAL "RUN_DEPEND on selected clamav" on
51
#
54
#
52
OPTIONS+=	MYSQL40 "Use MySQL 4.0.x as back-end" off
55
OPTIONS+=	MYSQL40 "Use MySQL 4.0.x as back-end" off
53
OPTIONS+=	MYSQL41 "Use MySQL 4.1.x as back-end" on
56
OPTIONS+=	MYSQL41 "Use MySQL 4.1.x as back-end" off
54
OPTIONS+=	MYSQL50 "Use MySQL 5.0.x as back-end" off
57
OPTIONS+=	MYSQL50 "Use MySQL 5.0.x as back-end" on
58
OPTIONS+=	MYSQL51 "Use MySQL 5.1.x as back-end" off
55
OPTIONS+=	MYSQL_COMPRESS "Compress dspam <--> MySQL" off
59
OPTIONS+=	MYSQL_COMPRESS "Compress dspam <--> MySQL" off
56
OPTIONS+=	MYSQL_LOCAL "RUN_DEPEND on MySQL server selected version" off
60
OPTIONS+=	MYSQL_LOCAL "RUN_DEPEND on selected MySQL server ver." off
57
OPTIONS+=	POSTGRESQL "Use PostgreSQL as back-end" on
61
OPTIONS+=	POSTGRESQL "Use PostgreSQL as back-end" on
58
OPTIONS+=	POSTGRESQL_LOCAL "RUN_DEPEND on PostgreSQL server" off
62
OPTIONS+=	POSTGRESQL_LOCAL "RUN_DEPEND on PostgreSQL server" off
59
OPTIONS+=	ORACLE "Use Oracle as back-end (BROKEN)" off
63
OPTIONS+=	ORACLE "Use Oracle as back-end (BROKEN)" off
Lines 84-90 Link Here
84
OPTIONS+=	POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
88
OPTIONS+=	POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
85
OPTIONS+=	QMAIL "Play nice with Qmail mail server" off
89
OPTIONS+=	QMAIL "Play nice with Qmail mail server" off
86
90
87
OPTIONS+=	CGI "Install CGI (pulls in apache)" off
91
OPTIONS+=	CGI "Install CGI (pulls in Apache or see below)" off
92
OPTIONS+=	LIGHTTPD "RUN_DEPEND on LightHTTPD, not Apache" off
88
93
89
USE_PERL5=	yes
94
USE_PERL5=	yes
90
USE_AUTOTOOLS=	libtool:15
95
USE_AUTOTOOLS=	libtool:15
Lines 110-115 Link Here
110
115
111
_VAR_DIR=	/var
116
_VAR_DIR=	/var
112
LOG_DIR?=	${_VAR_DIR}/log/dspam
117
LOG_DIR?=	${_VAR_DIR}/log/dspam
118
LOGFILE?=	${LOG_DIR}/dspam.log
113
119
114
DSPAM_MODE?=	4510
120
DSPAM_MODE?=	4510
115
DSPAM_OWNER?=	root
121
DSPAM_OWNER?=	root
Lines 143-149 Link Here
143
		-e '/^%%FreeBSD/D' \
149
		-e '/^%%FreeBSD/D' \
144
		-e '/^%%Tecnik%%/D'
150
		-e '/^%%Tecnik%%/D'
145
151
146
.ifdef(WITH_DEBUG)
152
.ifndef(WITHOUT_SYSLOG)
153
CONFIGURE_ARGS+=	--enable-syslog
154
.else
155
CONFIGURE_ARGS+=	--disable-syslog
156
CONFIGURE_ARGS+=	--with-logfile=${LOGFILE}
157
.endif
158
159
.ifndef(WITHOUT_DEBUG)
147
CONFIGURE_ARGS+=	--enable-debug
160
CONFIGURE_ARGS+=	--enable-debug
148
.endif
161
.endif
149
162
Lines 159-165 Link Here
159
CONFIGURE_ARGS+=	--enable-preferences-extension
172
CONFIGURE_ARGS+=	--enable-preferences-extension
160
.endif
173
.endif
161
174
162
.ifdef(WITH_DAEMON)
175
.ifndef(WITHOUT_DAEMON)
163
CONFIGURE_ARGS+=	--enable-daemon
176
CONFIGURE_ARGS+=	--enable-daemon
164
USE_RC_SUBR=	${PORTNAME}
177
USE_RC_SUBR=	${PORTNAME}
165
_SED_SCRIPT+=	-e 's,%%DAEMON%%,,g'
178
_SED_SCRIPT+=	-e 's,%%DAEMON%%,,g'
Lines 168-184 Link Here
168
_SED_SCRIPT+=	-e '/%%DAEMON%%/D'
181
_SED_SCRIPT+=	-e '/%%DAEMON%%/D'
169
.endif
182
.endif
170
183
171
.ifdef(WITH_CLAMAV) && defined(WITH_CLAMAV_LOCAL)
184
.ifndef(WITHOUT_CLAMAV) && !defined(WITHOUT_CLAMAV_LOCAL)
172
CONFIGURE_ARGS+=	--enable-clamav
185
CONFIGURE_ARGS+=	--enable-clamav
173
RUN_DEPENDS+=	clamav>=0:${PORTSDIR}/security/clamav
186
RUN_DEPENDS+=	clamav>=0:${PORTSDIR}/security/clamav
174
SUB_LIST+=	CLAMD=clamd
187
SUB_LIST+=	CLAMD=clamd
175
.endif
188
.endif
176
.ifdef(WITH_CLAMAV_DEVEL)  && defined(WITH_CLAMAV_LOCAL)
189
.ifdef(WITH_CLAMAV_DEVEL)  && !defined(WITHOUT_CLAMAV_LOCAL)
177
CONFIGURE_ARGS+=	--enable-clamav
190
CONFIGURE_ARGS+=	--enable-clamav
178
RUN_DEPENDS+=	clamav-devel>=0:${PORTSDIR}/security/clamav-devel
191
RUN_DEPENDS+=	clamav-devel>=0:${PORTSDIR}/security/clamav-devel
179
SUB_LIST+=	CLAMD=clamd
192
SUB_LIST+=	CLAMD=clamd
180
.endif
193
.endif
181
.ifndef(WITH_CLAMAV_LOCAL)
194
.ifdef(WITHOUT_CLAMAV_LOCAL)
182
SUB_LIST+=	CLAMD=
195
SUB_LIST+=	CLAMD=
183
.endif
196
.endif
184
197
Lines 188-194 Link Here
188
# above won't work because ORACLE support is broken so
201
# above won't work because ORACLE support is broken so
189
_DBDRV=		pgsql_drv,libdb41_drv,sqlite3_drv,sqlite_drv,hash_drv,mysql_drv,
202
_DBDRV=		pgsql_drv,libdb41_drv,sqlite3_drv,sqlite_drv,hash_drv,mysql_drv,
190
203
191
.if defined(WITH_POSTGRESQL)
204
.ifndef(WITHOUT_POSTGRESQL)
192
USE_PGSQL=	yes
205
USE_PGSQL=	yes
193
CONFIGURE_ARGS+=	--with-pgsql-includes=${LOCALBASE}/include \
206
CONFIGURE_ARGS+=	--with-pgsql-includes=${LOCALBASE}/include \
194
		--with-pgsql-libraries=${LOCALBASE}/lib
207
		--with-pgsql-libraries=${LOCALBASE}/lib
Lines 216-222 Link Here
216
#_DBDRV:=	${_DBDRV:S/ora_drv,//}
229
#_DBDRV:=	${_DBDRV:S/ora_drv,//}
217
.endif
230
.endif
218
231
219
.if defined(WITH_BDB4)
232
.ifdef(WITH_BDB4)
220
# change me when we have BDB_VERSOIN in bsd.databases.mk
233
# change me when we have BDB_VERSOIN in bsd.databases.mk
221
USE_BDB=	41
234
USE_BDB=	41
222
CONFIGURE_ARGS+=	--with-db4-includes=${LOCALBASE}/include/db41
235
CONFIGURE_ARGS+=	--with-db4-includes=${LOCALBASE}/include/db41
Lines 228-234 Link Here
228
PLIST_SUB+=	DB4="@comment "
241
PLIST_SUB+=	DB4="@comment "
229
.endif
242
.endif
230
243
231
.if defined(WITH_SQLITE3)
244
.ifndef(WITHOUT_SQLITE3)
232
USE_SQLITE=	3
245
USE_SQLITE=	3
233
_DBDRV_COUNT:=	${_DBDRV_COUNT}o
246
_DBDRV_COUNT:=	${_DBDRV_COUNT}o
234
.else
247
.else
Lines 250-256 Link Here
250
PLIST_SUB+=	SQLITE="@comment "
263
PLIST_SUB+=	SQLITE="@comment "
251
.endif
264
.endif
252
265
253
.ifdef(WITH_HASH)
266
.ifndef(WITHOUT_HASH)
254
PLIST_SUB+=	HASH=""
267
PLIST_SUB+=	HASH=""
255
#PKGNAMESUFFIX=	-css
268
#PKGNAMESUFFIX=	-css
256
_DBDRV_COUNT:=	${_DBDRV_COUNT}o
269
_DBDRV_COUNT:=	${_DBDRV_COUNT}o
Lines 265-276 Link Here
265
.elifdef(WITH_MYSQL41)
278
.elifdef(WITH_MYSQL41)
266
WANT_MYSQL_VER=	41
279
WANT_MYSQL_VER=	41
267
#PKGNAMESUFFIX=	-mysql41
280
#PKGNAMESUFFIX=	-mysql41
268
.elifdef(WITH_MYSQL50)
281
.elifndef(WITHOUT_MYSQL50)
269
WANT_MYSQL_VER=	50
282
WANT_MYSQL_VER=	50
270
#PKGNAMESUFFIX=	-mysql50
283
#PKGNAMESUFFIX=	-mysql50
284
.elifdef(WITH_MYSQL51)
285
WANT_MYSQL_VER=	51
286
#PKGNAMESUFFIX=	-mysql51
271
.endif
287
.endif
272
288
273
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) || defined(WITH_MYSQL50)
289
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) || \
290
	!defined(WITHOUT_MYSQL50) || defined(WITH_MYSQL51)
274
USE_MYSQL=	yes
291
USE_MYSQL=	yes
275
CONFIGURE_ARGS+=	--with-mysql-includes=${LOCALBASE}/include/mysql \
292
CONFIGURE_ARGS+=	--with-mysql-includes=${LOCALBASE}/include/mysql \
276
		--with-mysql-libraries=${LOCALBASE}/lib/mysql
293
		--with-mysql-libraries=${LOCALBASE}/lib/mysql
Lines 395-401 Link Here
395
.endif
412
.endif
396
413
397
.ifdef(WITH_CGI)
414
.ifdef(WITH_CGI)
415
.	if defined(WITH_LIGHTTPD)
416
RUN_DEPENDS+=	${LOCALBASE}/sbin/lighttpd:${PORTSDIR}/www/lighttpd
417
.	else
398
USE_APACHE=	1.3+
418
USE_APACHE=	1.3+
419
.	endif
399
LIB_DEPENDS+=	gd.4:${PORTSDIR}/graphics/gd
420
LIB_DEPENDS+=	gd.4:${PORTSDIR}/graphics/gd
400
RUN_DEPENDS+=	${SITE_PERL}/mach/GD.pm:${PORTSDIR}/graphics/p5-GD
421
RUN_DEPENDS+=	${SITE_PERL}/mach/GD.pm:${PORTSDIR}/graphics/p5-GD
401
RUN_DEPENDS+=	${SITE_PERL}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph
422
RUN_DEPENDS+=	${SITE_PERL}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph
Lines 455-460 Link Here
455
	@${ECHO_CMD} "DSPAM_HOME_GROUP=${DSPAM_HOME_GROUP}"
476
	@${ECHO_CMD} "DSPAM_HOME_GROUP=${DSPAM_HOME_GROUP}"
456
	@${ECHO_CMD} "DSPAM_HOME_MODE=${DSPAM_HOME_MODE} (default: 0770)"
477
	@${ECHO_CMD} "DSPAM_HOME_MODE=${DSPAM_HOME_MODE} (default: 0770)"
457
	@${ECHO_CMD} "LOG_DIR=${LOG_DIR} (default: ${_VAR_DIR}/log/dspam)"
478
	@${ECHO_CMD} "LOG_DIR=${LOG_DIR} (default: ${_VAR_DIR}/log/dspam)"
479
.	ifdef(WITHOUT_SYSLOG)
480
	@${ECHO_CMD} "LOGFILE=${LOGFILE} (default: ${_VAR_DIR}/log/dspam/dspam.log)"
481
.	endif
458
.	ifdef(WITH_CGI)
482
.	ifdef(WITH_CGI)
459
		@${ECHO_CMD} "Define CGI_PATH before make-ing if you need the CGI files"
483
		@${ECHO_CMD} "Define CGI_PATH before make-ing if you need the CGI files"
460
		@${ECHO_CMD} "installed in other place that this installation's default"
484
		@${ECHO_CMD} "installed in other place that this installation's default"
Lines 492-517 Link Here
492
	@${FALSE}
516
	@${FALSE}
493
.endif
517
.endif
494
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
518
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
495
	defined(WITH_POSTGRESQL) || defined(WITH_ORACLE) || defined(WITH_HASH) )
519
	!defined(WITHOUT_POSTGRESQL) || defined(WITH_ORACLE) || !defined(WITHOUT_HASH) )
496
	@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
520
	@${ECHO_CMD} "You need MySQL, POSTGRESQL, HASH or ORACLE for virtual users."
497
	@${FALSE}
521
	@${FALSE}
498
.endif
522
.endif
499
.if defined(WITH_PREF_EXT) && !( defined(USE_MYSQL) || \
523
.if defined(WITH_PREF_EXT) && !( defined(USE_MYSQL) || \
500
	defined(WITH_POSTGRESQL) )
524
	!defined(WITHOUT_POSTGRESQL) )
501
	@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
525
	@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
502
	@${FALSE}
526
	@${FALSE}
503
.endif
527
.endif
504
.if defined(WITH_DAEMON) && !( defined(USE_MYSQL) || \
528
.ifndef(WITHOUT_DAEMON) && !( defined(USE_MYSQL) || \
505
	defined(WITH_POSTGRESQL) || defined(WITH_HASH) )
529
	!defined(WITHOUT_POSTGRESQL) || !defined(WITHOUT_HASH) )
506
	@${ECHO_CMD} "You need MySQL or Postgres for Daemon mode, because multithreading support is needed"
530
	@${ECHO_CMD} "You need MySQL, PostgreSQL or Hash for Daemon mode, because multithreading support is needed"
507
	@${FALSE}
531
	@${FALSE}
508
.endif
532
.endif
509
.if ( defined(WITH_MYSQL40) && defined(WITH_MYSQL50) && defined(WITH_MYSQL41) )
533
.if ( defined(WITH_MYSQL40) && defined(WITH_MYSQL41) && !defined(WITHOUT_MYSQL50) && defined(WITH_MYSQL51))
510
	@${ECHO_CMD} "You can compile with only one MySQL version driver."
534
	@${ECHO_CMD} "You can compile with only one MySQL version driver."
511
	@${FALSE}
535
	@${FALSE}
512
.endif
536
.endif
513
.if defined(WITH_LDAP) && !( defined(USE_MYSQL) || \
537
.if defined(WITH_LDAP) && !( defined(USE_MYSQL) || \
514
	defined(WITH_POSTGRESQL) || defined(USE_SQLITE) )
538
	!defined(WITHOUT_POSTGRESQL) || defined(USE_SQLITE) )
515
	@${ECHO_CMD} "You need MySQL, Postgres or SQLITE for LDAP."
539
	@${ECHO_CMD} "You need MySQL, Postgres or SQLITE for LDAP."
516
	@${FALSE}
540
	@${FALSE}
517
.endif
541
.endif
Lines 523-528 Link Here
523
	@${ECHO_CMD} "DOMAIN_SCALE and LARGE_SCALE are incopatible"
547
	@${ECHO_CMD} "DOMAIN_SCALE and LARGE_SCALE are incopatible"
524
	@${FALSE}
548
	@${FALSE}
525
.endif
549
.endif
550
.if defined(WITH_LIGHTHTTPD) && !defined(WITH_CGI)
551
	@${ECHO_CMD} "There's no reason to depend on LightHTTPD if you're not using CGI"
552
	@${FALSE}
553
.endif
554
.ifdef(SNAP_DATE)
555
	@${ECHO_CMD}
556
	@${ECHO_CMD} "You can safely ignore the following auto*  errors"
557
	@${ECHO_CMD}
558
	@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ./autogen.sh)
559
.endif
526
560
527
post-install:
561
post-install:
528
	${CP} ${WRKSRC}/src/dspam.conf ${WRKSRC}/src/dspam.conf.sample
562
	${CP} ${WRKSRC}/src/dspam.conf ${WRKSRC}/src/dspam.conf.sample
Lines 547-553 Link Here
547
			virtual_user_aliases.sql \
581
			virtual_user_aliases.sql \
548
			virtual_users.sql ${EXAMPLESDIR}/mysql
582
			virtual_users.sql ${EXAMPLESDIR}/mysql
549
.endif
583
.endif
550
.ifdef(WITH_POSTGRESQL)
584
.ifndef(WITHOUT_POSTGRESQL)
551
	@${MKDIR} ${EXAMPLESDIR}/pgsql
585
	@${MKDIR} ${EXAMPLESDIR}/pgsql
552
	@cd  ${WRKSRC}/src/tools.pgsql_drv && \
586
	@cd  ${WRKSRC}/src/tools.pgsql_drv && \
553
		${INSTALL_DATA} *.sql ${EXAMPLESDIR}/pgsql
587
		${INSTALL_DATA} *.sql ${EXAMPLESDIR}/pgsql
(-)distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (dspam-3.6.4.tar.gz) = e9fdb00a23a99e05c9e4c22aa8aa3655
1
MD5 (dspam-3.6.5.tar.gz) = da4f0e00633bff49d71fde418caaf14b
2
SHA256 (dspam-3.6.4.tar.gz) = bdb10acbff97483db8ef7aafee8ba2e9113f6b7d5fc76cf569334b32937ca304
2
SHA256 (dspam-3.6.5.tar.gz) = d8033773840f51cad27466b018e26c5232990f576108af79f6aa910bc2556fda
3
SIZE (dspam-3.6.4.tar.gz) = 743664
3
SIZE (dspam-3.6.5.tar.gz) = 747196
(-)files/UPDATING (-1 / +53 lines)
Lines 1-5 Link Here
1
# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.10 2006/04/30 10:04:19 itetcu Exp $
1
# $FreeBSD: ports/mail/dspam/files/UPDATING,v 1.22 2006/02/17 16:50:32 garga Exp $
2
# $FreeBSD: ports/mail/dspam/files/UPDATING,v 1.22 2006/02/17 16:50:32 garga Exp $
2
# $Tecnik: ports/mail/dspam/files/UPDATING,v 1.8 2006/02/09 19:52:34 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 17-22 Link Here
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
###########################################################################
19
###########################################################################
20
# dspam-3.6.5
21
#
22
23
New features:
24
- support for reading from multiple mysql servers; support for separate
25
read/write servers to be used with mysql_drv; see dspam.conf
26
- SYSLOG options knob: log to via syslog if "on" or in flat file if "off"
27
- dspam_stats: -t for displaying a total of all stats included in the
28
original query
29
30
Bugfixes:
31
- fixed a bug causing --deliver=summary to return no output when used in
32
dspamc
33
- fixed a segfault which can occur if TrainingMode is not specified in
34
dspam.conf
35
- invalid read/segfault (dspam.c)
36
- segfault on problems establishing connectivity to clamav (dspam.c)
37
- segfault on NULL username (mysql_drv.c)
38
- bug causing writing of flat-file preferences to fail (pref.c)
39
- fragment file overwritten on retrain (cgi)
40
- corrects the output of "dspam_admin aggr pref" (tools/dspam_admin.c)
41
- prevent quarantining of message when delivering summary
42
43
WebUI: a lot of fixes and improvements
44
45
PostgeSQL: improvements to purge scripts and object creation script
46
47
Port changes:
48
-------------
49
50
Add MySQL 5.1 as backend. [1]
51
Default MySQL version is now 5.0
52
53
Optionally depend on LightHTTPD instead of Apache if WITH_CGI=on [2]
54
55
Add dspam_debug rc.d options (default off): starts dspam with debug
56
logging (you need at least WITH_DEBUG).
57
58
Fix OPTIONS handling for INDEX (describe); this is a long standing bug
59
and a *big* pontyhat for me; it affected _only_ dependecies recorded in
60
INDEX _if_ OPTIONS were not set (like for package building); however,
61
the package itself was always built right, dependecies recorded OK, etc.
62
63
Add SCE-tindy as MASTER_SITE, much faster site that my other server. [3]
64
65
Requested by:   Odhiambo WASHINGTON <odhiambo.raburu@wananchi.com> [1]
66
Submitted by:   "Daniel S. Haischt"
67
                <me@daniel.stefan.haischt.name> [2] (based on)
68
My thanks again to Joey Freeland for this machine and the bandwidth [3]
69
70
71
###########################################################################
20
# dspam-3.6.4
72
# dspam-3.6.4
21
#
73
#
22
74
(-)files/dspam.in (-12 / +17 lines)
Lines 1-7 Link Here
1
#!/bin/sh
1
#!/bin/sh
2
# $FreeBSD: ports/mail/dspam/files/dspam.in,v 1.1 2006/02/17 16:50:32 garga Exp $
2
# $FreeBSD: ports/mail/dspam/files/dspam.in,v 1.1 2006/02/17 16:50:32 garga 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.6 2006/02/09 19:14:29 itetcu Exp $
5
#
4
#
6
5
7
# PROVIDE: dspam
6
# PROVIDE: dspam
Lines 11-42 Link Here
11
10
12
#
11
#
13
# Add the following lines to /etc/rc.conf[.local] to enable dspam:
12
# Add the following lines to /etc/rc.conf[.local] to enable dspam:
14
#
15
# dspam_enable="YES"
13
# dspam_enable="YES"
14
#
15
# dspam_debug="YES" will start dspam with debug logging (you need ar least WITH_DEBUG)
16
# you can also set the pid file via dspam_pidfile
16
# you can also set the pid file via dspam_pidfile
17
#
17
#
18
18
19
. %%RC_SUBR%%
19
. %%RC_SUBR%%
20
20
21
name=dspam
21
name="dspam"
22
rcvar=`set_rcvar`
22
rcvar=${name}_enable
23
24
load_rc_config $name
25
26
27
: ${dspam_enable="NO"}
28
: ${dspam_pidfile:-/var/run/dspam.pid}
29
23
30
command=%%PREFIX%%/bin/${name}
24
command=%%PREFIX%%/bin/${name}
31
command_args="--daemon  > /dev/null 2>&1 &"
25
if checkyesno dspam_debug
26
then
27
	command_args="--daemon --debug > /dev/null 2>&1 &"
28
else
29
	command_args="--daemon > /dev/null 2>&1 &"
30
fi
32
required_dirs=%%DSPAM_HOME%%
31
required_dirs=%%DSPAM_HOME%%
33
required_files=%%PREFIX%%/etc/${name}.conf
32
required_files=%%PREFIX%%/etc/${name}.conf
34
33
35
extra_commands=reload
34
extra_commands=reload
36
37
reload()
35
reload()
38
{
36
{
39
 kill -HUP `cat $pidfile`
37
 kill -HUP `cat $pidfile`
40
}
38
}
41
39
40
load_rc_config $name
41
42
#defaults
43
: ${dspam_enable="NO"}
44
: ${dspam_debug="NO"}
45
: ${dspam_pidfile:-/var/run/dspam.pid}
46
42
run_rc_command "$1"
47
run_rc_command "$1"

Return to bug 96541