View | Details | Raw Unified | Return to bug 75647 | Differences between
and this patch

Collapse All | Expand All

(-)dspam-devel/Makefile (-195 / +179 lines)
Lines 2-34 Link Here
2
# Date created:		24 Jun 2004
2
# Date created:		24 Jun 2004
3
# Whom:			Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
3
# Whom:			Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
4
#
4
#
5
# $FreeBSD: ports/mail/dspam-devel.cvs/Makefile,v 1.26 2004/12/23 08:25:47 nork Exp $
5
# $FreeBSD: ports/mail/dspam-devel.cvs/Makefile,v 1.26 2004/12/23 08:25:47 nork Exp $
6
#
6
#
7
7
8
PORTNAME=	dspam-devel
8
PORTNAME=	dspam-devel
9
PORTVERSION=	${PORTVER_MAJ}${SNAP_DATE}
9
PORTVERSION=	${PORTVER_MAJ}${SNAP_DATE}
10
PORTREVISION=	1
11
CATEGORIES=	mail
10
CATEGORIES=	mail
12
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/dspam-devel/sources/
11
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/dspam-devel/sources/
13
DISTFILES=	${PORTNAME}.${PORTVERSION}.tar.gz
12
DISTFILES=	${PORTNAME}-${PORTVERSION}.tar.gz
14
13
15
MAINTAINER=	itetcu@people.tecnik93.com
14
MAINTAINER=	itetcu@people.tecnik93.com
16
COMMENT=	Bayesian spam filter - development version
15
COMMENT=	Bayesian spam filter - development version
17
16
17
.ifdef(SNAP_DATE)
18
WRKSRC=		${WRKDIR}/dspam-cvs-devel${SNAP_DATE}
18
WRKSRC=		${WRKDIR}/dspam-cvs-devel${SNAP_DATE}
19
.else
20
WRKSRC=		${WRKDIR}/dspam-${PORTVER_MAJ}
21
.endif
19
22
20
SNAP_DATE=	.20041201.1330
23
#SNAP_DATE=	.20041225.1815
21
PORTVER_MAJ=	3.3.0.a
24
PORTVER_MAJ=	3.3.4
22
25
23
## debug / log / admin options
26
## debug / log / admin options
24
OPTIONS=	DEBUG "Enable debugging logging" on
27
OPTIONS=	DEBUG "Enable debugging logging" on
25
OPTIONS+=	VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
28
OPTIONS+=	VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
26
#OPTIONS+=	USER_LOGGING	"Log mail in DSPAM_HOME/data/user/user.log" off
29
OPTIONS+=	BNR_DEBUG "Enable debug for BNR" off
27
#OPTIONS+=	SYSTEM_LOGGING	"Log some info DSPAM_HOME/system.log" on
28
#OPTIONS+=	SAT "Log spam source addresses to syslog" on
29
#OPTIONS+=	PARSE_TO_HEADERS "Get user from To header on fp spam" off
30
OPTIONS+=	PREF_EXT "Preferences in database not in files" off
30
OPTIONS+=	PREF_EXT "Preferences in database not in files" off
31
OPTIONS+=	DAEMON "Daemonize dspam; speak LMTP; EXPERIMENTAL" off
31
OPTIONS+=	DAEMON "Daemonize dspam; speak LMTP" on
32
32
## algorithm options
33
## algorithm options
33
OPTIONS+=	GRAHAM_BAYES "Enable Graham (traditional) bayesian" on
34
OPTIONS+=	GRAHAM_BAYES "Enable Graham (traditional) bayesian" on
34
OPTIONS+=	BURTON_BAYES "Enable Burton (alternative) bayesian" on
35
OPTIONS+=	BURTON_BAYES "Enable Burton (alternative) bayesian" on
Lines 39-85 Link Here
39
OPTIONS+=	NO_BIAS "No bias toward innocent mail" off
40
OPTIONS+=	NO_BIAS "No bias toward innocent mail" off
40
OPTIONS+=	WHITELIST "Automatic whitelisting of ham" off
41
OPTIONS+=	WHITELIST "Automatic whitelisting of ham" off
41
OPTIONS+=	NEURAL_NET "Enable neural networking" off
42
OPTIONS+=	NEURAL_NET "Enable neural networking" off
43
42
## run-time configure  options
44
## run-time configure  options
43
#OPTIONS+=	HOMEDIR_DOT "Dot files in ~/USER not DSPAM_HOME" off
44
OPTIONS+=	USER_HOMEDIR "Store user data in ~/.dspam" off
45
OPTIONS+=	USER_HOMEDIR "Store user data in ~/.dspam" off
45
#OPTIONS+=	OPT_IN "Run only for users with .dspam" off
46
OPTIONS+=	TRUSTED_USERS "Disable trusted user security" off
46
OPTIONS+=	TRUSTED_USERS "Disable trusted user security" off
47
## mesage taging options
47
48
#OPTIONS+=	SPAM_SUBJ "Prepends SPAM to the Subject header" off
49
#OPTIONS+=	SIGNATURE_HEADERS "Put signatures IDs ONLY in headers" off
50
#OPTIONS+=	WEBMAIL "Only with mail stored server-side" off
51
## back-end
48
## back-end
52
OPTIONS+=	MYSQL40 "Use MySQL 4.0.x as back-end" off
49
OPTIONS+=	MYSQL40 "Use MySQL 4.0.x as back-end" on
53
OPTIONS+=	MYSQL41 "Use MySQL 4.1.x as back-end" off
50
OPTIONS+=	MYSQL41 "Use MySQL 4.1.x as back-end" off
51
OPTIONS+=	MYSQL50 "Use MySQL 5.0.x as back-end" off
54
OPTIONS+=	MYSQL_COMPRESS "Compress dspam <--> MySQL" off
52
OPTIONS+=	MYSQL_COMPRESS "Compress dspam <--> MySQL" off
55
OPTIONS+=	POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off
53
OPTIONS+=	POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off
56
OPTIONS+=	POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off
54
OPTIONS+=	POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off
57
#OPTIONS+=	PGSQL_INSTALLED "You have the client installed" on
58
OPTIONS+=	ORACLE "Use Oracle as back-end (BROKEN)" off
55
OPTIONS+=	ORACLE "Use Oracle as back-end (BROKEN)" off
59
OPTIONS+=	BDB4 "Use BDB4 as back-end (not recomanded)" off
56
OPTIONS+=	BDB4 "Use BDB4 as back-end (not recomanded)" off
60
OPTIONS+=	SQLITE "Use SQLite as back-end" on
57
OPTIONS+=	SQLITE2 "Use SQLite v2.x as back-end" off
58
OPTIONS+=	SQLITE3 "Use SQLite v3.x as back-end" off
61
OPTIONS+=	VIRT_USERS "Enable virtual users (needs SQL back-end)" off
59
OPTIONS+=	VIRT_USERS "Enable virtual users (needs SQL back-end)" off
62
OPTIONS+=	LONG_USERNAMES "Usernames longer that OS supports" off
60
OPTIONS+=	LONG_USERNAMES "Usernames longer that OS supports" off
63
OPTIONS+=	LARGE_SCALE "File structure for large scale" off
61
OPTIONS+=	LARGE_SCALE "File structure for large scale" off
64
OPTIONS+=	DOMAIN_SCALE "File structure for multiple domains" off
62
OPTIONS+=	DOMAIN_SCALE "File structure for multiple domains" off
65
#OPTIONS+=	SIGNATURE_ATACH "Put server-side signature in mails" off
63
#OPTIONS+=	SIGNATURE_ATACH "Put server-side signature in mails" off
64
66
## MTA and LDA
65
## MTA and LDA
67
OPTIONS+=	MAILDROP_LDA "Use Maildrop as local delivery agent" off
68
OPTIONS+=	PROCMAIL_LDA "Use Procmail as local delivery agent" off
69
OPTIONS+=	CYRUS21_LDA "Use Cyrus's 2.1 deliver as LDA" off
66
OPTIONS+=	CYRUS21_LDA "Use Cyrus's 2.1 deliver as LDA" off
70
OPTIONS+=	CYRUS22_LDA "Use Cyrus's 2.2 deliver as LDA" off
67
OPTIONS+=	CYRUS22_LDA "Use Cyrus's 2.2 deliver as LDA" off
68
OPTIONS+=	EXIM_LDA "Use Exim as local delivery agent" off
69
OPTIONS+=	MAILDROP_LDA "Use Maildrop as local delivery agent" off
70
OPTIONS+=	PROCMAIL_LDA "Use Procmail as local delivery agent" off
71
OPTIONS+=	SENDMAIL_LDA "Use Sendmail as local delivery agent" off
71
OPTIONS+=	SENDMAIL_LDA "Use Sendmail as local delivery agent" off
72
72
73
OPTIONS+=	SENDMAIL "Play nice with sendmail server" off
73
OPTIONS+=	SENDMAIL "Play nice with sendmail server" off
74
OPTIONS+=	POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
74
OPTIONS+=	POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
75
OPTIONS+=	QMAIL "Play nice with Qmail mail server" off
75
OPTIONS+=	QMAIL "Play nice with Qmail mail server" off
76
#OPTIONS+=	BROKEN_ERR_CODES "99=spam, 0=not, other=error (qmailish)" off
77
#OPTIONS+=	BROKEN_MTA "Enable if MTA pases ^M to dspam" off
78
76
79
OPTIONS+=	CGI "Install CGI (pulls in apache)" off
77
OPTIONS+=	CGI "Install CGI (pulls in apache)" off
80
78
81
USE_GNOME=	pkgconfig
79
USE_GNOME=	pkgconfig
82
#USE_INC_LIBTOOL_VER=13
83
USE_LIBTOOL_VER=15
80
USE_LIBTOOL_VER=15
84
USE_REINPLACE=	yes
81
USE_REINPLACE=	yes
85
INSTALLS_SHLIB=	yes
82
INSTALLS_SHLIB=	yes
Lines 87-101 Link Here
87
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib"
84
CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib"
88
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
85
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
89
86
87
#CFLAGS+=	-g
88
90
PKGMESSAGE=	 ${WRKSRC}/src/README.FreeBSD
89
PKGMESSAGE=	 ${WRKSRC}/src/README.FreeBSD
91
90
91
UPD_LINE_NO=	39
92
92
CONFLICTS=	dspam-2* dspam-3*
93
CONFLICTS=	dspam-2* dspam-3*
93
94
94
SIGNATURE_LIFE?=	15
95
SIGNATURE_LIFE?=	15
96
95
_VAR_DIR=	/var
97
_VAR_DIR=	/var
96
LOG_DIR?=	${_VAR_DIR}/log/dspam
98
LOG_DIR?=	${_VAR_DIR}/log/dspam
99
100
DSPAM_MODE?=	4510
101
DSPAM_OWNER?=	root
102
DSPAM_GROUP?=	mail
103
97
DSPAM_HOME?=	${_VAR_DIR}/db/dspam
104
DSPAM_HOME?=	${_VAR_DIR}/db/dspam
98
DSPAM_HOME_MODE?=	0660
105
DSPAM_HOME_OWNER?=	${DSPAM_OWNER}
106
DSPAM_HOME_GROUP?=	${DSPAM_GROUP}
107
DSPAM_HOME_MODE?=	0770
99
108
100
.include <bsd.port.pre.mk>
109
.include <bsd.port.pre.mk>
101
110
Lines 103-129 Link Here
103
PLIST_SUB+=	LOG_DIR=${LOG_DIR}
112
PLIST_SUB+=	LOG_DIR=${LOG_DIR}
104
113
105
CONFIGURE_ARGS+=	--with-dspam-home=${DSPAM_HOME}
114
CONFIGURE_ARGS+=	--with-dspam-home=${DSPAM_HOME}
106
PLIST_SUB+=	DSPAM_HOME=${DSPAM_HOME}
107
108
.if defined(DSPAM_HOME_OWNER)
109
CONFIGURE_ARGS+=	--with-dspam-home-owner=${DSPAM_HOME_OWNER}
115
CONFIGURE_ARGS+=	--with-dspam-home-owner=${DSPAM_HOME_OWNER}
110
.endif
111
.if defined(DSPAM_HOME_GROUP)
112
CONFIGURE_ARGS+=	--with-dspam-home-group=${DSPAM_HOME_GROUP}
116
CONFIGURE_ARGS+=	--with-dspam-home-group=${DSPAM_HOME_GROUP}
113
.endif
114
.if defined(DSPAM_HOME_MODE)
115
CONFIGURE_ARGS+=	--with-dspam-home-mode=${DSPAM_HOME_MODE}
117
CONFIGURE_ARGS+=	--with-dspam-home-mode=${DSPAM_HOME_MODE}
116
.endif
118
PLIST_SUB+=	DSPAM_HOME=${DSPAM_HOME}
117
119
118
.if defined(DSPAM_OWNER)
120
.if defined(DSPAM_OWNER)
119
CONFIGURE_ARGS+=	--with-dspam-owner=${DSPAM_OWNER}
121
CONFIGURE_ARGS+=	--with-dspam-owner=${DSPAM_OWNER}
120
.endif
122
.endif
121
.if defined(DSPAM_GROUP)
123
.if defined(DSPAM_GROUP)
122
CONFIGURE_ARGS+=	--with-dspam-group=${DSPAM_HOME_GROUP}
124
CONFIGURE_ARGS+=	--with-dspam-group=${DSPAM_GROUP}
123
.endif
124
.if defined(DSPAM_MODE)
125
CONFIGURE_ARGS+=	--with-dspam-mode=${DSPAM_HOME_MODE}
126
.endif
125
.endif
126
# we set DSPAM_MODE at the end as some LDA whant specific mode
127
127
128
SED_SCRIPT=	-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
128
SED_SCRIPT=	-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
129
		-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
