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

(-)dcc-dccd/Makefile (-34 / +135 lines)
Lines 6-20 Link Here
6
#
6
#
7
7
8
PORTNAME=	dcc-dccd
8
PORTNAME=	dcc-dccd
9
PORTVERSION=	1.3.50
9
PORTVERSION=	1.3.86
10
PORTREVISION=	1
10
PORTREVISION=	0
11
CATEGORIES=	mail
11
CATEGORIES=	mail
12
MASTER_SITES=	http://www.rhyolite.com/anti-spam/dcc/source/ \
12
MASTER_SITES=	http://www.dcc-servers.net/dcc/source/old/ \
13
		http://www.wa.apana.org.au/~dean/sources/
13
		http://www.rhyolite.com/anti-spam/dcc/source/old/ \
14
		ftp://ftp.dcc-servers.net/src/dcc/old/ \
15
		ftp://ftp.rhyolite.com/src/dcc/old/
16
DISTNAME=	dcc-1.3.86
14
EXTRACT_SUFX=	.tar.Z
17
EXTRACT_SUFX=	.tar.Z
15
18
16
MAINTAINER=	dean@odyssey.apana.org.au
19
MAINTAINER=	dean@odyssey.apana.org.au
17
COMMENT=	Distributed Checksum Clearinghouse procmail, sendmail support
20
COMMENT=	Distributed Checksum Clearinghouse bulk email detector
18
21
19
HAS_CONFIGURE=	yes
22
HAS_CONFIGURE=	yes
20
MANCOMPRESSED=	yes
23
MANCOMPRESSED=	yes
Lines 24-68 Link Here
24
PKGINSTALL=	${WRKDIR}/pkg-install
27
PKGINSTALL=	${WRKDIR}/pkg-install
25
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
28
PKGDEINSTALL=	${WRKDIR}/pkg-deinstall
26
29
27
USE_RC_SUBR=	dcc-start.sh
30
USE_RC_SUBR=
28
31
29
#
32
#
30
# User for dcc files and SUID binaries
33
# ALT_HOME -	DCC keeps its config files in its home direcotry but writes 
34
#		status and database files there as well.  This latter point 
35
#		means that the FreeBSD default home directory for DCC, 
36
#		/usr/local/dcc, cannot be mounted read-only.
37
#
38
#		DCC's default home dir is /var/dcc breaks FreeBSD hierarchy
39
#		conventions, but allows for a read-only /usr.
40
#
41
#		Setting ALT_HOME on will set DCC's home to /var/dcc, but
42
#		keep its binaries in /usr/local/dcc/libexec.  Since this
43
#		also means DCC's config files will be in /var/dcc, for 
44
#		convenience a soft link from /usr/local/etc/dcc to /var/dcc 
45
#		may be created.
46
#
47
#		Note also that dccifd's default socket location is DCC's
48
#		home, so if /var/dcc is used for the home, then programs
49
#		like SpamAssassin may need to be explicitly told where
50
#		to find dccifd's socket.
51
#
52
OPTIONS=	DCCIFD	"DCC interface daemon (for SpamAssassin etc)"	on \
53
		DCCM	"DCC milter (for Sendmail only)"	off \
54
		DCCD	"DCC server"	off \
55
		DCCGREY	"DCC greylisting server"	off \
56
		IPV6	"IPv6 support"	on  \
57
		ALT_HOME	"DCC home in /var/dcc"	off \
58
		PORTS_SENDMAIL	"Use base Sendmail if off, ports if on"	off 
