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

(-)dspam/Makefile (-142 / +38 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	dspam
8
PORTNAME=	dspam
9
PORTVERSION=	3.2.3${SNAP_DATE}
9
PORTVERSION=	3.2.3${SNAP_DATE}
10
PORTREVISION=	1
10
PORTREVISION=	0
11
CATEGORIES=	mail
11
CATEGORIES=	mail
12
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/dspam/sources/
12
MASTER_SITES=	http://people.tecnik93.com/~itetcu/FreeBSD/ports/dspam/sources/
13
DISTFILES=	dspam.3.2.3.cvs.stable${SNAP_DATE}.tar.gz
13
DISTFILES=	dspam.3.2.3.cvs.stable${SNAP_DATE}.tar.gz
Lines 17-31 Link Here
17
17
18
WRKSRC=		${WRKDIR}/dspam-cvs-stable${SNAP_DATE}
18
WRKSRC=		${WRKDIR}/dspam-cvs-stable${SNAP_DATE}
19
19
20
SNAP_DATE=	.20041218.2100
20
SNAP_DATE=	.20041229.1945
21
21
22
## debug / log / admin options
22
## debug / log / admin options
23
OPTIONS=	DEBUG "Enable debugging logging" on
23
OPTIONS=	DEBUG "Enable debugging logging" on
24
OPTIONS+=	VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
24
OPTIONS+=	VERBOSE_DEBUG "Enable debug in LOGDIR/dspam.debug" off
25
#OPTIONS+=	USER_LOGGING	"Log mail in DSPAM_HOME/data/user/user.log" off
26
#OPTIONS+=	SYSTEM_LOGGING	"Log some info DSPAM_HOME/system.log" on
27
#OPTIONS+=	SAT "Log spam source addresses to syslog" on
28
#OPTIONS+=	PARSE_TO_HEADERS "Get user from To header on fp spam" off
29
OPTIONS+=	PREF_EXT "Preferences in database not in files" off
25
OPTIONS+=	PREF_EXT "Preferences in database not in files" off
30
26
31
## algorithm options
27
## algorithm options
Lines 40-55 Link Here
40
OPTIONS+=	NEURAL_NET "Enable neural networking" off
36
OPTIONS+=	NEURAL_NET "Enable neural networking" off
41
37
42
## run-time configure  options
38
## 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
39
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
40
OPTIONS+=	TRUSTED_USERS "Disable trusted user security" off
47
41
48
## mesage taging options
49
#OPTIONS+=	SPAM_SUBJ "Prepends SPAM to the Subject header" off
50
#OPTIONS+=	SIGNATURE_HEADERS "Put signatures IDs ONLY in headers" off
51
#OPTIONS+=	WEBMAIL "Only with mail stored server-side" off
52
53
## back-end
42
## back-end
54
OPTIONS+=	MYSQL40 "Use MySQL 4.0.x as back-end" off
43
OPTIONS+=	MYSQL40 "Use MySQL 4.0.x as back-end" off
55
OPTIONS+=	MYSQL41 "Use MySQL 4.1.x as back-end" off
44
OPTIONS+=	MYSQL41 "Use MySQL 4.1.x as back-end" off
Lines 57-63 Link Here
57
OPTIONS+=	MYSQL_COMPRESS "Compress dspam <--> MySQL" off
46
OPTIONS+=	MYSQL_COMPRESS "Compress dspam <--> MySQL" off
58
OPTIONS+=	POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off
47
OPTIONS+=	POSTGRESQL73 "Use PostgreSQL v.7.3 as back-end" off
59
OPTIONS+=	POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off
48
OPTIONS+=	POSTGRESQL74 "Use PostgreSQL v.7.4 as back-end" off
60
#OPTIONS+=	PGSQL_INSTALLED "You have the client installed" on
61
OPTIONS+=	ORACLE "Use Oracle as back-end (BROKEN)" off
49
OPTIONS+=	ORACLE "Use Oracle as back-end (BROKEN)" off
62
OPTIONS+=	BDB4 "Use BDB4 as back-end (not recomanded)" off
50
OPTIONS+=	BDB4 "Use BDB4 as back-end (not recomanded)" off
63
OPTIONS+=	SQLITE2 "Use SQLite v2.x as back-end" on
51
OPTIONS+=	SQLITE2 "Use SQLite v2.x as back-end" on
Lines 78-90 Link Here
78
OPTIONS+=	SENDMAIL "Play nice with sendmail server" off
66
OPTIONS+=	SENDMAIL "Play nice with sendmail server" off
79
OPTIONS+=	POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
67
OPTIONS+=	POSTFIX_MBC "Dspam as mailbox_command in Postfix" off
80
OPTIONS+=	QMAIL "Play nice with Qmail mail server" off
68
OPTIONS+=	QMAIL "Play nice with Qmail mail server" off
81
#OPTIONS+=	BROKEN_ERR_CODES "99=spam, 0=not, other=error (qmailish)" off
82
#OPTIONS+=	BROKEN_MTA "Enable if MTA pases ^M to dspam" off
83
69
84
OPTIONS+=	CGI "Install CGI (pulls in apache)" off
70
OPTIONS+=	CGI "Install CGI (pulls in apache)" off
85
71
86
#USE_GNOME=	pkgconfig lthack
72
USE_GNOME=	pkgconfig
87
#USE_INC_LIBTOOL_VER=13
88
USE_LIBTOOL_VER=15
73
USE_LIBTOOL_VER=15
89
USE_REINPLACE=	yes
74
USE_REINPLACE=	yes
90
INSTALLS_SHLIB=	yes
75
INSTALLS_SHLIB=	yes
Lines 94-112 Link Here
94
79
95
PKGMESSAGE=	${WRKSRC}/README.FreeBSD
80
PKGMESSAGE=	${WRKSRC}/README.FreeBSD
96
81
97
UPD_LINE_NO=	3
82
UPD_LINE_NO=	11
98
83
99
CONFLICTS=	dspam-2* dspam-devel-[0-9]*
84
CONFLICTS=	dspam-2* dspam-devel-[0-9]*
100
85
101
SIGNATURE_LIFE?=	15
86
SIGNATURE_LIFE?=	15
87
102
_VAR_DIR=	/var
88
_VAR_DIR=	/var
103
LOG_DIR?=	${_VAR_DIR}/log/dspam
89
LOG_DIR?=	${_VAR_DIR}/log/dspam
104
DSPAM_HOME?=	${_VAR_DIR}/db/dspam
105
DSPAM_HOME_MODE?=	0660
106
90
91
DSPAM_MODE?=	4510
107
DSPAM_OWNER?=	root
92
DSPAM_OWNER?=	root
108
DSPAM_GROUP?=	mail
93
DSPAM_GROUP?=	mail
109
94
95
DSPAM_HOME?=	${_VAR_DIR}/db/dspam
96
DSPAM_HOME_OWNER?=	${DSPAM_OWNER}
97
DSPAM_HOME_GROUP?=	${DSPAM_GROUP}
98
DSPAM_HOME_MODE?=	0770
99
110
.include <bsd.port.pre.mk>
100
.include <bsd.port.pre.mk>
111
101
112
CONFIGURE_ARGS+=	--with-logdir=${LOG_DIR}
102
CONFIGURE_ARGS+=	--with-logdir=${LOG_DIR}
Lines 115-135 Link Here
115
CONFIGURE_ARGS+=	--with-dspam-home=${DSPAM_HOME}
105
CONFIGURE_ARGS+=	--with-dspam-home=${DSPAM_HOME}
116
PLIST_SUB+=	DSPAM_HOME=${DSPAM_HOME}
106
PLIST_SUB+=	DSPAM_HOME=${DSPAM_HOME}
117
107
118
.if defined(DSPAM_HOME_OWNER)
119
CONFIGURE_ARGS+=	--with-dspam-home-owner=${DSPAM_HOME_OWNER}
108
CONFIGURE_ARGS+=	--with-dspam-home-owner=${DSPAM_HOME_OWNER}
120
.endif
121
.if defined(DSPAM_HOME_GROUP)
122
CONFIGURE_ARGS+=	--with-dspam-home-group=${DSPAM_HOME_GROUP}
109
CONFIGURE_ARGS+=	--with-dspam-home-group=${DSPAM_HOME_GROUP}
123
.endif
124
.if defined(DSPAM_HOME_MODE)
125
CONFIGURE_ARGS+=	--with-dspam-home-mode=${DSPAM_HOME_MODE}
110
CONFIGURE_ARGS+=	--with-dspam-home-mode=${DSPAM_HOME_MODE}
126
.endif
111
PLIST_SUB+=	DSPAM_HOME=${DSPAM_HOME}
127
112
128
CONFIGURE_ARGS+=	--with-dspam-owner=${DSPAM_OWNER}
113
CONFIGURE_ARGS+=	--with-dspam-owner=${DSPAM_OWNER}
129
CONFIGURE_ARGS+=	--with-dspam-group=${DSPAM_GROUP}
114
CONFIGURE_ARGS+=	--with-dspam-group=${DSPAM_GROUP}
130
.if defined(DSPAM_MODE)
115
# we set DSPAM_MODE at the end as some LDA whant specific mode
131
CONFIGURE_ARGS+=	--with-dspam-mode=${DSPAM_MODE}
132
.endif
133
116
134
SED_SCRIPT=	-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
117
SED_SCRIPT=	-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
135
		-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
118
		-e 's,%%EXAMPLESDIR%%,${EXAMPLESDIR},g' \
Lines 146-175 Link Here
146
CONFIGURE_ARGS+=	--enable-verbose-debug
129
CONFIGURE_ARGS+=	--enable-verbose-debug
147
.endif
130
.endif
148
131
149
# conf option
150
#.if defined(WITH_SYSTEM_LOGGING)
151
#CONFIGURE_ARGS+=	--enable-logging
152
#.else
153
#CONFIGURE_ARGS+=	--disable-system-logging
154
#.endif
155
156
# conf option
157
#.if defined(WITH_USER_LOGGING)
158
#CONFIGURE_ARGS+=	--enable-user-logging
159
#.else
160
#CONFIGURE_ARGS+=	--disable-user-logging
161
#.endif
162
163
# conf
164
#.if defined(WITH_SAT)
165
#CONFIGURE_ARGS+=	--enable-source-address-tracking
166
#.endif
167
168
# conf
169
#.if defined(PARSE_TO_HEADERS)
170
#CONFIGURE_ARGS+=	--enable-parse-to-headers
171
#.endif
172
173
.if defined(WITH_PREF_EXT)
132
.if defined(WITH_PREF_EXT)
174
CONFIGURE_ARGS+=	--enable-preferences-extension
133
CONFIGURE_ARGS+=	--enable-preferences-extension
175
.endif
134
.endif
Lines 210-273 Link Here
210
CONFIGURE_ARGS+=	--enable-neural-networking
169
CONFIGURE_ARGS+=	--enable-neural-networking
211
.endif
170
.endif
212
171
213
#.if defined(WITH_HOMEDIR_DOT)
214
#CONFIGURE_ARGS+=	  --enable-homedir-dotfiles
215
#.endif
216
217
.if defined(WITH_USER_HOMEDIR)
172
.if defined(WITH_USER_HOMEDIR)
218
CONFIGURE_ARGS+=	--enable-homedir
173
CONFIGURE_ARGS+=	--enable-homedir
219
## XXXXXXXX
220
# to check incompatibility with CGI and warn user
221
# to install setuid root
222
.endif
174
.endif
223
175
224
# conf
225
#.if defined(WITH_OPT_IN)
226
#CONFIGURE_ARGS+=	  --enable-opt-in
227
#.endif
228
229
.if defined(WITH_TRUSTED_USERS)
176
.if defined(WITH_TRUSTED_USERS)
230
CONFIGURE_ARGS+=	--disable-trusted-user-security
177
CONFIGURE_ARGS+=	--disable-trusted-user-security
231
.endif
178
.endif
232
179
233
# conf
234
#.if defined(WITH_SPAM_SUBJ)
235
#CONFIGURE_ARGS+=	--enable-spam-subject
236
#.endif
237
238
# .conf option
239
#.if defined(WITH_SIGNATURE_HEADERS)
240
#CONFIGURE_ARGS+=	--enable-signature-headers
241
#SED_SCRIPT+=	-e 's,%%SIGHDR%%,,g'
242
#.else
243
#SED_SCRIPT+=	-e '/%%SIGHDR%%/D'
244
#.endif
245
246
# not supported anymore
247
#.if defined(SIGNATURE_ATACH)
248
#CONFIGURE_ARGS+=	--enable-signature-attachments
249
#.endif
250
251
#.if defined(WITH_WEBMAIL)
252
#CONFIGURE_ARGS+=	--enable-webmail
253
#.endif
254
255
DBDRV_TOTAL_COUNT=	oooooooo # 8
180
DBDRV_TOTAL_COUNT=	oooooooo # 8
256
DBDRV_COUNT=	${DBDRV_TOTAL_COUNT}
181
DBDRV_COUNT=	${DBDRV_TOTAL_COUNT}
257
182
258
.if defined(WITH_MYSQL40)
183
.ifdef(WITH_MYSQL40)
259
WANT_MYSQL_VER=	40
184
WANT_MYSQL_VER=	40
260
#PKGNAMESUFFIX=	-mysql40
185
#PKGNAMESUFFIX=	-mysql40
261
.elseif defined(WITH_MYSQL41)
186
.elifdef(WITH_MYSQL41)
262
WANT_MYSQL_VER=	41
187
WANT_MYSQL_VER=	41
263
#PKGNAMESUFFIX=	-mysql41
188
#PKGNAMESUFFIX=	-mysql41
264
.elseif defined(WITH_MYSQL50)
189
.elifdef(WITH_MYSQL50)
265
WANT_MYSQL_VER=	50
190
WANT_MYSQL_VER=	50
266
#PKGNAMESUFFIX=	-mysql50
191
#PKGNAMESUFFIX=	-mysql50
267
.endif
192
.endif
268
193
269
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) || defined(WITH_MYSQL50)
194
.if defined(WITH_MYSQL40) || defined(WITH_MYSQL41) || defined(WITH_MYSQL50)
270
HAVE_MYSQL=	yes
195
USE_MYSQL=	yes
271
CONFIGURE_ARGS+=	--with-storage-driver=mysql_drv \
196
CONFIGURE_ARGS+=	--with-storage-driver=mysql_drv \
272
		--with-mysql-includes=${LOCALBASE}/include/mysql \