129
		-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
Lines 140-175 Link Here
140
CONFIGURE_ARGS+=	--enable-verbose-debug
140
CONFIGURE_ARGS+=	--enable-verbose-debug
141
.endif
141
.endif
142
142
143
# conf option
143
.if defined(WITH_BNR_DEBUG)
144
#.if defined(WITH_SYSTEM_LOGGING)
144
CONFIGURE_ARGS+=	--enable-bnr-debug
145
#CONFIGURE_ARGS+=	--enable-logging
145
.endif
146
#.else
147
#CONFIGURE_ARGS+=	--disable-system-logging
148
#.endif
149
150
# conf option
151
#.if defined(WITH_USER_LOGGING)
152
#CONFIGURE_ARGS+=	--enable-user-logging
153
#.else
154
#CONFIGURE_ARGS+=	--disable-user-logging
155
#.endif
156
157
# conf
158
#.if defined(WITH_SAT)
159
#CONFIGURE_ARGS+=	--enable-source-address-tracking
160
#.endif
161
162
# conf
163
#.if defined(PARSE_TO_HEADERS)
164
#CONFIGURE_ARGS+=	--enable-parse-to-headers
165
#.endif
166
146
167
.if defined(WITH_PREF_EXT)
147
.if defined(WITH_PREF_EXT)
168
CONFIGURE_ARGS+=	--enable-preferences-extension
148
CONFIGURE_ARGS+=	--enable-preferences-extension
169
.endif
149
.endif
170
150
151
####
152
# quick hack to build the package with daemon
153
.ifndef(WITHOUT_DAEMON)
154
WITH_DAEMON=	on
155
.endif
156
171
.ifdef(WITH_DAEMON)
157
.ifdef(WITH_DAEMON)
172
CONFIGURE_ARGS+=	--enable-daemon
158
CONFIGURE_ARGS+=	--enable-daemon
159
RC_DIR=		${PREFIX}/etc/rc.d
160
RC_SUFX=	.sh
161
PLIST_FILES+=	etc/rc.d/dspam${RC_SUFX}
162
SED_SCRIPT+=	-e 's,%%DAEMON%%,,g'
163
SED_RC_SCRIPT=	-e 's,%%PREFIX%%,${PREFIX},g' \
164
		-e 's,%%DSPAM_HOME%%,${DSPAM_HOME},g'