59
60
61
62
## User for DCC files and SUID binaries
31
#
63
#
32
DCCUSER?=	dcc
64
DCCUSER?=	dcc
33
DCCUID?=	112
65
DCCUID?=	112
34
DCCGROUP?=	dcc
66
DCCGROUP?=	dcc
35
DCCGID?=	112
67
DCCGID?=	112
36
68
37
#
38
# Use configure script to set locations of all files. Use of
39
# sed scripting breaks things.
40
#
41
69
42
CONFIGURE_ARGS=	--homedir=${PREFIX}/dcc --bindir=${PREFIX}/bin --mandir=${MANPREFIX}/man --with-rundir=/var/run/dcc
70
## Use the configure script to explicitly set the locations of all files, 
71
## in case the standard locations have been locally overridden
72
#
73
CONFIGURE_ARGS=	--with-uid=${DCCUSER} --bindir=${PREFIX}/bin --mandir=${MANPREFIX}/man --with-configsuffix=.sample
43
74
44
.include <bsd.port.pre.mk>
75
.include <bsd.port.pre.mk>
45
76
46
.if !defined(WITH_SENDMAIL_BASE) && !defined(WITH_SENDMAIL_PORT) && !exists(${LOCALBASE}/lib/libmilter.a)
77
SUB_FILES=		pkg-message
47
WITH_SENDMAIL_BASE=yes
78
SUB_LIST+=		WRKSRC=${WRKSRC}
48
.endif
49
79
50
.if defined(WITH_SENDMAIL_BASE)
80
## /var/dcc home support
51
.if exists(/usr/lib/libmilter.a)
81
#
52
MILTERBASE=	/usr
82
.if defined(WITH_ALT_HOME)
53
WITH_SENDMAIL=	yes
83
CONFIGURE_ARGS+=	--homedir=/var/dcc --libexecdir=${PREFIX}/dcc/libexec --with-cgibin=${PREFIX}/dcc/cgi-bin
84
SUB_LIST+=		DCCHOME=/var/dcc
85
PLIST_SUB+=		WITH_ALT_HOME=""
54
.else
86
.else
55
.if !defined(WITHOUT_SENDMAIL)
87
CONFIGURE_ARGS+=	--homedir=${PREFIX}/dcc
56
IGNORE=		base system sendmail not found or too old, rebuild with WITH_SENDMAIL_PORT=yes or WITHOUT_SENDMAIL=yes
88
SUB_LIST+=		DCCHOME=${PREFIX}/dcc
89
PLIST_SUB+=		WITH_ALT_HOME="@comment "
57
.endif
90
.endif
91
92
## dccm milter support
93
#
94
.if defined(WITH_DCCM)
95
96
.if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a)
97
IGNORE=		Neither base system nor Ports version of Sendmail installed, cannot build milter
98
.endif
99
.if defined(WITHOUT_PORTS_SENDMAIL) && !exists(/usr/lib/libmilter.a)
100
IGNORE=		Base system Sendmail not found or too old, rebuild with WITH_PORTS_SENDMAIL=yes or WITHOUT_DCCM=yes
58
.endif
101
.endif
102
.if defined(WITH_PORTS_SENDMAIL) && !exists(${LOCALBASE}/lib/libmilter.a)
103
IGNORE=		Ports Sendmail not found, rebuild with WITHOUT_PORTS_SENDMAIL=yes or WITHOUT_DCCM=yes
104
.endif
105
106
.if defined(WITHOUT_PORTS_SENDMAIL)
107
MILTERBASE=	/usr
59
.else
108
.else
60
BUILD_DEPENDS+=	${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
109
BUILD_DEPENDS+=	${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
61
MILTERBASE?=	${LOCALBASE}
110
MILTERBASE?=	${LOCALBASE}
62
WITH_SENDMAIL=	yes
63
.endif
111
.endif
64
112
65
.if !defined(WITHOUT_SENDMAIL) && defined(WITH_SENDMAIL)
66
MILTERINC=	${MILTERBASE}/include
113
MILTERINC=	${MILTERBASE}/include
67
MILTERLIB=	${MILTERBASE}/lib
114
MILTERLIB=	${MILTERBASE}/lib
68
115
Lines 71-105 Link Here
71
118
72
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
119
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
73
CONFIGURE_ARGS+=	--with-sendmail=${MILTERBASE}
120
CONFIGURE_ARGS+=	--with-sendmail=${MILTERBASE}
74
PLIST_SUB+=	WITH_SENDMAIL=""
121
122
PLIST_SUB+=	WITH_DCCM=""
123
124
USE_RC_SUBR+=	dccm.sh
125
75
.else
126
.else
76
CONFIGURE_ARGS+=	--disable-dccm
127
CONFIGURE_ARGS+=	--disable-dccm
77
PLIST_SUB+=	WITH_SENDMAIL="@comment "
128
PLIST_SUB+=	WITH_DCCM="@comment "
78
.endif
129
.endif
79
130
131
## dccifd client interface daemon support
132
#
80
.if defined(WITHOUT_DCCIFD)
133
.if defined(WITHOUT_DCCIFD)
81
CONFIGURE_ARGS+=	--disable-dccifd
134
CONFIGURE_ARGS+=	--disable-dccifd
82
PLIST_SUB+=	WITH_DCCIFD="@comment "
135
PLIST_SUB+=	WITH_DCCIFD="@comment "
83
.else
136
.else
84
PLIST_SUB+=	WITH_DCCIFD=""
137
PLIST_SUB+=	WITH_DCCIFD=""
138
USE_RC_SUBR+=	dccifd.sh
85
.endif
139
.endif
86
140
87
CONFIGURE_ARGS+=	--with-uid=${DCCUSER}
141
## dccd server support
142
#
143
.if defined(WITHOUT_DCCD) && defined(WITHOUT_DCCGREY)
144
CONFIGURE_ARGS+=	--disable-server
145
PLIST_SUB+=	WITH_DCCD="@comment "
146
.else
147
PLIST_SUB+=	WITH_DCCD=""
148
.endif
149
150
## IPV6 support
151
#
152
.if defined(WITHOUT_IPV6)
153
CONFIGURE_ARGS+=	--disable-IPv6
154
.endif
88
155
156
157
## Packing list and rcNG script fixups
158
#
159
.if defined(WITHOUT_DCCIFD) && defined(WITHOUT_DCCM)
160
PLIST_SUB+=	WITH_IFD_MILT="@comment "
161
.else
162
PLIST_SUB+=	WITH_IFD_MILT=""
163
.endif
164
165
.if defined(WITH_DCCD)
166
USE_RC_SUBR+=	dccd.sh
167
.endif
168
169
.if defined(WITH_DCCGREY)
170
USE_RC_SUBR+=	dccgrey.sh
171
PLIST_SUB+=	WITH_DCCGREY=""
172
.else
173
PLIST_SUB+=	WITH_DCCGREY="@comment "
174
.endif
175
176
## Substitutions in pkg-install and pkg-deinstall
177
#
89
SED_SCRIPT=	-e 's|%%PREFIX%%|${PREFIX}|g' \
178
SED_SCRIPT=	-e 's|%%PREFIX%%|${PREFIX}|g' \
90
		-e 's|%%DCCUSER%%|${DCCUSER}|g' -e 's|%%DCCUID%%|${DCCUID}|g' \
179
		-e 's|%%DCCUSER%%|${DCCUSER}|g' -e 's|%%DCCUID%%|${DCCUID}|g' \
91
		-e 's|%%DCCGROUP%%|${DCCGROUP}|g' -e 's|%%DCCGID%%|${DCCGID}|g'
180
		-e 's|%%DCCGROUP%%|${DCCGROUP}|g' -e 's|%%DCCGID%%|${DCCGID}|g' \
181
		-e 's|%%DCCHOME%%|${DCCHOME}|g'
182
92
183
93
pre-everything::
184
pre-everything::
94
	@${ECHO_MSG} ' '
185
	@${ECHO_MSG} ' '
95
	@${ECHO_MSG} 'You can choose the sendmail to be used by specifying:'
186
	@${ECHO_MSG} 'A description of ALT_HOME may be found in the port's Makefile.'
96
	@${ECHO_MSG} ' '
187
	@${ECHO_MSG} ' '
97
	@${ECHO_MSG} 'WITH_SENDMAIL_BASE=yes'
98
	@${ECHO_MSG} 'or'
99
	@${ECHO_MSG} 'WITH_SENDMAIL_PORT=yes'
100
	@${ECHO_MSG} 'or'
101
	@${ECHO_MSG} 'WITHOUT_SENDMAIL=yes'
102
	@${ECHO_MSG} ''
103
188
104
post-build:
189
post-build:
105
	@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL}
190
	@${SED} ${SED_SCRIPT} ${PKGDIR}/pkg-install >${PKGINSTALL}
Lines 109-112 Link Here
109
	@${SETENV} PKG_PREFIX=${PREFIX} \
194
	@${SETENV} PKG_PREFIX=${PREFIX} \
110
	${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
195
	${SH} ${PKGINSTALL} ${PREFIX} PRE-INSTALL
111
196
197
198
post-install:
199
200
## Make certain DCC's config files are owned by DCC's user
201
#
202
.if defined(WITH_ALT_HOME)
203
	@${CHOWN} ${DCCUSER} /var/dcc/*
204
.else
205
	@${CHOWN} ${DCCUSER} ${PREFIX}/dcc/*
206
.endif
207
208
## Print DCC installation notes and RESTRICTIONS file info
209
#
210
	@${CAT} ${PKGMESSAGE}
211
212
112
.include <bsd.port.post.mk>
213
.include <bsd.port.post.mk>
(-)dcc-dccd/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
MD5 (dcc-dccd-1.3.50.tar.Z) = 4306df4a05d04f926995ddc0c1d480e1
1
MD5 (dcc-1.3.86.tar.Z) = 2d6c0ff3b1a7e56e95862a8a74c2d95c
2
SHA256 (dcc-dccd-1.3.50.tar.Z) = 942c9be56f3ff765b524e6c49d85dd84aa4a22c1514afe096d34e246cbf6cc21
2
SHA256 (dcc-1.3.86.tar.Z) = 019b1efd2ac373a982ef2913aaf3629137efcf6623c0664ceccdb14bda5f3441
3
SIZE (dcc-dccd-1.3.50.tar.Z) = 1448485
3
SIZE (dcc-1.3.86.tar.Z) = 1514689
(-)dcc-dccd/files/dcc-start.sh.in (-57 lines)
Lines 1-57 Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: dccifd
4
# REQUIRE: LOGIN
5
# BEFORE: mail
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf to enable dccifd:
10
#
11
#dccifd_enable="YES"
12
#
13
# See dccifd(8) for flags
14
#
15
16
. %%RC_SUBR%%
17
18
name=dccifd
19
rcvar=`set_rcvar`
20
21
load_rc_config $name
22
23
# Set defaults
24
: ${dccifd_enable:="NO"}
25
: ${dccifd_flags=""}
26
: ${dccifd_home="%%PREFIX%%/dcc"}
27
: ${dccifd_conf="$dccifd_home/dcc_conf"}
28
29
30
pidfile=${dccifd_pidfile:-"/var/run/dcc/dccifd.pid"}
31
command="${dccifd_home}/libexec/start-dccifd"
32
procname="${dccifd_home}/libexec/dccifd"
33
required_dirs="$dccifd_home"
34
required_files="${dccifd_conf}"
35
36
stop_postcmd="stop_postcmd"
37
start_precmd="start_precmd"
38
39
40
stop_postcmd()
41
{
42
 rm -f $pidfile
43
}
44
45
start_precmd()
46
{
47
X=`grep DCCIFD_ENABLE ${dccifd_conf}`
48
eval $X
49
if [ "$DCCIFD_ENABLE"  != "on" ]
50
then
51
	echo "Warning ${X} needs to be on in ${dccifd_conf}"
52
	return 1
53
fi
54
}
55
56
run_rc_command "$1"
57
(-)dcc-dccd/files/dccd.sh.in (+72 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: dccd
4
# REQUIRE: LOGIN
5
# BEFORE: mail
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf:
10
#
11
#dccd_enable="YES"
12
#
13
# and in %%DCCHOME%%/dcc_conf change:
14
#
15
#DCCD_ENABLE=off
16
#
17
# to:
18
#
19
#DCCD_ENABLE=on
20
#
21
#
22
# See %%DCCHOME%%/dcc_conf to configure startup options
23
#
24
25
. %%RC_SUBR%%
26
27
name=dccd
28
rcvar=`set_rcvar`
29
30
load_rc_config $name
31
32
# Set defaults
33
: ${dccd_enable:="NO"}
34
: ${dccd_home="%%DCCHOME%%"}
35
: ${dccd_libexec="%%PREFIX%%/dcc/libexec"}
36
: ${dccd_conf="$dccd_home/dcc_conf"}
37
38
39
procname="${dccd_libexec}/dccd"
40
required_dirs="${dccd_home} ${dccd_libexec}"
41
required_files="${dccd_conf} ${dccd_libexec}/rcDCC"
42
43
start_cmd="start_dccd"
44
stop_cmd="stop_dccd"
45
start_precmd="start_precmd"
46
47
48
start_precmd()
49
{
50
X=`grep ^DCCD_ENABLE ${dccd_conf}`
51
eval $X
52
if [ "$DCCD_ENABLE"  != "on" ]
53
then
54
	echo "Warning ${X} needs to be on in ${dccd_conf} to start the dccd server"
55
	return 1
56
fi
57
}
58
59
start_dccd()
60
{
61
	echo Starting dccd.
62
	${dccd_libexec}/rcDCC -m dccd start
63
}
64
65
stop_dccd()
66
{
67
	echo Stopping dccd.
68
	${dccd_libexec}/rcDCC -m dccd stop
69
}
70
71
run_rc_command "$1"
72
(-)dcc-dccd/files/dccgrey.sh.in (+72 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: dccgrey
4
# REQUIRE: LOGIN
5
# BEFORE: mail
6
# KEYWORD: shutdown
7
8
#
9
# Add the following lines to /etc/rc.conf:
10
#
11
#dccgrey_enable="YES"
12
#
13
# and in %%DCCHOME%%/dcc_conf change:
14
#
15
#GREY_ENABLE=
16
#
17
# to:
18
#
19
#GREY_ENABLE=on
20
#
21
#
22
# See %%DCCHOME%%/dcc_conf to configure startup options
23
#
24
25
. %%RC_SUBR%%
26
27
name=dccgrey
28
rcvar=`set_rcvar`
29
30
load_rc_config $name
31
32
# Set defaults
33
: ${dccgrey_enable:="NO"}
34
: ${dccgrey_home="%%DCCHOME%%"}
35
: ${dccgrey_libexec="%%PREFIX%%/dcc/libexec"}
36
: ${dccgrey_conf="$dccgrey_home/dcc_conf"}
37
38
39
procname="${dccgrey_libexec}/dccd"
40
required_dirs="${dccgrey_home} ${dccgrey_libexec}"
41
required_files="${dccgrey_conf} ${dccgrey_libexec}/rcDCC"
42
43
start_cmd="start_dccgrey"
44
stop_cmd="stop_dccgrey"
45
start_precmd="start_precmd"
46
47
48
start_precmd()
49
{
50
X=`grep ^GREY_ENABLE ${dccgrey_conf}`
51
eval $X
52
if [ "$GREY_ENABLE" != "on" ]
53
then
54
	echo "Warning ${X} needs to be on in ${dccgrey_conf} to start the DCC greylisting server"
55
	return 1
56
fi
57
}
58
59
start_dccgrey()
60
{
61
	echo Starting dccgrey.
62
	${dccgrey_libexec}/rcDCC -m grey start
63
}
64
65
stop_dccgrey()
66
{
67
	echo Stopping dccgrey.
68
	${dccgrey_libexec}/rcDCC -m grey stop
69
}
70
71
run_rc_command "$1"
72
(-)dcc-dccd/files/dccifd.sh.in (+63 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: dccifd
4
# REQUIRE: LOGIN
5
# BEFORE: mail
6
# KEYWORD: shutdown
7
8
#
9
# To enable dccifd add the following lines to /etc/rc.conf:
10
#
11
#dccifd_enable="YES"
12
#
13
# and in %%DCCHOME%%/dcc_conf change:
14
#
15
#DCCIFD_ENABLE=off
16
#
17
# to:
18
#
19
#DCCIFD_ENABLE=on
20
#
21
#
22
# See %%DCCHOME%%/dcc_conf to configure startup options
23
#
24
25
. %%RC_SUBR%%
26
27
name=dccifd
28
rcvar=`set_rcvar`
29
30
load_rc_config $name
31
32
# Set defaults
33
: ${dccifd_enable:="NO"}
34
: ${dccifd_home="%%DCCHOME%%"}
35
: ${dccifd_libexec="%%PREFIX%%/dcc/libexec"}
36
: ${dccifd_conf="$dccifd_home/dcc_conf"}
37
38
pidfile=${dccifd_pidfile:-"/var/run/dcc/dccifd.pid"}
39
procname="${dccifd_libexec}/dccifd"
40
required_dirs="${dccifd_home} ${dccifd_libexec}"
41
required_files="${dccifd_conf} ${dccifd_libexec}/rcDCC"
42
43
start_precmd="start_precmd"
44
start_cmd="start_dcc"
45
46
start_precmd()
47
{
48
X=`grep ^DCCIFD_ENABLE ${dccifd_conf}`
49
eval $X
50
if [ "$DCCIFD_ENABLE"  != "on" ]
51
then
52
	echo "Warning ${X} needs to be on in ${dccifd_conf} to start dccifd"
53
	return 1
54
fi
55
}
56
57
start_dcc()
58
{
59
	echo Starting dccifd.
60
	${dccifd_libexec}/rcDCC -m dccifd start
61
}
62
63
run_rc_command "$1"
(-)dcc-dccd/files/dccm.sh.in (+63 lines)
Line 0 Link Here
1
#!/bin/sh
2
#
3
# PROVIDE: dccm
4
# REQUIRE: LOGIN
5
# BEFORE: mail
6
# KEYWORD: shutdown
7
8
#
9
# To enable dccm add the following lines to /etc/rc.conf:
10
#
11
#dccm_enable="YES"
12
#
13
# and in %%DCCHOME%%/dcc_conf change:
14
#
15
#DCCM_ENABLE=off
16
#
17
# to:
18
#
19
#DCCM_ENABLE=on
20
#
21
#
22
# See %%DCCHOME%%/dcc_conf to configure startup options
23
#
24
25
. %%RC_SUBR%%
26
27
name=dccm
28
rcvar=`set_rcvar`
29
30
load_rc_config $name
31
32
# Set defaults
33
: ${dccm_enable:="NO"}
34
: ${dccm_home="%%DCCHOME%%"}
35
: ${dccm_libexec="%%PREFIX%%/dcc/libexec"}
36
: ${dccm_conf="$dccm_home/dcc_conf"}
37
38
pidfile=${dccm_pidfile:-"/var/run/dcc/dccm.pid"}
39
procname="${dccm_libexec}/dccm"
40
required_dirs="${dccm_home} ${dccm_libexec}"
41
required_files="${dccm_conf} ${dccm_libexec}/rcDCC"
42
43
start_precmd="start_precmd"
44
start_cmd="start_dcc"
45
46
start_precmd()
47
{
48
X=`grep ^DCCM_ENABLE ${dccm_conf}`
49
eval $X
50
if [ "$DCCM_ENABLE"  != "on" ]
51
then
52
	echo "Warning ${X} needs to be on in ${dccm_conf} to start dccm"
53
	return 1
54
fi
55
}
56
57
start_dcc()
58
{
59
	echo Starting dccm.
60
	${dccm_libexec}/rcDCC -m dccm start
61
}
62
63
run_rc_command "$1"
(-)dcc-dccd/files/patch-configure (-25 lines)
Lines 1-25 Link Here
1
--- configure.orig	Sun Jul 31 18:57:46 2005
2
+++ configure	Thu Sep  8 00:02:36 2005
3
@@ -998,7 +998,7 @@
4
 	;;
5
     FreeBSD)
6
 	PTHREAD_LDFLAGS="$PTHREAD_LDFLAGS -pthread"
7
-	PTHREAD_LIBS="$PTHREAD_LIBS -lc_r"
8
+	PTHREAD_LIBS="$PTHREAD_LIBS"
9
 	;;
10
     DragonFly)
11
 	PTHREAD_LDFLAGS="$PTHREAD_LDFLAGS -pthread"
12
@@ -2487,6 +2487,13 @@
13
     SENDMAIL="$with_sendmail"
14
     SENDMAIL_EVAL="$SENDMAIL"
15
     with_sendmail=yes
16
+fi
17
+if test -n "$SENDMAIL" -a "$SENDMAIL" != "no"; then
18
+    if test -f $SENDMAIL/include/libmilter/mfapi.h -a -f $SENDMAIL/lib/libmilter.a; then
19
+    SENDMAIL_OBJ=$SENDMAIL/lib
20
+    SENDMAIL_OBJ_EVAL=$SENDMAIL_OBJ
21
+    SENDMAIL_LIB=$SENDMAIL_OBJ/libmilter.a
22
+    fi
23
 fi
24
 if test -z "$SENDMAIL"; then
25
     # prefer a parallel ../sendmail directory
(-)dcc-dccd/files/patch-homedir::Makefile.in (-33 lines)
Lines 1-33 Link Here
1
--- homedir/Makefile.in.orig	Sun Feb 11 09:05:45 2007
2
+++ homedir/Makefile.in	Sun Feb 11 09:07:59 2007
3
@@ -57,23 +57,19 @@
4
 	  $(HINST) -m 755 -d $(DIR); fi
5
 	if test ! -d $(DIR)/log; then\
6
 	  $(HINST) -m 710 -d $(DIR)/log; fi
7
-	if test -s $(DIR)/dcc_conf; then\
8
-	  sh make-dcc_conf -h $(DIR);\
9
-	else\
10
-	  $(HINST) -m 644 dcc_conf $(DIR)/dcc_conf;\
11
-	fi
12
+	$(INSTALL) -m 644 dcc_conf $(DIR)/dcc_conf.dist; \
13
 	for nm in flod grey_flod whitelist grey_whitelist\
14
 		whiteclnt whitecommon; do\
15
 	  if test ! -f $(DIR)/$$nm; then\
16
-		$(HINST) -m 644 $$nm $(DIR)/$$nm; fi; done
17
+		$(INSTALL) -m 644 $$nm $(DIR)/$$nm.dist; fi; done
18
 	if test ! -f $(DIR)/ids -a ! -f $(DIR)/map -a ! -f $(DIR)/map.txt; then\
19
 	  umask 077; PASSWD1=`$(RSTRING)`; PASSWD2=`$(RSTRING)`;\
20
-	  sed -e "s/secret1/$$PASSWD1/" map.txt >$(DIR)/map.txt;\
21
+	  sed -e "s/secret1/$$PASSWD1/" map.txt >$(DIR)/map.txt.dist;\
22
 	  sed -e "s/secret1/$$PASSWD1/" -e "s/secret2/$$PASSWD2/" ids\
23
-		>$(DIR)/ids;\
24
-	  ${DEPTH}/cdcc/cdcc -qh $(DIR) 'new map; load $(DIR)/map.txt';\
25
-	  set +e; chown $(DCC_SUID) $(DIR)/map.txt\
26
-			$(DIR)/map $(DIR)/ids;\
27
+		>$(DIR)/ids.dist;\
28
+	  ${DEPTH}/cdcc/cdcc -qh $(DIR) 'new map; load $(DIR)/map.txt.dist';\
29
+	  set +e; chown $(DCC_SUID) $(DIR)/map.txt.dist\
30
+			$(DIR)/map $(DIR)/ids.dist;\
31
 	fi
32
 
33
 deinstall:
(-)dcc-dccd/files/pkg-message.in (+47 lines)
Line 0 Link Here
1
2
==========================================================================
3
4
Installation Notes
5
------------------
6
7
Make certain you edit %%DCCHOME%%/dcc_conf to enable the daemons you 
8
wish to run, in addition to adding their respective dcc*_enable="YES" 
9
lines to /etc/rc.conf or /etc/rc.conf.local.
10
11
Daemon startup flags are also specified in %%DCCHOME%%/dcc_conf.
12
13
14
If you run the DCC server, /usr/local/dcc/libexec/cron-dccd should be
15
run at least daily from the crontab to clean old checksums from the DB.
16
17
18
If your site handles more than 100,000 messages per day, to decrease the
19
load on the public DCC servers and increase the responsiveness of your
20
DCC clients, you should set up your own, local DCC server connected to 
21
the global network of DCC servers.  See: 
22
23
http://www.dcc-servers.net/dcc/#local-server
24
25
26
==========================================================================
27
28
29
DCC Usage Restrictions Notice
30
-----------------------------
31
32
The free DCC source is available only for non-commercial and some other
33
uses.  It is not available to organizations that sell anti-spam appliances
34
or provide managed email services as opposed to common Internet service.
35
It has always been wrong to take and sell the CPU cycles, bandwidth, and
36
human system administration labor of the public DCC servers.
37
38
Please read the LICENSE file in the DCC source:
39
40
%%WRKSRC%%/LICENSE
41
42
or at:
43
44
http://www.dcc-servers.net/dcc/dcc-tree/LICENSE
45
46
47
==========================================================================
(-)dcc-dccd/pkg-descr (-4 / +7 lines)
Lines 1-7 Link Here
1
This package the DCC (Distributed Checksum Clearinghouse) procmail and 
1
This is the Distributed Checksum Clearinghouse (DCC) package, including 
2
non-sendmail interface, dccproc; the sendmail DCC interface, dccm; and the 
2
the command line (e.g. procmail) interface, dccproc; the SpamAssassin 
3
DCC server, dccd. Also included are utilities such as cdcc and all of the 
3
and Postfix interface, dccifd; the Sendmail milter interface, dccm; 
4
manual pages and documentation.
4
the DCC server, dccd; and the DCC greylisting server, dccd-grey.
5
6
Also included are utilities such as cdcc and all of the manual pages 
7
and documentation.
5
8
6
WWW: http://www.rhyolite.com/anti-spam/dcc/
9
WWW: http://www.rhyolite.com/anti-spam/dcc/
7
10
(-)dcc-dccd/pkg-plist (-37 / +46 lines)
Lines 1-53 Link Here
1
@unexec if cmp -s %D/dcc/dcc_conf %D/dcc/dcc_conf.dist; then rm -f %D/dcc/dcc_conf; fi
2
dcc/dcc_conf.dist
3
@exec [ -f %B/dcc_conf ] || cp %B/%f %B/dcc_conf
4
@unexec if cmp -s %D/dcc/flod %D/dcc/flod.dist; then rm -f %D/dcc/flod; fi
5
dcc/flod.dist
6
@exec [ -f %B/flod ] || cp %B/%f %B/flod
7
@unexec if cmp -s %D/dcc/grey_flod %D/dcc/grey_flod.dist; then rm -f %D/dcc/grey_flod; fi
8
dcc/grey_flod.dist
9
@exec [ -f %B/grey_flod ] || cp %B/%f %B/grey_flod
10
@unexec if cmp -s %D/dcc/grey_whitelist %D/dcc/grey_whitelist.dist; then rm -f %D/dcc/grey_whitelist; fi
11
dcc/grey_whitelist.dist
12
@exec [ -f %B/grey_whitelist ] || cp %B/%f %B/grey_whitelist
13
@unexec if cmp -s %D/dcc/ids %D/dcc/ids.dist; then rm -f %D/dcc/ids; fi
14
dcc/ids.dist
15
@exec [ -f %B/ids ] || cp %B/%f %B/ids
16
@unexec if cmp -s %D/dcc/map.txt %D/dcc/map.txt.dist; then rm -f %D/dcc/map.txt; fi
17
dcc/map.txt.dist
18
@exec [ -f %B/map.txt ] || cp %B/%f %B/map.txt
19
@unexec if cmp -s %D/dcc/whiteclnt %D/dcc/whiteclnt.dist; then rm -f %D/dcc/whiteclnt; fi
20
dcc/whiteclnt.dist
21
@exec [ -f %B/whiteclnt ] || cp %B/%f %B/whiteclnt
22
@unexec if cmp -s %D/dcc/whitecommon %D/dcc/whitecommon.dist; then rm -f %D/dcc/whitecommon; fi
23
dcc/whitecommon.dist
24
@exec [ -f %B/whitecommon ] || cp %B/%f %B/whitecommon
25
@unexec if cmp -s %D/dcc/whitelist %D/dcc/whitelist.dist; then rm -f %D/dcc/whitelist; fi
26
dcc/whitelist.dist
27
@exec [ -f %B/whitelist ] || cp %B/%f %B/whitelist
28
bin/cdcc
1
bin/cdcc
29
bin/dccif-test
2
%%WITH_DCCIFD%%bin/dccif-test
30
bin/dccproc
3
bin/dccproc
31
dcc/cgi-bin/README
4
dcc/cgi-bin/README
32
dcc/cgi-bin/chgpasswd
5
dcc/cgi-bin/chgpasswd
33
dcc/cgi-bin/common
6
dcc/cgi-bin/common
34
dcc/cgi-bin/edit-whiteclnt
7
dcc/cgi-bin/edit-whiteclnt
8
dcc/cgi-bin/footer
9
dcc/cgi-bin/header
35
dcc/cgi-bin/http2https
10
dcc/cgi-bin/http2https
36
dcc/cgi-bin/list-log
11
dcc/cgi-bin/list-log
37
dcc/cgi-bin/list-msg
12
dcc/cgi-bin/list-msg
38
dcc/cgi-bin/webuser-notify
13
dcc/cgi-bin/webuser-notify
39
dcc/libexec/cron-dccd
14
dcc/libexec/cron-dccd
40
%%WITH_DCCIFD%%dcc/libexec/dccifd
15
%%WITH_DCCIFD%%dcc/libexec/dccifd
41
%%WITH_SENDMAIL%%dcc/libexec/dccm
16
%%WITH_DCCM%%dcc/libexec/dccm
42
dcc/libexec/dbclean
17
%%WITH_DCCD%%dcc/libexec/dbclean
43
dcc/libexec/dblist
18
%%WITH_DCCD%%dcc/libexec/dblist
44
dcc/libexec/dcc-stats-collect
19
dcc/libexec/dcc-stats-collect
45
dcc/libexec/dcc-stats-graph
20
dcc/libexec/dcc-stats-graph
46
dcc/libexec/dcc-stats-init
21
dcc/libexec/dcc-stats-init
47
dcc/libexec/dccd
22
%%WITH_DCCD%%dcc/libexec/dccd
48
dcc/libexec/dccsight
23
dcc/libexec/dccsight
49
dcc/libexec/dns-helper
24
%%WITH_IFD_MILT%%dcc/libexec/dns-helper
50
dcc/libexec/fetchblack
25
dcc/libexec/fetchblack
26
dcc/libexec/fetchids
51
dcc/libexec/fetch-testmsg-whitelist
27
dcc/libexec/fetch-testmsg-whitelist
52
dcc/libexec/hackmc
28
dcc/libexec/hackmc
53
dcc/libexec/list-clients
29
dcc/libexec/list-clients
Lines 63-72 Link Here
63
dcc/libexec/updatedcc
39
dcc/libexec/updatedcc
64
dcc/libexec/uninstalldcc
40
dcc/libexec/uninstalldcc
65
dcc/libexec/wlist
41
dcc/libexec/wlist
66
dcc/cgi-bin/header
67
dcc/cgi-bin/footer
68
dcc/map
69
@dirrm dcc/log
70
@dirrm dcc/libexec
42
@dirrm dcc/libexec
71
@dirrm dcc/cgi-bin
43
@dirrm dcc/cgi-bin
72
@dirrmtry dcc
44
@dirrmtry dcc
45
%%WITH_DCCIFD%%@stopdaemon dccifd
46
%%WITH_DCCM%%@stopdaemon dccm
47
%%WITH_DCCD%%@stopdaemon dccd
48
%%WITH_DCCGREY%%@stopdaemon dccgrey
49
%%WITH_ALT_HOME%%@cwd /var
50
@unexec if cmp -s %D/dcc/dcc_conf %D/dcc/dcc_conf.sample; then rm -f %D/dcc/dcc_conf; fi
51
dcc/dcc_conf.sample
52
@exec [ -f %B/dcc_conf ] || cp %B/%f %B/dcc_conf
53
@unexec if cmp -s %D/dcc/flod %D/dcc/flod.sample; then rm -f %D/dcc/flod; fi
54
dcc/flod.sample
55
@unexec if cmp -s %D/dcc/grey_flod %D/dcc/grey_flod.sample; then rm -f %D/dcc/grey_flod; fi
56
dcc/grey_flod.sample
57
@unexec if cmp -s %D/dcc/grey_whitelist %D/dcc/grey_whitelist.sample; then rm -f %D/dcc/grey_whitelist; fi
58
dcc/grey_whitelist.sample
59
@unexec if cmp -s %D/dcc/ids %D/dcc/ids.sample; then rm -f %D/dcc/ids; fi
60
dcc/ids.sample
61
@unexec if cmp -s %D/dcc/map.txt %D/dcc/map.txt.sample; then rm -f %D/dcc/map.txt; fi
62
dcc/map.txt.sample
63
@unexec if cmp -s %D/dcc/map %D/dcc/map.sample; then rm -f %D/dcc/map; fi
64
dcc/map.sample
65
@unexec if cmp -s %D/dcc/whiteclnt %D/dcc/whiteclnt.sample; then rm -f %D/dcc/whiteclnt; fi
66
dcc/whiteclnt.sample
67
@unexec if cmp -s %D/dcc/whitecommon %D/dcc/whitecommon.sample; then rm -f %D/dcc/whitecommon; fi
68
dcc/whitecommon.sample
69
@unexec if cmp -s %D/dcc/whitelist %D/dcc/whitelist.sample; then rm -f %D/dcc/whitelist; fi
70
dcc/whitelist.sample
71
%%WITH_IFD_MILT%%@unexec [ -e %D/dcc/whiteclnt.dccw ] && rm -f %D/dcc/whiteclnt.dccw || true
72
%%WITH_IFD_MILT%%@unexec [ -e %D/dcc/whiteclnt.dccx ] && rm -f %D/dcc/whiteclnt.dccx || true
73
%%WITH_DCCD%%@unexec [ -e %D/dcc/dcc_db ] && rm -f %D/dcc/dcc_db || true
74
%%WITH_DCCD%%@unexec [ -e %D/dcc/dcc_db.hash ] && rm -f %D/dcc/dcc_db.hash || true
75
%%WITH_DCCD%%@unexec [ -e %D/dcc/flod.map ] && rm -f %D/dcc/flod.map || true
76
%%WITH_DCCD%%@unexec [ -e %D/dcc/dccd_clients ] && rm -f %D/dcc/dccd_clients || true
77
%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_db.hash ] && rm -f %D/dcc/grey_db.hash || true
78
%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_flod.map ] && rm -f %D/dcc/grey_flod.map || true
79
%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_clients ] && rm -f %D/dcc/grey_clients || true
80
@dirrm dcc/log
81
@dirrmtry dcc

Return to bug 121840