197
		--with-mysql-includes=${LOCALBASE}/include/mysql \
273
		--with-mysql-libraries=${LOCALBASE}/lib/mysql
198
		--with-mysql-libraries=${LOCALBASE}/lib/mysql
Lines 374-394 Link Here
374
.endif
299
.endif
375
300
376
# add one 'o' here for each new LDA
301
# add one 'o' here for each new LDA
377
LDA_TOTAL_COUNT=	ooooooo	#7
302
LDA_TOTAL_COUNT=	ooooooo	# 7
378
LDA_COUNT=	${LDA_TOTAL_COUNT}
303
LDA_COUNT=	${LDA_TOTAL_COUNT}
379
304
380
.if defined(WITH_CYRUS21_LDA)
305
.if defined(WITH_CYRUS21_LDA)
381
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd2
306
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd2
382
#CONFIGURE_ARGS+=\
383
#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u'
384
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
307
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
385
LDA_COUNT:=	${LDA_COUNT:S/o//}
308
LDA_COUNT:=	${LDA_COUNT:S/o//}
386
.endif
309
.endif
387
310
388
.if defined(WITH_CYRUS22_LDA)
311
.if defined(WITH_CYRUS22_LDA)
389
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd22
312
RUN_DEPENDS+=	${LOCALBASE}/cyrus/bin/deliver:${PORTSDIR}/mail/cyrus-imapd22
390
#CONFIGURE_ARGS+=\
391
#--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver -e -r $${sender} -m $${extension} $${user} $$u'
392
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
313
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/cyrus/bin/deliver'
393
LDA_COUNT:=	${LDA_COUNT:S/o//}
314
LDA_COUNT:=	${LDA_COUNT:S/o//}
394
.endif
315
.endif
Lines 410-423 Link Here
410
.if defined(WITH_MAILDROP_LDA)
331
.if defined(WITH_MAILDROP_LDA)
411
RUN_DEPENDS+=	maildrop:${PORTSDIR}/mail/maildrop
332
RUN_DEPENDS+=	maildrop:${PORTSDIR}/mail/maildrop
412
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/maildrop -d $$u'
333
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/maildrop -d $$u'
413
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/maildrop'
414
LDA_COUNT:=	${LDA_COUNT:S/o//}
334
LDA_COUNT:=	${LDA_COUNT:S/o//}
415
.endif
335
.endif
416
336
417
.if defined(WITH_PROCMAIL_LDA)
337
.if defined(WITH_PROCMAIL_LDA)
418
RUN_DEPENDS+=	procmail:${PORTSDIR}/mail/procmail
338
RUN_DEPENDS+=	procmail:${PORTSDIR}/mail/procmail
419
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/procmail -d $$u'
339
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/procmail -d $$u'
420
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/bin/procmail'
421
LDA_COUNT:=	${LDA_COUNT:S/o//}
340
LDA_COUNT:=	${LDA_COUNT:S/o//}
422
.endif
341
.endif
423
342
Lines 427-465 Link Here
427
.else
346
.else
428
.	if defined(WITH_SENDMAIL_LDA) && exists(${LOCALBASE}/sbin/sendmail)
347
.	if defined(WITH_SENDMAIL_LDA) && exists(${LOCALBASE}/sbin/sendmail)
429
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/sendmail'
348
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/sendmail'
430
CONFIGURE_ARGS+=	--with-delivery-agent='${LOCALBASE}/sbin/sendmail'
431
LDA_COUNT:=	${LDA_COUNT:S/o//}
349
LDA_COUNT:=	${LDA_COUNT:S/o//}
432
.	endif
350
.	endif
433
.endif
351
.endif
434
352
435
.if defined(WITH_SENDMAIL)
353
.if defined(WITH_SENDMAIL)
436
CONFIGURE_ARGS+=	--with-dspam-mode=4511
354
DSPAM_MODE=	4511
437
.endif
355
.endif
438
356
439
.if defined(WITH_POSTFIX_MBC)
357
.if defined(WITH_POSTFIX_MBC)
440
CONFIGURE_ARGS+=	--with-dspam-mode=4511
358
DSPAM_MODE=	4511
441
SED_SCRIPT+=	-e 's,%%POSTFIX_MBC%%,,g'
359
SED_SCRIPT+=	-e 's,%%POSTFIX_MBC%%,,g'
442
.else
360
.else
443
SED_SCRIPT+=	-e '/%%POSTFIX_MBC%%/D'
361
SED_SCRIPT+=	-e '/%%POSTFIX_MBC%%/D'
444
.endif
362
.endif
445
363
446
.if defined(WITH_QMAIL)
364
.if defined(WITH_QMAIL)
447
CONFIGURE_ARGS+=	--with-dspam-mode=4511
365
DSPAM_MODE=	4511
448
.endif
366
.endif
449
367
450
# conf
368
.if defined(DSPAM_MODE)
451
#.if defined(WITH_BROKEN_ERR_CODES)
369
CONFIGURE_ARGS+=	--with-dspam-mode=${DSPAM_MODE}
452
#CONFIGURE_ARGS+=	--enable-broken-return-codes
453
#.endif
454
455
# conf
456
#.if defined(WITH_BROKEN_MTA)
457
#CONFIGURE_ARGS+=	--enable-broken-mta
458
#.endif
459
460
# conf option
461
.if defined(QUARANTINE_AGENT)
462
CONFIGURE_ARGS+=	--with-quarantine-agent=${QUARANTINE_AGENT}
463
.endif
370
.endif
464
371
465
.if defined(WITH_CGI)
372
.if defined(WITH_CGI)
Lines 504-514 Link Here
504
	@${ECHO_CMD} "Last ${FILESDIR}/UPDATING entry:"
411
	@${ECHO_CMD} "Last ${FILESDIR}/UPDATING entry:"
505
	@${GREP} -B 1 -A ${UPD_LINE_NO} ${PKGNAME} ${FILESDIR}/UPDATING
412
	@${GREP} -B 1 -A ${UPD_LINE_NO} ${PKGNAME} ${FILESDIR}/UPDATING
506
	@${ECHO_CMD} ""
413
	@${ECHO_CMD} ""
507
	@${ECHO_CMD} "#############################################################################"
508
	@${ECHO_CMD} ""
414
	@${ECHO_CMD} ""
509
415
510
pre-extract:
416
pre-extract:
511
	@${ECHO_CMD} ""
512
.if defined(WITH_EXIM_LDA) && defined(WITH_POSTGRESQL73)
417
.if defined(WITH_EXIM_LDA) && defined(WITH_POSTGRESQL73)
513
	@${ECHO_CMD} "******************************************************************"
418
	@${ECHO_CMD} "******************************************************************"
514
	@${ECHO_CMD} "You have both EXIM_LDA and POSTGRESQL73 defined. To have exim"
419
	@${ECHO_CMD} "You have both EXIM_LDA and POSTGRESQL73 defined. To have exim"
Lines 522-537 Link Here
522
427
523
	@${ECHO_CMD} "Define vars below before make-ing if you need:"
428
	@${ECHO_CMD} "Define vars below before make-ing if you need:"
524
	@${ECHO_CMD} ""
429
	@${ECHO_CMD} ""
525
	@${ECHO_CMD} "SIGNATURE_LIFE (default 15)"
430
	@${ECHO_CMD} "SIGNATURE_LIFE=${SIGNATURE_LIFE} (default 15)"
526
	@${ECHO_CMD} "DSPAM_OWNER (default: root)"
431
	@${ECHO_CMD} "DSPAM_OWNER=${DSPAM_OWNER} (default: root)"
527
	@${ECHO_CMD} "DSPAM_GROUP (default: mail)"
432
	@${ECHO_CMD} "DSPAM_GROUP=${DSPAM_GROUP} (default: mail)"
528
	@${ECHO_CMD} "DSPAM_MODE"
433
	@${ECHO_CMD} "DSPAM_MODE=${DSPAM_MODE}"
529
	@${ECHO_CMD} "DSPAM_HOME (default: ${_VAR_DIR}/dspam)"
434
	@${ECHO_CMD} "DSPAM_HOME=${DSPAM_HOME} (default: ${_VAR_DIR}/db/dspam)"
530
	@${ECHO_CMD} "DSPAM_HOME_OWNER"
435
	@${ECHO_CMD} "DSPAM_HOME_OWNER=${DSPAM_HOME_OWNER}"
531
	@${ECHO_CMD} "DSPAM_HOME_GROUP"
436
	@${ECHO_CMD} "DSPAM_HOME_GROUP=${DSPAM_HOME_GROUP}"
532
	@${ECHO_CMD} "DSPAM_HOME_MODE (default: 0660)"
437
	@${ECHO_CMD} "DSPAM_HOME_MODE=${DSPAM_HOME_MODE} (default: 0770)"
533
	@${ECHO_CMD} "LOG_DIR (default: ${_VAR_DIR}/log/dspam)"
438
	@${ECHO_CMD} "LOG_DIR=${LOG_DIR} (default: ${_VAR_DIR}/log/dspam)"
534
	@${ECHO_CMD} "QUARANTINE_AGENT (default: mail.local)"
535
.	if defined(WITH_CGI)
439
.	if defined(WITH_CGI)
536
		@${ECHO_CMD} "Define CGI_PATH before make-ing if you need the CGI files"
440
		@${ECHO_CMD} "Define CGI_PATH before make-ing if you need the CGI files"
537
		@${ECHO_CMD} "installed in other place that this installation's default"
441
		@${ECHO_CMD} "installed in other place that this installation's default"
Lines 543-549 Link Here
543
.for old_opt in MAILDROP PROCMAIL TRAD_BAYES ALT_BAYES WITH_SPAM_SUBJ \
447
.for old_opt in MAILDROP PROCMAIL TRAD_BAYES ALT_BAYES WITH_SPAM_SUBJ \
544
	USER_LOGGING SYSTEM_LOGGING WEBMAIL OPT_IN SAT PARSE_TO_HEADERS \
448
	USER_LOGGING SYSTEM_LOGGING WEBMAIL OPT_IN SAT PARSE_TO_HEADERS \
545
	BROKEN_MTA BROKEN_ERR_CODES SIGNATURE_HEADERS SIGNATURE_ATACH \
449
	BROKEN_MTA BROKEN_ERR_CODES SIGNATURE_HEADERS SIGNATURE_ATACH \
546
	HOMEDIR_DOT SIGNATURE_LIFE SQLITE
450
	HOMEDIR_DOT SIGNATURE_LIFE SQLITE QUARANTINE_AGENT
547
.	if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt})
451
.	if defined(WITH_${old_opt}) || defined(WITHOUT_${old_opt})
548
	@${ECHO_CMD} ""
452
	@${ECHO_CMD} ""
549
	@${ECHO_CMD} "******************************************************************"
453
	@${ECHO_CMD} "******************************************************************"
Lines 567-578 Link Here
567
.endfor
471
.endfor
568
472
569
post-patch:
473
post-patch:
570
	${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \
474
	@${REINPLACE_CMD} -e 's|%%PORTNAME%%|${PORTNAME}|; \
571
		s|%%PKGNAME%%|${PKGNAME}|; s|%%MAINTAINER%%|${MAINTAINER}|; \
475
		s|%%PKGNAME%%|${PKGNAME}|; s|%%MAINTAINER%%|${MAINTAINER}|; \
572
		s|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g; \
476
		s|%%LIBTOOLFLAGS%%|${LIBTOOLFLAGS}|g; \
573
		s|-ldb-4.1|-ldb41|g;' ${WRKSRC}/configure
477
		s|-ldb-4.1|-ldb41|g;' ${WRKSRC}/configure
574
	@${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' \
478
575
		${WRKSRC}/Makefile.in
576
	@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' ${WRKSRC}/tools.mysql_drv/purge.sql
479
	@${REINPLACE_CMD} -e 's|where @a-14 > to_days(created_on);|where @a-${SIGNATURE_LIFE} > to_days(created_on);|' ${WRKSRC}/tools.mysql_drv/purge.sql
577
	@${REINPLACE_CMD} -e 's|WHERE CURRENT_DATE - created_on > 14;|WHERE CURRENT_DATE - created_on > ${SIGNATURE_LIFE};|' ${WRKSRC}/tools.pgsql_drv/purge.sql
480
	@${REINPLACE_CMD} -e 's|WHERE CURRENT_DATE - created_on > 14;|WHERE CURRENT_DATE - created_on > ${SIGNATURE_LIFE};|' ${WRKSRC}/tools.pgsql_drv/purge.sql
578
	@${REINPLACE_CMD} -e 's|where SYSDATE-created_on > 14|where SYSDATE-created_on > ${SIGNATURE_LIFE};|' ${WRKSRC}/tools.ora_drv/purge.sql
481
	@${REINPLACE_CMD} -e 's|where SYSDATE-created_on > 14|where SYSDATE-created_on > ${SIGNATURE_LIFE};|' ${WRKSRC}/tools.ora_drv/purge.sql
Lines 594-605 Link Here
594
	@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
497
	@${ECHO_CMD} "You need MySQL or POSTGRESQL to use neural networking."
595
	@${FALSE}
498
	@${FALSE}
596
.endif
499
.endif
597
.if defined(WITH_VIRT_USERS) && !(defined(HAVE_MYSQL) || \
500
.if defined(WITH_VIRT_USERS) && !(defined(USE_MYSQL) || \
598
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE))
501
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) || defined(WITH_ORACLE))
599
	@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
502
	@${ECHO_CMD} "You need MySQL, POSTGRESQL or ORACLE for virtual users."
600
	@${FALSE}
503
	@${FALSE}
601
.endif
504
.endif
602
.if defined(WITH_PREF_EXT) && !( defined(HAVE_MYSQL) || \
505
.if defined(WITH_PREF_EXT) && !( defined(USE_MYSQL) || \
603
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
506
	defined(WITH_POSTGRESQL73) || defined(WITH_POSTGRESQL74) )
604
	@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
507
	@${ECHO_CMD} "You need MySQL or Postgres for preferences extension"
605
	@${FALSE}
508
	@${FALSE}
Lines 609-618 Link Here
609
	@${FALSE}
512
	@${FALSE}
610
.endif
513
.endif
611
514
612
#pre-install:
613
### to patch dspam.conf
614
#	${REINPLACE_CMD} -e 's|/usr/bin/|${LOCALBASE}/bin/|g' ${WRKSRC}/dspam.conf.in
615
616
post-install:
515
post-install:
617
	${CP} ${WRKSRC}/dspam.conf ${WRKSRC}/dspam.conf.sample
516
	${CP} ${WRKSRC}/dspam.conf ${WRKSRC}/dspam.conf.sample
618
	cd ${WRKSRC}/ && \
517
	cd ${WRKSRC}/ && \
Lines 621-627 Link Here
621
#	@${MKDIR} ${LOG_DIR}
520
#	@${MKDIR} ${LOG_DIR}
622
#	@${MKDIR} ${DSPAM_HOME}
521
#	@${MKDIR} ${DSPAM_HOME}
623
522
624
.if defined(HAVE_MYSQL)
523
.if defined(USE_MYSQL)
625
	@${MKDIR} ${EXAMPLESDIR}/mysql
524
	@${MKDIR} ${EXAMPLESDIR}/mysql
626
	cd ${WRKSRC}/tools.mysql_drv && \
525
	cd ${WRKSRC}/tools.mysql_drv && \
627
		${INSTALL_DATA} README mysql_objects-space.sql \
526
		${INSTALL_DATA} README mysql_objects-space.sql \
Lines 635-641 Link Here
635
	@${MKDIR} ${EXAMPLESDIR}/pgsql
534
	@${MKDIR} ${EXAMPLESDIR}/pgsql
636
	@cd ${WRKSRC}/tools.pgsql_drv && \
535
	@cd ${WRKSRC}/tools.pgsql_drv && \
637
		${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql
536
		${INSTALL_DATA} README *.sql ${EXAMPLESDIR}/pgsql
638
#	${INSTALL_DATA} ${FILESDIR}/pgsql.data ${EXAMPLESDIR}/pgsql
639
.endif
537
.endif
640
.if defined(WITH_SQLITE2)
538
.if defined(WITH_SQLITE2)
641
	@${MKDIR} ${EXAMPLESDIR}/sqlite
539
	@${MKDIR} ${EXAMPLESDIR}/sqlite
Lines 662-669 Link Here
662
		${INSTALL_DATA} default.prefs ${CGI_PATH}/default.prefs.sample
560
		${INSTALL_DATA} default.prefs ${CGI_PATH}/default.prefs.sample
663
	cd ${WRKSRC}/cgi && \
561
	cd ${WRKSRC}/cgi && \
664
		${INSTALL_DATA} admins ${CGI_PATH}/admins.sample
562
		${INSTALL_DATA} admins ${CGI_PATH}/admins.sample
665
#	cd ${WRKSRC}/cgi && \
666
#		${INSTALL_DATA} configure.pl.sample ${CGI_PATH}/configure.pl.sample
667
	@${MKDIR} ${CGI_PATH}/templates && cd ${WRKSRC}/cgi/templates && \
563
	@${MKDIR} ${CGI_PATH}/templates && cd ${WRKSRC}/cgi/templates && \
668
		${INSTALL_DATA} *.html ${CGI_PATH}/templates/
564
		${INSTALL_DATA} *.html ${CGI_PATH}/templates/
669
.endif
565
.endif
(-)dspam/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (dspam.3.2.3.cvs.stable.20041218.2100.tar.gz) = 272859a935c7c6582f54c4d6d749ce1b
1
MD5 (dspam.3.2.3.cvs.stable.20041229.1945.tar.gz) = 24ad7d7a70f70ff07be5d1fb8818b758
2
SIZE (dspam.3.2.3.cvs.stable.20041218.2100.tar.gz) = 620733
2
SIZE (dspam.3.2.3.cvs.stable.20041229.1945.tar.gz) = 620800
(-)dspam/files/UPDATING (+14 lines)
Lines 11-16 Link Here
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
#############################################################################
13
#############################################################################
14
# dspam-3.2.3.20041229.1945
15
#
16
17
- drop QUARANTINE_AGENT as is not supported by ./configure anymore and
18
set in dspam.conf UntrustedDeliveryAgent and QuarantineAgent to default to
19
TrustedDeliveryAgent, but leave them commented out
20
(ports/75548 by Julien Gabel)
21
- change default DSPAM_HOME_MODE to 0770
22
(ports/75549 by Julien Gabel <jpeg@thilelli.net>)
23
- DSPAM_HOME_{OWNER,GROUP} default to DSPAM_{OWNER,GROUP}
24
- fix make describe by USE_MYSQL
25
26
27
#############################################################################
14
# dspam-3.2.3.20041218.2100_1
28
# dspam-3.2.3.20041218.2100_1
15
#
29
#
16
30
(-)dspam/files/patch-dspam.conf.in (+29 lines)
Line 0 Link Here
1
--- dspam.conf.in.orig	Thu Dec 30 19:18:14 2004
2
+++ dspam.conf.in	Thu Dec 30 19:20:02 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

Return to bug 75665