165
.else
166
SED_SCRIPT+=	-e ',%%DAEMON%%,D'
173
.endif
167
.endif
174
168
175
.if !defined(WITH_GRAHAM_BAYES)
169
.if !defined(WITH_GRAHAM_BAYES)
Lines 208-283 Link Here
208
CONFIGURE_ARGS+=	--enable-neural-networking
202
CONFIGURE_ARGS+=	--enable-neural-networking
209
.endif
203
.endif
210
204
211
#.if defined(WITH_HOMEDIR_DOT)
212
#CONFIGURE_ARGS+=	  --enable-homedir-dotfiles
213
#.endif
214
215
.if defined(WITH_USER_HOMEDIR)
205
.if defined(WITH_USER_HOMEDIR)
216
CONFIGURE_ARGS+=	--enable-homedir
206
CONFIGURE_ARGS+=	--enable-homedir
217
## XXXXXXXX
218
# to check incompatibility with CGI and warn user
219
# to install setuid root
220
.endif
207
.endif
221
208
222
# conf
223
#.if defined(WITH_OPT_IN)
224
#CONFIGURE_ARGS+=	  --enable-opt-in
225
#.endif
226
227
.if defined(WITH_TRUSTED_USERS)
209
.if defined(WITH_TRUSTED_USERS)
228
CONFIGURE_ARGS+=	--disable-trusted-user-security
210
CONFIGURE_ARGS+=	--disable-trusted-user-security
229
.endif
211
.endif
230
212
231
# conf
213
DBDRV_TOTAL_COUNT=	ooooooooo # 9
232
#.if defined(WITH_SPAM_SUBJ)
233
#CONFIGURE_ARGS+=	--enable-spam-subject
234
#.endif
235
236
# .conf option
237
#.if defined(WITH_SIGNATURE_HEADERS)
238
#CONFIGURE_ARGS+=	--enable-signature-headers
239
#SED_SCRIPT+=	-e 's,%%SIGHDR%%,,g'
240
#.else
241
#SED_SCRIPT+=	-e '/%%SIGHDR%%/D'
242
#.endif
243
244
# not supported anymore
245
#.if defined(SIGNATURE_ATACH)
246
#CONFIGURE_ARGS+=	--enable-signature-attachments
247
#.endif
248
249
#.if defined(WITH_WEBMAIL)
250
#CONFIGURE_ARGS+=	--enable-webmail
251
#.endif
252
253
DBDRV_TOTAL_COUNT=	ooooooo # 7
254
DBDRV_COUNT=	${DBDRV_TOTAL_COUNT}
214
DBDRV_COUNT=	${DBDRV_TOTAL_COUNT}
255
215
256
.if defined(WITH_MYSQL40)
257
WANT_MYSQL_VER=	40
258
#PKGNAMESUFFIX=	-mysql40
259
.elseif defined(WITH_MYSQL41)
260
WANT_MYSQL_VER=	41
261
#PKGNAMESUFFIX=	-mysql41
262
.endif
263
264
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41)
265
CONFIGURE_ARGS+=	--with-storage-driver=mysql_drv \
266
		--with-mysql-includes=${LOCALBASE}/include/mysql \
267
		--with-mysql-libraries=${LOCALBASE}/lib/mysql
268
PLIST_SUB+=	DB4="@comment "
269
PLIST_SUB+=	MYSQL=""
270
PLIST_SUB+=	PGSQL="@comment "
271
PLIST_SUB+=	SQLITE="@comment "
272
SED_SCRIPT+=	-e 's,%%MYSQL%%,,g'
273
SED_SCRIPT+=	-e '/%%PGSQL%%/D'
274
SED_SCRIPT+=	-e '/%%SQLITE%%/D'
275
DBDRV_COUNT:=	${DBDRV_COUNT:S/o//}
276
.if defined(WITH_MYSQL_COMPRESS)
277
CONFIGURE_ARGS+=	--enable-client-compression
278
.endif
279
.endif
280
281
.if defined(WITH_POSTGRESQL73)
216
.if defined(WITH_POSTGRESQL73)
282
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql73
217
LIB_DEPENDS+=	pq.3:${PORTSDIR}/databases/postgresql73
283
#BUILD_DEPENDS+= ${LIB_DEPENDS}
218
#BUILD_DEPENDS+= ${LIB_DEPENDS}
Lines 336-345 Link Here
336
DBDRV_COUNT:=	${DBDRV_COUNT:S/o//}
271
DBDRV_COUNT:=	${DBDRV_COUNT:S/o//}
337
.endif
272
.endif
338
273
339
.if ${DBDRV_TOTAL_COUNT}==${DBDRV_COUNT} || defined(WITH_SQLITE)
274
.if defined(WITH_SQLITE3)
340
# DBDRV_COUNT==!(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE) || defined(WITH_BDB))
275
HAVE_SQLITE=	yes
341
WITH_SQLITE=	on
276
LIB_DEPENDS+=	sqlite.3:${PORTSDIR}/databases/sqlite3
277
.endif
278
279
.if defined(WITH_SQLITE2)
280
HAVE_SQLITE=	yes
342
LIB_DEPENDS+=	sqlite.2:${PORTSDIR}/databases/sqlite2
281
LIB_DEPENDS+=	sqlite.2:${PORTSDIR}/databases/sqlite2
282
.endif
283
284
.if defined(HAVE_SQLITE)
343
CONFIGURE_ARGS+=	--with-storage-driver=sqlite_drv \
285
CONFIGURE_ARGS+=	--with-storage-driver=sqlite_drv \
344
	--with-sqlite-includes=${LOCALBASE}/include \
286
	--with-sqlite-includes=${LOCALBASE}/include \
345
	--with-sqlite-libraries=${LOCALBASE}/lib
287
	--with-sqlite-libraries=${LOCALBASE}/lib
Lines 354-359 Link Here
354
DBDRV_COUNT:=	${DBDRV_COUNT:S/o//}
296
DBDRV_COUNT:=	${DBDRV_COUNT:S/o//}
355
.endif
297
.endif
356
298
299
.ifdef(WITH_MYSQL40)
300
WANT_MYSQL_VER=	40
301
#PKGNAMESUFFIX=	-mysql40
302
.elifdef(WITH_MYSQL41)
303
WANT_MYSQL_VER=	41
304
#PKGNAMESUFFIX=	-mysql41
305
.elifdef(WITH_MYSQL50)
306
WANT_MYSQL_VER=	50
307
#PKGNAMESUFFIX=	-mysql50
308
.endif
309
310
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) || defined(WITH_MYSQL50) || ${DBDRV_TOTAL_COUNT}==${DBDRV_COUNT}
311
USE_MYSQL=	yes
312
CONFIGURE_ARGS+=	--with-storage-driver=mysql_drv \
313
		--with-mysql-includes=${LOCALBASE}/include/mysql \
314
		--with-mysql-libraries=${LOCALBASE}/lib/mysql
315
PLIST_SUB+=	DB4="@comment "
316
PLIST_SUB+=	MYSQL=""
317
PLIST_SUB+=	PGSQL="@comment "
318
PLIST_SUB+=	SQLITE="@comment "
319
SED_SCRIPT+=	-e 's,%%MYSQL%%,,g'
320
SED_SCRIPT+=	-e '/%%PGSQL%%/D'
321
SED_SCRIPT+=	-e '/%%SQLITE%%/D'
322
DBDRV_COUNT:=	${DBDRV_COUNT:S/o//}
323
.	if defined(WITH_MYSQL_COMPRESS)
324
CONFIGURE_ARGS+=	--enable-client-compression
325
.	endif
326
SED_RC_SCRIPT+=		-e 's,%%MYSQL%%,mysql,g'
327
.else
328
SED_RC_SCRIPT+=		-e 's,%%MYSQL%%,,'
329
.endif
330
357
.if defined(WITH_VIRT_USERS)
331
.if defined(WITH_VIRT_USERS)
358
CONFIGURE_ARGS+=	--enable-virtual-users
332
CONFIGURE_ARGS+=	--enable-virtual-users
359
.endif
333
.endif
Lines 369-388 Link Here
369
.endif
343
.endif
370
344
371
# add one 'o' here for each new LDA
345
# add one 'o' here for each new LDA
372
LDA_TOTAL_COUNT=	oooooo	#6
346
LDA_TOTAL_COUNT=	ooooooo	# 7
373
LDA_COUNT=	${LDA_TOTAL_COUNT}
347
LDA_COUNT=	${LDA_TOTAL_COUNT}
374
348
349
.if defined(WITH_CYRUS21_LDA)
350
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd2
351
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
352
LDA_COUNT:=	${LDA_COUNT:S/o//}
353
.endif
354
355
.if defined(WITH_CYRUS22_LDA)
356
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd22
357
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
358
LDA_COUNT:=	${LDA_COUNT:S/o//}
359
.endif
360
361
.if defined(WITH_EXIM_LDA)
362
.	if defined(WITH_MYSQL40) || (WITH_MYSQL41)
363
_EXIM_EXT=	-mysql
364
.	elseif defined(WITH_POSTGRESQL74) || defined(WITH_POSTGRESQL73)
365
####
366
### fix me for pg 7.3: how to pass the db option to exim port ?
367
###
368
_EXIM_EXT=	-postgresql
369
.	endif
370
RUN_DEPENDS+=	exim:${PORTSDIR}/mail/exim${_EXIM_EXT}
371
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/exim'
372
LDA_COUNT:=	${LDA_COUNT:S/o//}
373
.endif
374
375
.if defined(WITH_MAILDROP_LDA)
375
.if defined(WITH_MAILDROP_LDA)
376
RUN_DEPENDS+=	maildrop:${PORTSDIR}/mail/maildrop
376
RUN_DEPENDS+=	maildrop:${PORTSDIR}/mail/maildrop
377
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/maildrop -d $$u'
377
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/maildrop -d $$u'
378
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/maildrop'
379
LDA_COUNT:=	${LDA_COUNT:S/o//}
378
LDA_COUNT:=	${LDA_COUNT:S/o//}
380
.endif
379
.endif
381
380
382
.if defined(WITH_PROCMAIL_LDA)
381
.if defined(WITH_PROCMAIL_LDA)
383
RUN_DEPENDS+=	procmail:${PORTSDIR}/mail/procmail
382
RUN_DEPENDS+=	procmail:${PORTSDIR}/mail/procmail
384
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/procmail -d $$u'
383
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/procmail -d $$u'
385
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/procmail'
386
LDA_COUNT:=	${LDA_COUNT:S/o//}
384
LDA_COUNT:=	${LDA_COUNT:S/o//}
387
.endif
385
.endif
388
386
Lines 392-446 Link Here
392
.else
390
.else
393
.	if defined(WITH_SENDMAIL_LDA) && exists(${LOCALBASE}/sbin/sendmail)
391
.	if defined(WITH_SENDMAIL_LDA) && exists(${LOCALBASE}/sbin/sendmail)
394
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/sendmail'
392
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/sendmail'
395
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/sendmail'
396
LDA_COUNT:=	${LDA_COUNT:S/o//}
393
LDA_COUNT:=	${LDA_COUNT:S/o//}
397
.	endif
394
.	endif
398
.endif
395
.endif
399
396
400
.if defined(WITH_CYRUS21_LDA)
401
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd2
402
#CONFIGURE_ARGS+=\
403
#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u'
404
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
405
LDA_COUNT:=	${LDA_COUNT:S/o//}
406
.endif
407
408
.if defined(WITH_CYRUS22_LDA)
409
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd22
410
#CONFIGURE_ARGS+=\
411
#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u'
412
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
413
LDA_COUNT:=	${LDA_COUNT:S/o//}
414
.endif
415
416
.if defined(WITH_SENDMAIL)
397
.if defined(WITH_SENDMAIL)
417
CONFIGURE_ARGS+=	--with-dspam-mode=4511
398
DSPAM_MODE=	4511
418
.endif
399
.endif
419
400
420
.if defined(WITH_POSTFIX_MBC)
401
.if defined(WITH_POSTFIX_MBC)
421
CONFIGURE_ARGS+=	--with-dspam-mode=4511
402
DSPAM_MODE=	4511
422
SED_SCRIPT+=	-e 's,%%POSTFIX_MBC%%,,g'
403
SED_SCRIPT+=	-e 's,%%POSTFIX_MBC%%,,g'
423
.else
404
.else
424
SED_SCRIPT+=	-e '/%%POSTFIX_MBC%%/D'
405
SED_SCRIPT+=	-e '/%%POSTFIX_MBC%%/D'
425
.endif
406
.endif
426
407
427
.if defined(WITH_QMAIL)
408
.if defined(WITH_QMAIL)
428
CONFIGURE_ARGS+=	--with-dspam-mode=4511
409
DSPAM_MODE=	4511
429
.endif
410
.endif
430
411
431
# conf
412
.if defined(DSPAM_MODE)
432
#.if defined(WITH_BROKEN_ERR_CODES)
413
CONFIGURE_ARGS+=	--with-dspam-mode=${DSPAM_MODE}
433
#CONFIGURE_ARGS+=	--enable-broken-return-codes
434
#.endif
435
436
# conf
437
#.if defined(WITH_BROKEN_MTA)
438
#CONFIGURE_ARGS+=	--enable-broken-mta
439
#.endif
440
441
# conf option
442
.if defined(QUARANTINE_AGENT)
443
CONFIGURE_ARGS+=	--with-quarantine-agent=${QUARANTINE_AGENT}
444
.endif
414
.endif
445
415
446
.if defined(WITH_CGI)
416
.if defined(WITH_CGI)
Lines 480-518 Link Here
480
	README.pop3filter README.postfix README.qmail README.sendmail \
450
	README.pop3filter README.postfix README.qmail README.sendmail \
481
	RELEASE.NOTES
451
	RELEASE.NOTES
482
452
483
pre-extract:
453
pre-everything::
484
BAD_OPT=	`${PKG_VERSION} -t ${_OPTIONS_READ} ${PKGNAME}`
485
486
pre-patch:
487
	@${ECHO_CMD} ""
454
	@${ECHO_CMD} ""
455
	@${ECHO_CMD} "Last ${FILESDIR}/UPDATING entry:"
456
	@${GREP} -B 1 -A ${UPD_LINE_NO} ${PKGNAME} ${FILESDIR}/UPDATING
457
	@${ECHO_CMD} ""
458
459
pre-extract:
460
.if defined(WITH_EXIM_LDA) && defined(WITH_POSTGRESQL73)
488
	@${ECHO_CMD} "******************************************************************"
461
	@${ECHO_CMD} "******************************************************************"
489
	@${ECHO_CMD} "Warning: If upgrading please proceed as stated in"
462
	@${ECHO_CMD} "You have both EXIM_LDA and POSTGRESQL73 defined. To have exim"
490
	@${ECHO_CMD} "${FILESDIR}/UPDATING"
463
	@${ECHO_CMD} "built with the right pgsql please hit Ctrl-C now and do:"
464
	@${ECHO_CMD} "cd ${PORTSDIR}/mail/exim-postgresql && make POSTGRESQL_PORT=postgresql73 inst
465
	@${ECHO_CMD} "then return here and do:"
466
	@${ECHO_CMD} "make clean && make install"
491
	@${ECHO_CMD} "******************************************************************"
467
	@${ECHO_CMD} "******************************************************************"
492
	@${ECHO_CMD} ""
468
	@${ECHO_CMD} ""
469
.endif
493
	@${ECHO_CMD} "Define vars below before make-ing if you need:"
470
	@${ECHO_CMD} "Define vars below before make-ing if you need:"
494
	@${ECHO_CMD} ""
471
	@${ECHO_CMD} ""
495
	@${ECHO_CMD} "SIGNATURE_LIFE (default 15)"
472
	@${ECHO_CMD} "SIGNATURE_LIFE=${SIGNATURE_LIFE} (default 15)"
496
	@${ECHO_CMD} "DSPAM_OWNER (default: root)"
473
	@${ECHO_CMD} "DSPAM_OWNER=${DSPAM_OWNER} (default: root)"
497
	@${ECHO_CMD} "DSPAM_GROUP (default: mail)"
474
	@${ECHO_CMD} "DSPAM_GROUP=${DSPAM_GROUP} (default: mail)"
498
	@${ECHO_CMD} "DSPAM_MODE"
475
	@${ECHO_CMD} "DSPAM_MODE=${DSPAM_MODE}"
499
	@${ECHO_CMD} "DSPAM_HOME (default: ${_VAR_DIR}/dspam)"
476
	@${ECHO_CMD} "DSPAM_HOME=${DSPAM_HOME} (default: ${_VAR_DIR}/db/dspam)"
500
	@${ECHO_CMD} "DSPAM_HOME_OWNER"
477
	@${ECHO_CMD} "DSPAM_HOME_OWNER=${DSPAM_HOME_OWNER}"
501
	@${ECHO_CMD} "DSPAM_HOME_GROUP"
478
	@${ECHO_CMD} "DSPAM_HOME_GROUP=${DSPAM_HOME_GROUP}"
502
	@${ECHO_CMD} "DSPAM_HOME_MODE (default: 0660)"
479
	@${ECHO_CMD} "DSPAM_HOME_MODE=${DSPAM_HOME_MODE} (default: 0770)"
503
	@${ECHO_CMD} "LOG_DIR (default: ${_VAR_DIR}/log/dspam)"
480
	@${ECHO_CMD} "LOG_DIR=${LOG_DIR} (default: ${_VAR_DIR}/log/dspam)"
504
	@${ECHO_CMD} "QUARANTINE_AGENT (default: mail.local)"
505
.	if defined(WITH_CGI)
481
.	if defined(WITH_CGI)
506
		@${ECHO_CMD} "Define CGI_PATH before make-ing if you need the CGI files"
482
		@${ECHO_CMD} "Define CGI_PATH before make-ing if you need the CGI files"
507
		@${ECHO_CMD} "installed in other place that this installation's default"
483
		@${ECHO_CMD} "installed in other place that this installation's default"
508
		@${ECHO_CMD} "${PREFIX}/www/vhosts/dspam"
484
		@${ECHO_CMD} "${PREFIX}/www/vhosts/dspam"
509
.	endif
485
.	endif
486
	@${ECHO_CMD} "Define WITHOUT_DAEMON if not using OPTIONS and do not whant daemon."
487
510
.for old_opt in MAILDROP PROCMAIL TRAD_BAYES ALT_BAYES WITH_SPAM_SUBJ \
488
.for old_opt in MAILDROP PROCMAIL TRAD_BAYES ALT_BAYES WITH_SPAM_SUBJ \
511
	USER_LOGGING SYSTEM_LOGGING WEBMAIL OPT_IN SAT PARSE_TO_HEADERS \
489
	USER_LOGGING SYSTEM_LOGGING WEBMAIL OPT_IN SAT PARSE_TO_HEADERS \
512
	BROKEN_MTA BROKEN_ERR_CODES SIGNATURE_HEADERS SIGNATURE_ATACH \
490
	BROKEN_MTA BROKEN_ERR_CODES SIGNATURE_HEADERS SIGNATURE_ATACH \
513
	HOMEDIR_DOT SIGNATURE_LIFE
491
	HOMEDIR_DOT SIGNATURE_LIFE SQLITE QUARANTINE_AGENT
514
.	if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt}) || ${BAD_OPT}=='<'
492
.	if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt})
515
#.	if defined(CUCU)
516
	@${ECHO_CMD} ""
493
	@${ECHO_CMD} ""
517
	@${ECHO_CMD} "******************************************************************"
494
	@${ECHO_CMD} "******************************************************************"
518
	@${ECHO_CMD} "******************************************************************"
495
	@${ECHO_CMD} "******************************************************************"
Lines 535-550 Link Here
535
.endfor
512
.endfor
536
513
537
post-patch:
514
post-patch:
538
	${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \
515
	@${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \
539
		s|%%PKGNAME%%|${PKGNAME}|; s|%%MAINTAINER%%|${MAINTAINER}|; \
516
		s|%%PKGNAME%%|${PKGNAME}|; s|%%MAINTAINER%%|${MAINTAINER}|; \
540
		s|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g; \
517
		s|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g; \
541
		s|-ldb-4.1|-ldb41|g;'  ${WRKSRC}/configure
518
		s|-ldb-4.1|-ldb41|g;'  ${WRKSRC}/configure
542
	@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
519
	@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
543
		 ${WRKSRC}/Makefile.in
520
		${WRKSRC}/Makefile.in
521
544
	@${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
522
	@${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
545
	@${REINPLACE_CMD} -e 's|WHERE CURRENT_DATE - created_on > 14;|WHERE CURRENT_DATE - created_on > ${SIGNATURE_LIFE};|'  ${WRKSRC}/src/tools.pgsql_drv/purge.sql
523
	@${REINPLACE_CMD} -e 's|WHERE CURRENT_DATE - created_on > 14;|WHERE CURRENT_DATE - created_on > ${SIGNATURE_LIFE};|'  ${WRKSRC}/src/tools.pgsql_drv/purge.sql
546
	@${REINPLACE_CMD} -e 's|where SYSDATE-created_on > 14|where SYSDATE-created_on > ${SIGNATURE_LIFE};|'  ${WRKSRC}/src/tools.ora_drv/purge.sql
524
	@${REINPLACE_CMD} -e 's|where SYSDATE-created_on > 14|where SYSDATE-created_on > ${SIGNATURE_LIFE};|'  ${WRKSRC}/src/tools.ora_drv/purge.sql
547
	@${REINPLACE_CMD} -e "s|where date('now')-date(created_on) > 14;|where date('now')-date(created_on) > ${SIGNATURE_LIFE};|"  ${WRKSRC}/src/tools.sqlite_drv/purge.sql
525
	@${REINPLACE_CMD} -e "s|where date('now')-date(created_on) > 14;|where date('now')-date(created_on) > ${SIGNATURE_LIFE};|"  ${WRKSRC}/src/tools.sqlite_drv/purge.sql
526
.if defined(WITH_DAEMON)
527
	@${CP} ${FILESDIR}/dspam.rc ${WRKSRC}
528
	@${REINPLACE_CMD} ${SED_RC_SCRIPT} ${WRKSRC}/dspam.rc
529
.endif
548
530
549
pre-configure:
531
pre-configure:
550
	@${ECHO_CMD}
532
	@${ECHO_CMD}
Lines 558-597 Link Here
558
	@${ECHO_CMD} "You can use one and only one database back-end at once."
540
	@${ECHO_CMD} "You can use one and only one database back-end at once."
559
	@${FALSE}
541
	@${FALSE}
560
.endif
542
.endif
561
.if defined(WITH_NEURAL_NET) && !(defined(WITH_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74))
543
.if defined(WITH_NEURAL_NET) && !(defined(USE_MYSQL) || defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74))
562
	@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
544
	@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
563
	@${FALSE}
545
	@${FALSE}
564
.endif
546
.endif
565
.if defined(WITH_VIRT_USERS) && !(defined(WITH_MYSQL) || \
547
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
566
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE))
548
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE))
567
	@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
549
	@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
568
	@${FALSE}
550
	@${FALSE}
569
.endif
551
.endif
570
.if defined(WITH_PREF_EXT) && !( defined(WITH_MYSQL) || \
552
.if defined(WITH_PREF_EXT) && !( defined(USE_MYSQL) || \
571
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
553
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
572
	@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
554
	@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
573
	@${FALSE}
555
	@${FALSE}
574
.endif
556
.endif
557
.if defined(WITH_DAEMON) && !( defined(USE_MYSQL) || \
558
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
559
	@${ECHO_CMD} "You need MySQL or Postgres for Daemon mode, because multithreading support is needed"
560
	@${FALSE}
561
.endif
575
.if defined(WITH_USER_HOMEDIR) && defined(WITH_CGI)
562
.if defined(WITH_USER_HOMEDIR) && defined(WITH_CGI)
576
	@${ECHO_CMD} "USER_HOMEDIR and CGI are incopatible"
563
	@${ECHO_CMD} "USER_HOMEDIR and CGI are incopatible"
577
	@${FALSE}
564
	@${FALSE}
578
.endif
565
.endif
579
566
580
post-install:
567
post-install:
581
### to patch dspam.conf
568
	${CP} ${WRKSRC}/src/dspam.conf ${WRKSRC}/src/dspam.conf.sample
582
	${REINPLACE_CMD} -e 's|/usr/bin/|${PREFIX}/bin/|g'  ${WRKSRC}/src/dspam.conf
569
	cd ${WRKSRC}/src/ && \
583
	@${CP}  ${WRKSRC}/src/dspam.conf  ${WRKSRC}/src/dspam.conf.sample
570
		${INSTALL} -o ${DSPAM_OWNER} -g ${DSPAM_GROUP} -m 0640 \
584
	cd  ${WRKSRC}/src/ && \
571
			dspam.conf.sample ${PREFIX}/etc
585
		${INSTALL_DATA}	dspam.conf.sample ${PREFIX}/etc
572
.if defined(WITH_DAEMON)
586
#	@${MKDIR} ${LOG_DIR}
573
	${INSTALL_SCRIPT} ${WRKSRC}/dspam.rc ${RC_DIR}/dspam${RC_SUFX}
587
#	@${MKDIR} ${DSPAM_HOME}
574
.endif
588
575
589
########
576
########
590
# stupid hack until I figure out where/how to patch
577
# stupid hack until I figure out where/how to patch
591
	@${MKDIR} ${PREFIX}/libdata/pkgconfig
578
	@${MKDIR} ${PREFIX}/libdata/pkgconfig
592
	@${MV} ${PREFIX}/lib/pkgconfig/dspam.pc ${PREFIX}/libdata/pkgconfig/dspam.pc
579
	@${MV} ${PREFIX}/lib/pkgconfig/dspam.pc ${PREFIX}/libdata/pkgconfig/dspam.pc
593
580
594
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41)
581
.if defined(USE_MYSQL)
595
	@${MKDIR} ${EXAMPLESDIR}/mysql
582
	@${MKDIR} ${EXAMPLESDIR}/mysql
596
	cd  ${WRKSRC}/src/tools.mysql_drv && \
583
	cd  ${WRKSRC}/src/tools.mysql_drv && \
597
		${INSTALL_DATA} README mysql_objects-space.sql \
584
		${INSTALL_DATA} README mysql_objects-space.sql \
Lines 605-613 Link Here
605
	@${MKDIR} ${EXAMPLESDIR}/pgsql
592
	@${MKDIR} ${EXAMPLESDIR}/pgsql
606
	@cd  ${WRKSRC}/src/tools.pgsql_drv && \
593
	@cd  ${WRKSRC}/src/tools.pgsql_drv && \
607
		${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql
594
		${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql
608
#	${INSTALL_DATA} ${FILESDIR}/pgsql.data ${EXAMPLESDIR}/pgsql
609
.endif
595
.endif
610
.if defined(WITH_SQLITE)
596
.if defined(HAVE_SQLITE)
611
	@${MKDIR} ${EXAMPLESDIR}/sqlite
597
	@${MKDIR} ${EXAMPLESDIR}/sqlite
612
	cd  ${WRKSRC}/src/tools.sqlite_drv && \
598
	cd  ${WRKSRC}/src/tools.sqlite_drv && \
613
		${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/sqlite
599
		${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/sqlite
Lines 632-639 Link Here
632
		${INSTALL_DATA} default.prefs ${CGI_PATH}/default.prefs.sample
618
		${INSTALL_DATA} default.prefs ${CGI_PATH}/default.prefs.sample
633
	cd  ${WRKSRC}/cgi && \
619
	cd  ${WRKSRC}/cgi && \
634
		${INSTALL_DATA} admins ${CGI_PATH}/admins.sample
620
		${INSTALL_DATA} admins ${CGI_PATH}/admins.sample
635
#	cd  ${WRKSRC}/cgi && \
636
#		${INSTALL_DATA} configure.pl.sample ${CGI_PATH}/configure.pl.sample
637
	@${MKDIR} ${CGI_PATH}/templates && cd  ${WRKSRC}/cgi/templates && \
621
	@${MKDIR} ${CGI_PATH}/templates && cd  ${WRKSRC}/cgi/templates && \
638
		${INSTALL_DATA} *.html ${CGI_PATH}/templates/
622
		${INSTALL_DATA} *.html ${CGI_PATH}/templates/
639
.endif
623
.endif
(-)dspam-devel/distinfo (-2 lines)
Lines 1-2 Link Here
1
MD5 (dspam-devel.3.3.0.a.20041201.1330.tar.gz) = aa5c742f12e9ada86d94af49f56b5ce3
2
SIZE (dspam-devel.3.3.0.a.20041201.1330.tar.gz) = 626853
(-)dspam-devel/files/UPDATING (-4 / +51 lines)
Lines 1-5 Link Here
1
This file documents some of the problems you may encounter when
1
This file documents some of the problems you may encounter when
2
upgrading dspam port.  I will try our best to minimize these disruptions,
2
upgrading dspam port.  I will try my best to minimize these disruptions,
3
but sometimes they are unavoidable.
3
but sometimes they are unavoidable.
4
4
5
You should get into the habit of checking this file for changes each
5
You should get into the habit of checking this file for changes each
Lines 10-21 Link Here
10
in the port directory:
10
in the port directory:
11
make extract;  more `find . -type f -maxdepth 2 -name UPGRADING`
11
make extract;  more `find . -type f -maxdepth 2 -name UPGRADING`
12
12
13
###########################################################################
14
# dspam-devel-3.3.4
15
#
16
17
Users on 4.x are kindly asked to report problems ASAP
18
I would like to fix them before the freeze on 31. Thanks !
19
20
The daemon mode seems to be completead now, so the port act like it should:
21
- if enabled with WITH_DEAMON we install the rc script; to start it at
22
boot put 'dspam_enable="YES"' in /etc/rc.conf and set the appropriate
23
options in dspam.conf
24
- read section "2.3 Client/Server Mode" from dspam README to learn how to
25
use dspam in daemon mode
26
- a simple portupgrade from previous versions will work with no problems
27
with your current setup, even if compiled with WITH_DEAMON (default)
28
29
- change default DB back-end to MySQL to make daemon mode work for package
30
building
31
- add MySQL v5.0.x support -- MYSQL50
32
(based on ports/74761 by Gea-Suan Lin <gslin@netnews.NCTU.edu.tw>)
33
- USE_MYSQL and have make describe output right
34
35
- change of name: SQLITE --> SQLITE2, as we now have sqlite3 support
36
- add Sqlite v3.x support -- SQLITE3
37
- add BNR_DEBUG option
38
- drop QUARANTINE_AGENT as is not supported by ./configure anymore and
39
set in dspam.conf UntrustedDeliveryAgent and QuarantineAgent to default to
40
TrustedDeliveryAgent, but leave them commented out
41
(ports/75548 by Julien Gabel)
42
- change default DSPAM_HOME_MODE to 0770
43
(ports/75549 by Julien Gabel <jpeg@thilelli.net>)
44
- DSPAM_HOME_{OWNER,GROUP} default to DSPAM_{OWNER,GROUP}
45
- default maximum message size to 300KB in dspam.conf
46
- correct long-standing copy/paste bug (DSPAM_{GROUP,MODE} were set to
47
DSPAM_HOME_{GROUP,MODE})
48
- USE_MYSQL and have make describe output right
49
- add support for exim [2] which we build with the same database back-end
50
as dspam if possible ( suggested, incorrectly, in ports/74762 by 
51
Shahbaz Javeed <sjaveed@adderpit.com> )
52
- fix PREF_EXT and BDB4 cases as well in our Makefile
53
54
55
#############################################################################
56
# dspam-devel=3.3.0.a.20041203.1245_1 (entry added post-factum, it was an 
57
#                   automated update approved by me but not under my control)
58
#
59
60
- chase dependecy for sqlite
61
13
62
14
############################################################################
63
############################################################################
15
# dspam-devel-3.3.0.a.20041201.1330
64
# dspam-devel-3.3.0.a.20041201.1330
16
#
65
#
17
66
18
Say hello to the daemonized dspam! Enable it at compile-time with DAEMON option.
67
Say hello to the daemonized dspam! Enble it at compile-time with DAEMON option.
19
68
20
- it speaks LMTP:
69
- it speaks LMTP:
21
LHLO
70
LHLO
Lines 35-42 Link Here
35
- to do next: client
84
- to do next: client
36
85
37
- remember that all this is experimental and it may change at any time.
86
- remember that all this is experimental and it may change at any time.
38
39
- fix PREX_EXT and BDB4 handling in the port Makefile to really enable them.
40
87
41
88
42
############################################################################
89
############################################################################
(-)dspam-devel/files/dspam.rc (+41 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# $FreeBSD$
4
#
5
6
# PROVIDE: dspam
7
# REQUIRE: LOGIN NETWORKING SERVERS %%MYSQL%%
8
# BEFORE: mail
9
# KEYWORD: shutdown
10
11
#
12
# Add the following lines to /etc/rc.conf[.local] to enable dspam:
13
#
14
# dspam_enable="YES"
15
#
16
17
. /etc/rc.subr
18
19
name=dspam
20
rcvar=`set_rcvar`
21
22
command=%%PREFIX%%/bin/${name}
23
command_args="--daemon  > /dev/null 2>&1 &"
24
pidfile=/var/run/${name}.pid
25
required_dirs=%%DSPAM_HOME%%
26
required_files=%%PREFIX%%/etc/${name}.conf
27
28
extra_commands=reload
29
30
reload()
31
{
32
 kill -HUP `cat $pidfile`
33
}
34
35
# set defaults
36
37
dspam_enable=${dspam_enable:-"NO"}
38
#dspam_flags=${dspam_flags:-"--daemon &"}
39
40
load_rc_config $name
41
run_rc_command "$1"
(-)dspam-devel/files/patch-src_dspam.conf.in (+55 lines)
Line 0 Link Here
1
--- src/dspam.conf.in.orig	Thu Dec 30 04:05:39 2004
2
+++ src/dspam.conf.in	Thu Dec 30 04:14:16 2004
3
@@ -34,7 +34,7 @@
4
 # the user DSPAM is processing mail for. This configuration parameter is only 
5
 # necessary if you plan on allowing untrusted processing.
6
 #
7
-#UntrustedDeliveryAgent "/usr/bin/procmail -d %u"
8
+#UntrustedDeliveryAgent "@delivery_agent@"
9
 
10
 #
11
 # Quarantine Agent: DSPAM's default behavior is to quarantine all mail it 
12
@@ -42,7 +42,7 @@
13
 # a quarantine agent which will be called with all messages DSPAM thinks is
14
 # spam. Use %u to specify the user DSPAM is processing mail for.
15
 #
16
-#QuarantineAgent	"/usr/bin/procmail -d spam"
17
+#QuarantineAgent	"@delivery_agent@"
18
 
19
 #
20
 # OnFail: What to do if local delivery or quarantine should fail. If set
21
@@ -169,7 +169,7 @@
22
 # Storage driver settings: Specific to a particular storage driver. Uncomment
23
 # the configuration specific to your installation, if applicable.
24
 #
25
-#MySQLServer    	/var/lib/mysql/mysql.sock
26
+#MySQLServer    	/tmp/mysql.sock
27
 #MySQLPort
28
 #MySQLUser 	     	dspam
29
 #MySQLPass    		changeme
30
@@ -375,6 +375,7 @@
31
 # without processing. Value is in bytes.
32
 #
33
 #MaxMessageSize 4194304
34
+MaxMessageSize 307200
35
 
36
 #
37
 # Daemonized Server: If you are running DSPAM as a daemonized server using
38
@@ -388,6 +389,7 @@
39
 #ServerQueueSize	32
40
 #ServerPass.Relay1	"secret"
41
 #ServerPass.Relay2	"password"
42
+# keep this is sync with /usr/local/etc/rc.d/dspam.rc script
43
 #ServerPID		/var/run/dspam.pid
44
 
45
 # If you wish to use a local domain socket instead of a TCP socket, uncomment
46
@@ -395,7 +397,8 @@
47
 # you are running the client and server on the same machine, as it eliminates
48
 # much of the bandwidth overhead.
49
 #
50
-#ServerDomainSocketPath  "/tmp/dspam.sock"
51
+# keep this is sync with /usr/local/etc/rd.d/dspam.rc script
52
+#ServerDomainSocketPath  "/var/run/dspam.sock"
53
 
54
 #
55
 # Client Mode: If you are running DSPAM in client/server mode, uncomment and
(-)dspam-devel/pkg-message (-20 / +10 lines)
Lines 13-25 Link Here
13
%%MYSQL%% See %%EXAMPLESDIR%%/mysql/README
13
%%MYSQL%% See %%EXAMPLESDIR%%/mysql/README
14
%%MYSQL%% for instructions on how to configure DSPAM - MySQL interaction.
14
%%MYSQL%% for instructions on how to configure DSPAM - MySQL interaction.
15
%%MYSQL%%
15
%%MYSQL%%
16
%%MYSQL%% BACKUP FIRST !!!
17
%%MYSQL%%
18
%%MYSQL%% To modify a 2.x database use and use it with dspam 3.x use:
19
%%MYSQL%% %%EXAMPLESDIR%%/mysql/2x_to_3x_db.sql
20
%%MYSQL%% To modify a 3.1.0  *mysql4.0* use :
21
%%MYSQL%% %%EXAMPLESDIR%%/mysql/310_to_320.my.sql
22
%%MYSQL%%
23
%%PGSQL%%
16
%%PGSQL%%
24
%%PGSQL%% See %%EXAMPLESDIR%%/pgsql/README
17
%%PGSQL%% See %%EXAMPLESDIR%%/pgsql/README
25
%%PGSQL%% for instructions on how to configure PostrgreSQL
18
%%PGSQL%% for instructions on how to configure PostrgreSQL
Lines 58-84 Link Here
58
%%CGI%% See %%DOCSDIR%%/README 
51
%%CGI%% See %%DOCSDIR%%/README 
59
%%CGI%% especially the CGI and Trusted Users sections for more info.
52
%%CGI%% especially the CGI and Trusted Users sections for more info.
60
%%CGI%% If you have problems (after upgrading) check permissions.
53
%%CGI%% If you have problems (after upgrading) check permissions.
54
%%DAEMON%%
55
%%DAEMON%% To enable the dspam deamon put dspam_enable="YES" in your
56
%%DAEMON%% /etc/rc.conf
57
61
58
62
  See %%DOCSDIR%%/RELEASE.NOTES 
59
  See %%DOCSDIR%%/RELEASE.NOTES 
63
  for new things in this %%PKGNAME%% and 
60
  for new things in this %%PKGNAME%% and 
64
  %%DOCSDIR%%/CHANGELOG
61
  %%DOCSDIR%%/CHANGELOG
65
  for the full list of changes.
62
  for the full list of changes.
66
  Preference extensions are NOT yet integrated in this port, 
67
  feel free to test and send patches.
68
69
 ***************************** WARNING: ***************************************
70
 Almost everything regarding how dspam must be configured has changed.
71
 If you are upgrading from 2.x or 3.x be sure to read
72
 %%DOCSDIR%%/UPDATING
73
 ******************************************************************************
74
63
75
 ---- %%PKGNAME%% is considered to be a DEVELOPMENT release.  ---
64
 ---- %%PKGNAME%% is considered to be a DEVELOPMENT release.  ---
76
 Reporting problems, asking questions:
65
 Reporting problems, asking questions:
77
 - small typos, etc. to the maintainer
66
 - FreeBSD specific port-related problems/questions/paches: maintainer 
78
 - FreeBSD specific port-related problems/questions: ports@, maintainer cc'ed
67
(and ports@ if you fell the need); send-pr only if you get no timely reply
79
 - FreeBSD specific patches, doc enhancements: send-pr maintainer cc'ed
68
 - dspam specific questions: dspam/dspam-dev mailling list (maintainer cc'ed 
80
 - dspam specific questions: dspam mailling list (maintainer cc'ed if you like)
69
 if you like)
81
 - dspam specific patches: dspam/dspam-dev mailling list (maintainer cc'ed if you like)
70
 - dspam specific patches: dspam/dspam-dev mailling list (maintainer cc'ed if 
71
 you like)
82
 Please be sure to include in your email/pr relevant information such as:
72
 Please be sure to include in your email/pr relevant information such as:
83
 uname -a, dspam --version, /var/db/ports/dspam-devel/options, MTA setup.
73
 uname -a, dspam --version, /var/db/ports/dspam-devel/options, MTA setup.
84
 If needed rebuild WITH_DEBUG and to turn on debugging see DebugOpt in dsapm.conf
74
 If needed rebuild WITH_DEBUG and to turn on debugging see DebugOpt in dsapm.conf
(-)dspam-devel/pkg-plist (+3 lines)
Lines 1-4 Link Here
1
bin/dspam
1
bin/dspam
2
bin/dspamc
2
bin/dspam_2sql
3
bin/dspam_2sql
3
bin/dspam_admin
4
bin/dspam_admin
4
bin/dspam_clean
5
bin/dspam_clean
Lines 8-18 Link Here
8
bin/dspam_genaliases
9
bin/dspam_genaliases
9
bin/dspam_merge
10
bin/dspam_merge
10
bin/dspam_stats
11
bin/dspam_stats
12
@unexec if cmp -s %D/etc/dspam.conf %D/etc/dspam.conf.sample; then rm -f %D/etc/dspam.conf; fi
11
etc/dspam.conf.sample
13
etc/dspam.conf.sample
12
include/dspam/buffer.h
14
include/dspam/buffer.h
13
include/dspam/config.h
15
include/dspam/config.h
14
include/dspam/decode.h
16
include/dspam/decode.h
15
include/dspam/error.h
17
include/dspam/error.h
18
include/dspam/heap.h
16
include/dspam/lht.h
19
include/dspam/lht.h
17
include/dspam/libdspam.h
20
include/dspam/libdspam.h
18
include/dspam/libdspam_objects.h
21
include/dspam/libdspam_objects.h

Return to bug 75647