[Midnightbsd-cvs] mports [17353] trunk/mail: add dcc-dccd port.
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Tue Sep 16 18:44:13 EDT 2014
Revision: 17353
http://svnweb.midnightbsd.org/mports/?rev=17353
Author: laffer1
Date: 2014-09-16 18:44:12 -0400 (Tue, 16 Sep 2014)
Log Message:
-----------
add dcc-dccd port.
Modified Paths:
--------------
trunk/mail/Makefile
Added Paths:
-----------
trunk/mail/dcc-dccd/
trunk/mail/dcc-dccd/Makefile
trunk/mail/dcc-dccd/distinfo
trunk/mail/dcc-dccd/files/
trunk/mail/dcc-dccd/files/dccd.in
trunk/mail/dcc-dccd/files/dccgrey.in
trunk/mail/dcc-dccd/files/dccifd.in
trunk/mail/dcc-dccd/files/dccm.in
trunk/mail/dcc-dccd/files/pkg-install.in
trunk/mail/dcc-dccd/files/pkg-message.in
trunk/mail/dcc-dccd/pkg-descr
trunk/mail/dcc-dccd/pkg-plist
Modified: trunk/mail/Makefile
===================================================================
--- trunk/mail/Makefile 2014-09-16 03:27:03 UTC (rev 17352)
+++ trunk/mail/Makefile 2014-09-16 22:44:12 UTC (rev 17353)
@@ -12,6 +12,7 @@
SUBDIR += courier-pythonfilter
SUBDIR += couriergraph
SUBDIR += chk4mail
+SUBDIR += dcc-dccd
SUBDIR += dovecot
SUBDIR += dovecot2
SUBDIR += evolution
Added: trunk/mail/dcc-dccd/Makefile
===================================================================
--- trunk/mail/dcc-dccd/Makefile (rev 0)
+++ trunk/mail/dcc-dccd/Makefile 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,182 @@
+# $MidnightBSD$
+
+PORTNAME= dcc-dccd
+PORTVERSION= 1.3.141
+CATEGORIES= mail
+MASTER_SITES= http://www.dcc-servers.net/dcc/source/old/ \
+ http://www.rhyolite.com/anti-spam/dcc/source/old/ \
+ ftp://ftp.dcc-servers.net/src/dcc/old/ \
+ ftp://ftp.rhyolite.com/src/dcc/old/
+DISTNAME= dcc-${PORTVERSION}
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Distributed Checksum Clearinghouse bulk email detector
+
+LICENSE= DCC
+LICENSE_NAME= DCC
+LICENSE_FILE= ${WRKSRC}/LICENSE
+LICENSE_PERMS= no-pkg-sell no-dist-mirror no-pkg-mirror no-dist-sell
+
+HAS_CONFIGURE= yes
+MANCOMPRESSED= yes
+MAN8= cdcc.8 dbclean.8 dblist.8 dcc.8 dccd.8 dccifd.8 dccm.8 \
+ dccproc.8 dccsight.8
+
+#
+# ALT_HOME - DCC keeps its config files in its home directory but writes
+# status and database files there as well. This latter point
+# means that the FreeBSD default home directory for DCC,
+# /usr/local/dcc, cannot be mounted read-only.
+#
+# DCC's default home dir of /var/dcc breaks FreeBSD hierarchy
+# conventions, but allows for a read-only /usr.
+#
+# Setting ALT_HOME on will set DCC's home to /var/dcc, but
+# keep its binaries in /usr/local/dcc/libexec. Since this
+# also means DCC's config files will be in /var/dcc, for
+# convenience a soft link from /usr/local/etc/dcc to /var/dcc
+# may be created.
+#
+# Note also that dccifd's default socket location is DCC's
+# home, so if /var/dcc is used for the home, then programs
+# like SpamAssassin may need to be explicitly told where
+# to find dccifd's socket.
+#
+OPTIONS_DEFINE= DCCIFD DCCM DCCD DCCGREY IPV6 ALT_HOME PORTS_SENDMAIL
+OPTIONS_DEFAULT= DCCIFD DCCM DCCD DCCGREY
+DCCIFD_DESC= DCC interface daemon (for SpamAssassin etc)
+DCCM_DESC= DCC milter (for Sendmail only)
+DCCD_DESC= DCC server
+DCCGREY_DESC= DCC greylisting server
+ALT_HOME_DESC= DCC home in /var/dcc
+PORTS_SENDMAIL_DESC= Use base Sendmail if off, ports if on
+
+## User for DCC files and SUID binaries
+#
+DCCUSER?= dcc
+DCCGROUP?= dcc
+
+USERS= ${DCCUSER}
+GROUPS= ${DCCGROUP}
+
+PLIST_SUB+= DCCUSER="${DCCUSER}"
+
+## Use the configure script to explicitly set the locations of all files,
+## in case the standard locations have been locally overridden
+#
+CONFIGURE_ARGS= --with-uid=${DCCUSER} --bindir=${PREFIX}/bin --mandir=${MANPREFIX}/man --with-configsuffix=.sample
+
+.include <bsd.mport.options.mk>
+
+SUB_FILES= pkg-install pkg-message
+SUB_LIST+= WRKSRC=${WRKSRC} DCCHOME=${DCCHOME}
+
+## /var/dcc home support
+#
+.if ${PORT_OPTIONS:MALT_HOME}
+CONFIGURE_ARGS+= --libexecdir=${PREFIX}/dcc/libexec --with-cgibin=${PREFIX}/dcc/cgi-bin
+DCCHOME= /var/dcc
+PLIST_SUB+= WITH_ALT_HOME=""
+.else
+DCCHOME= ${PREFIX}/dcc
+PLIST_SUB+= WITH_ALT_HOME="@comment "
+.endif
+
+CONFIGURE_ARGS+= --homedir=${DCCHOME}
+
+## dccm milter support
+#
+.if ${PORT_OPTIONS:MDCCM}
+
+.if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a)
+IGNORE= neither base system nor Ports version of Sendmail installed, cannot build milter
+.endif
+.if ! ${PORT_OPTIONS:MPORTS_SENDMAIL} && !exists(/usr/lib/libmilter.a)
+IGNORE= base system Sendmail not found or too old, rebuild with WITH_PORTS_SENDMAIL=yes or WITHOUT_DCCM=yes
+.endif
+.if ${PORT_OPTIONS:MPORTS_SENDMAIL} && !exists(${LOCALBASE}/lib/libmilter.a)
+IGNORE= ports Sendmail not found, rebuild with WITHOUT_PORTS_SENDMAIL=yes or WITHOUT_DCCM=yes
+.endif
+
+.if ! ${PORT_OPTIONS:MPORTS_SENDMAIL}
+MILTERBASE= /usr
+.else
+BUILD_DEPENDS+= ${LOCALBASE}/lib/libmilter.a:${PORTSDIR}/mail/sendmail
+MILTERBASE?= ${LOCALBASE}
+.endif
+
+MILTERINC= ${MILTERBASE}/include
+MILTERLIB= ${MILTERBASE}/lib
+
+CPPFLAGS+= -I${MILTERINC}
+CFLAGS+= -I${MILTERINC}
+LDFLAGS+= -L${MILTERLIB}
+
+CONFIGURE_ARGS+= --with-sendmail=yes
+
+PLIST_SUB+= WITH_DCCM=""
+
+USE_RC_SUBR+= dccm
+
+.else
+CONFIGURE_ARGS+= --disable-dccm
+PLIST_SUB+= WITH_DCCM="@comment "
+.endif
+
+## dccifd client interface daemon support
+#
+.if ! ${PORT_OPTIONS:MDCCIFD}
+CONFIGURE_ARGS+= --disable-dccifd
+PLIST_SUB+= WITH_DCCIFD="@comment "
+.else
+PLIST_SUB+= WITH_DCCIFD=""
+USE_RC_SUBR+= dccifd
+.endif
+
+## dccd server support
+#
+.if ! ${PORT_OPTIONS:MDCCD} && ! ${PORT_OPTIONS:MDCCGREY}
+CONFIGURE_ARGS+= --disable-server
+PLIST_SUB+= WITH_DCCD="@comment "
+.else
+PLIST_SUB+= WITH_DCCD=""
+.endif
+
+## IPV6 support
+#
+.if ! ${PORT_OPTIONS:MIPV6}
+CONFIGURE_ARGS+= --disable-IPv6
+.endif
+
+## Packing list and rcNG script fixups
+#
+.if ! ${PORT_OPTIONS:MDCCIFD} && ! ${PORT_OPTIONS:MDCCM}
+PLIST_SUB+= WITH_IFD_MILT="@comment "
+.else
+PLIST_SUB+= WITH_IFD_MILT=""
+.endif
+
+.if ${PORT_OPTIONS:MDCCD}
+USE_RC_SUBR+= dccd
+.endif
+
+.if ${PORT_OPTIONS:MDCCGREY}
+USE_RC_SUBR+= dccgrey
+PLIST_SUB+= WITH_DCCGREY=""
+.else
+PLIST_SUB+= WITH_DCCGREY="@comment "
+.endif
+
+pre-everything::
+ @${ECHO_MSG} ' '
+ @${ECHO_MSG} "A description of ALT_HOME may be found in the port's Makefile."
+ @${ECHO_MSG} ' '
+
+post-install:
+
+## Make certain DCC's config files are owned by DCC's user
+#
+ @${CHOWN} ${DCCUSER} ${DCCHOME}/*
+
+.include <bsd.port.mk>
Added: trunk/mail/dcc-dccd/distinfo
===================================================================
--- trunk/mail/dcc-dccd/distinfo (rev 0)
+++ trunk/mail/dcc-dccd/distinfo 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,2 @@
+SHA256 (dcc-1.3.141.tar.Z) = b13e339fc1505ecf7d3784de49953b7002243d63a163884a572ee5e933adbe77
+SIZE (dcc-1.3.141.tar.Z) = 1682913
Added: trunk/mail/dcc-dccd/files/dccd.in
===================================================================
--- trunk/mail/dcc-dccd/files/dccd.in (rev 0)
+++ trunk/mail/dcc-dccd/files/dccd.in 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,72 @@
+#!/bin/sh
+
+# $FreeBSD: head/mail/dcc-dccd/files/dccd.in 340872 2014-01-24 00:14:07Z mat $
+#
+# PROVIDE: dccd
+# REQUIRE: LOGIN
+# BEFORE: mail
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf:
+#
+#dccd_enable="YES"
+#
+# and in %%DCCHOME%%/dcc_conf change:
+#
+#DCCD_ENABLE=off
+#
+# to:
+#
+#DCCD_ENABLE=on
+#
+#
+# See %%DCCHOME%%/dcc_conf to configure startup options
+
+. /etc/rc.subr
+
+name=dccd
+rcvar=dccd_enable
+
+load_rc_config $name
+
+# Set defaults
+: ${dccd_enable:="NO"}
+: ${dccd_home="%%DCCHOME%%"}
+: ${dccd_libexec="%%PREFIX%%/dcc/libexec"}
+: ${dccd_conf="$dccd_home/dcc_conf"}
+
+
+procname="${dccd_libexec}/dccd"
+required_dirs="${dccd_home} ${dccd_libexec}"
+required_files="${dccd_conf} ${dccd_libexec}/rcDCC"
+
+start_cmd="start_dccd"
+stop_cmd="stop_dccd"
+start_precmd="start_precmd"
+
+
+start_precmd()
+{
+X=`grep ^DCCD_ENABLE ${dccd_conf}`
+eval $X
+if [ "$DCCD_ENABLE" != "on" ]
+then
+ echo "Warning ${X} needs to be on in ${dccd_conf} to start the dccd server"
+ return 1
+fi
+}
+
+start_dccd()
+{
+ echo Starting dccd.
+ ${dccd_libexec}/rcDCC -m dccd start
+}
+
+stop_dccd()
+{
+ echo Stopping dccd.
+ ${dccd_libexec}/rcDCC -m dccd stop
+}
+
+run_rc_command "$1"
+
Added: trunk/mail/dcc-dccd/files/dccgrey.in
===================================================================
--- trunk/mail/dcc-dccd/files/dccgrey.in (rev 0)
+++ trunk/mail/dcc-dccd/files/dccgrey.in 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,73 @@
+#!/bin/sh
+
+# $FreeBSD: head/mail/dcc-dccd/files/dccgrey.in 340872 2014-01-24 00:14:07Z mat $
+#
+# PROVIDE: dccgrey
+# REQUIRE: LOGIN
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf:
+#
+#dccgrey_enable="YES"
+#
+# and in %%DCCHOME%%/dcc_conf change:
+#
+#GREY_ENABLE=
+#
+# to:
+#
+#GREY_ENABLE=on
+#
+#
+# See %%DCCHOME%%/dcc_conf to configure startup options
+
+. /etc/rc.subr
+
+name=dccgrey
+rcvar=dccgrey_enable
+
+load_rc_config $name
+
+# Set defaults
+: ${dccgrey_enable:="NO"}
+: ${dccgrey_home="%%DCCHOME%%"}
+: ${dccgrey_libexec="%%PREFIX%%/dcc/libexec"}
+: ${dccgrey_conf="$dccgrey_home/dcc_conf"}
+
+
+procname="${dccgrey_libexec}/dccd"
+required_dirs="${dccgrey_home} ${dccgrey_libexec}"
+required_files="${dccgrey_conf} ${dccgrey_libexec}/rcDCC"
+
+start_cmd="start_dccgrey"
+stop_cmd="stop_dccgrey"
+start_precmd="start_precmd"
+
+
+start_precmd()
+{
+X=`grep ^GREY_ENABLE ${dccgrey_conf}`
+eval $X
+if [ "$GREY_ENABLE" != "on" ]
+then
+ echo "Warning ${X} needs to be on in ${dccgrey_conf} to start the DCC greylisting server"
+ return 1
+fi
+}
+
+start_dccgrey()
+{
+ echo Starting dccgrey.
+ ${dccgrey_libexec}/rcDCC -m grey start
+}
+
+stop_dccgrey()
+{
+ echo Stopping dccgrey.
+ ${dccgrey_libexec}/rcDCC -m grey stop
+}
+
+run_rc_command "$1"
+
Added: trunk/mail/dcc-dccd/files/dccifd.in
===================================================================
--- trunk/mail/dcc-dccd/files/dccifd.in (rev 0)
+++ trunk/mail/dcc-dccd/files/dccifd.in 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# $FreeBSD: head/mail/dcc-dccd/files/dccifd.in 340872 2014-01-24 00:14:07Z mat $
+#
+# PROVIDE: dccifd
+# REQUIRE: LOGIN
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# To enable dccifd add the following lines to /etc/rc.conf:
+#
+#dccifd_enable="YES"
+#
+# and in %%DCCHOME%%/dcc_conf change:
+#
+#DCCIFD_ENABLE=off
+#
+# to:
+#
+#DCCIFD_ENABLE=on
+#
+#
+# See %%DCCHOME%%/dcc_conf to configure startup options
+
+. /etc/rc.subr
+
+name=dccifd
+rcvar=dccifd_enable
+
+load_rc_config $name
+
+# Set defaults
+: ${dccifd_enable:="NO"}
+: ${dccifd_home="%%DCCHOME%%"}
+: ${dccifd_libexec="%%PREFIX%%/dcc/libexec"}
+: ${dccifd_conf="$dccifd_home/dcc_conf"}
+
+pidfile=${dccifd_pidfile:-"/var/run/dcc/dccifd.pid"}
+procname="${dccifd_libexec}/dccifd"
+required_dirs="${dccifd_home} ${dccifd_libexec}"
+required_files="${dccifd_conf} ${dccifd_libexec}/rcDCC"
+
+start_precmd="start_precmd"
+start_cmd="start_dcc"
+
+start_precmd()
+{
+X=`grep ^DCCIFD_ENABLE ${dccifd_conf}`
+eval $X
+if [ "$DCCIFD_ENABLE" != "on" ]
+then
+ echo "Warning ${X} needs to be on in ${dccifd_conf} to start dccifd"
+ return 1
+fi
+}
+
+start_dcc()
+{
+ echo Starting dccifd.
+ ${dccifd_libexec}/rcDCC -m dccifd start
+}
+
+run_rc_command "$1"
Added: trunk/mail/dcc-dccd/files/dccm.in
===================================================================
--- trunk/mail/dcc-dccd/files/dccm.in (rev 0)
+++ trunk/mail/dcc-dccd/files/dccm.in 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,64 @@
+#!/bin/sh
+
+# $FreeBSD: head/mail/dcc-dccd/files/dccm.in 340872 2014-01-24 00:14:07Z mat $
+#
+# PROVIDE: dccm
+# REQUIRE: LOGIN
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# To enable dccm add the following lines to /etc/rc.conf:
+#
+#dccm_enable="YES"
+#
+# and in %%DCCHOME%%/dcc_conf change:
+#
+#DCCM_ENABLE=off
+#
+# to:
+#
+#DCCM_ENABLE=on
+#
+#
+# See %%DCCHOME%%/dcc_conf to configure startup options
+
+. /etc/rc.subr
+
+name=dccm
+rcvar=dccm_enable
+
+load_rc_config $name
+
+# Set defaults
+: ${dccm_enable:="NO"}
+: ${dccm_home="%%DCCHOME%%"}
+: ${dccm_libexec="%%PREFIX%%/dcc/libexec"}
+: ${dccm_conf="$dccm_home/dcc_conf"}
+
+pidfile=${dccm_pidfile:-"/var/run/dcc/dccm.pid"}
+procname="${dccm_libexec}/dccm"
+required_dirs="${dccm_home} ${dccm_libexec}"
+required_files="${dccm_conf} ${dccm_libexec}/rcDCC"
+
+start_precmd="start_precmd"
+start_cmd="start_dcc"
+
+start_precmd()
+{
+X=`grep ^DCCM_ENABLE ${dccm_conf}`
+eval $X
+if [ "$DCCM_ENABLE" != "on" ]
+then
+ echo "Warning ${X} needs to be on in ${dccm_conf} to start dccm"
+ return 1
+fi
+}
+
+start_dcc()
+{
+ echo Starting dccm.
+ ${dccm_libexec}/rcDCC -m dccm start
+}
+
+run_rc_command "$1"
Added: trunk/mail/dcc-dccd/files/pkg-install.in
===================================================================
--- trunk/mail/dcc-dccd/files/pkg-install.in (rev 0)
+++ trunk/mail/dcc-dccd/files/pkg-install.in 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,26 @@
+#!/bin/sh
+# $FreeBSD: /tmp/pcvs/ports/mail/dcc-dccd/files/pkg-install.in,v 1.2 2011-07-04 19:39:45 crees Exp $
+
+PREFIX=${PKG_PREFIX:-%%PREFIX%%}
+
+DCCHOME=%%DCCHOME%%
+
+if [ "$2" = "POST-INSTALL" ]; then
+
+ echo "=> Generating unique passwords for your DCC install..."
+ echo "=>"
+ echo "=> Note this will make map.sample, map.txt.sample and"
+ echo "=> ids.sample fail their MD5 checks on package removal."
+
+ /bin/sh $PREFIX/dcc/libexec/fix-map \
+ -n .sample \
+ -I $DCCHOME/ids.sample -i $DCCHOME/ids \
+ -T $DCCHOME/map.txt.sample -t $DCCHOME/map.txt \
+ -m $DCCHOME/map
+
+ for file in ids map map.txt ; do
+ /bin/cp -p $DCCHOME/$file $DCCHOME/${file}.sample
+ done
+fi
+
+exit 0
Added: trunk/mail/dcc-dccd/files/pkg-message.in
===================================================================
--- trunk/mail/dcc-dccd/files/pkg-message.in (rev 0)
+++ trunk/mail/dcc-dccd/files/pkg-message.in 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,53 @@
+
+==========================================================================
+
+Installation Notes
+------------------
+
+Make certain you edit %%DCCHOME%%/dcc_conf to enable the daemons you
+wish to run, in addition to adding their respective dcc*_enable="YES"
+lines to /etc/rc.conf or /etc/rc.conf.local.
+
+Daemon startup flags are also specified in %%DCCHOME%%/dcc_conf.
+
+
+If you run the DCC server, %%LOCALBASE%%/dcc/libexec/cron-dccd should be
+run at least daily from the crontab to clean old checksums from the DB.
+
+
+If you just run the client, you may still wish to add
+%%LOCALBASE%%/dcc/libexec/cron-dccd to your crontab to clean up the
+client's log files on a regular basis. dcc_conf's DBCLEAN_LOGDAYS
+variable controls the number of days to keep logs.
+
+
+If your site handles more than 100,000 messages per day, to decrease the
+load on the public DCC servers and increase the responsiveness of your
+DCC clients, you should set up your own, local DCC server connected to
+the global network of DCC servers. See:
+
+http://www.dcc-servers.net/dcc/#local-server
+
+
+==========================================================================
+
+
+DCC Usage Restrictions Notice
+-----------------------------
+
+The free DCC source is available only for non-commercial and some other
+uses. It is not available to organizations that sell anti-spam appliances
+or provide managed email services as opposed to common Internet service.
+It has always been wrong to take and sell the CPU cycles, bandwidth, and
+human system administration labor of the public DCC servers.
+
+Please read the LICENSE file in the DCC source:
+
+%%WRKSRC%%/LICENSE
+
+or at:
+
+http://www.dcc-servers.net/dcc/dcc-tree/LICENSE
+
+
+==========================================================================
Added: trunk/mail/dcc-dccd/pkg-descr
===================================================================
--- trunk/mail/dcc-dccd/pkg-descr (rev 0)
+++ trunk/mail/dcc-dccd/pkg-descr 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,9 @@
+This is the Distributed Checksum Clearinghouse (DCC) package, including
+the command line (e.g. procmail) interface, dccproc; the SpamAssassin
+and Postfix interface, dccifd; the Sendmail milter interface, dccm;
+the DCC server, dccd; and the DCC greylisting server, dccd-grey.
+
+Also included are utilities such as cdcc and all of the manual pages
+and documentation.
+
+WWW: http://www.rhyolite.com/dcc/
Added: trunk/mail/dcc-dccd/pkg-plist
===================================================================
--- trunk/mail/dcc-dccd/pkg-plist (rev 0)
+++ trunk/mail/dcc-dccd/pkg-plist 2014-09-16 22:44:12 UTC (rev 17353)
@@ -0,0 +1,119 @@
+bin/cdcc
+%%WITH_DCCIFD%%bin/dccif-test
+bin/dccproc
+dcc/cgi-bin/README
+dcc/cgi-bin/chgpasswd
+dcc/cgi-bin/common
+dcc/cgi-bin/common.pm
+dcc/cgi-bin/edit-whiteclnt
+dcc/cgi-bin/footer
+dcc/cgi-bin/header
+dcc/cgi-bin/http2https
+dcc/cgi-bin/list-log
+dcc/cgi-bin/list-msg
+dcc/cgi-bin/webuser-notify
+dcc/cgi-bin/footer-dist
+dcc/cgi-bin/header-dist
+dcc/libexec/check_ip_range
+dcc/libexec/ck2ip
+dcc/libexec/cron-dccd
+%%WITH_DCCIFD%%dcc/libexec/dccifd
+%%WITH_DCCM%%dcc/libexec/dccm
+%%WITH_DCCD%%dcc/libexec/dbclean
+%%WITH_DCCD%%dcc/libexec/dblist
+%%WITH_DCCD%%dcc/libexec/dump-clients
+dcc/libexec/dcc-nagios
+dcc/libexec/dcc-stats-collect
+dcc/libexec/dcc-stats-graph
+dcc/libexec/dcc-stats-init
+dcc/libexec/dcc-stats-update
+%%WITH_DCCD%%dcc/libexec/dccd
+dcc/libexec/dccsight
+%%WITH_IFD_MILT%%dcc/libexec/dns-helper
+dcc/libexec/fetchblack
+dcc/libexec/fetchids
+dcc/libexec/fetch-testmsg-whitelist
+dcc/libexec/fix-map
+dcc/libexec/hackmc
+dcc/libexec/list-clients
+dcc/libexec/logger
+dcc/libexec/newwebuser
+dcc/libexec/rcDCC
+dcc/libexec/start-dccd
+dcc/libexec/start-dccifd
+dcc/libexec/start-dccm
+dcc/libexec/start-grey
+dcc/libexec/stats-get
+dcc/libexec/stop-dccd
+dcc/libexec/updatedcc
+dcc/libexec/uninstalldcc
+dcc/libexec/wlist
+ at dirrm dcc/libexec
+ at dirrm dcc/cgi-bin
+ at dirrmtry dcc
+%%WITH_DCCIFD%%@stopdaemon dccifd
+%%WITH_DCCM%%@stopdaemon dccm
+%%WITH_DCCD%%@stopdaemon dccd
+%%WITH_DCCGREY%%@stopdaemon dccgrey
+%%WITH_ALT_HOME%%@cwd /var
+ at comment -------------------------
+ at comment The next group of three-line sets install/remove the config files
+ at comment
+ at comment **** on uninstall, delete the config file if it matches the sample file
+ at unexec if cmp -s %D/dcc/dcc_conf %D/dcc/dcc_conf.sample; then rm -f %D/dcc/dcc_conf; fi
+ at comment
+ at comment **** the sample file is unilaterally installed/removed
+dcc/dcc_conf.sample
+ at comment
+ at comment **** on install, the config file is created from the sample file if it doesn't exist
+ at exec [ -f %B/dcc_conf ] || cp %B/%f %B/dcc_conf
+ at comment
+ at unexec if cmp -s %D/dcc/flod %D/dcc/flod.sample; then rm -f %D/dcc/flod; fi
+dcc/flod.sample
+ at exec [ -f %B/flod ] || cp %B/%f %B/flod
+ at comment
+ at unexec if cmp -s %D/dcc/grey_flod %D/dcc/grey_flod.sample; then rm -f %D/dcc/grey_flod; fi
+dcc/grey_flod.sample
+ at exec [ -f %B/grey_flod ] || cp %B/%f %B/grey_flod
+ at comment
+ at unexec if cmp -s %D/dcc/grey_whitelist %D/dcc/grey_whitelist.sample; then rm -f %D/dcc/grey_whitelist; fi
+dcc/grey_whitelist.sample
+ at exec [ -f %B/grey_whitelist ] || cp %B/%f %B/grey_whitelist
+ at comment
+ at unexec if cmp -s %D/dcc/ids %D/dcc/ids.sample; then rm -f %D/dcc/ids; fi
+dcc/ids.sample
+ at exec [ -f %B/ids ] || cp -p %B/%f %B/ids
+ at comment
+ at unexec if cmp -s %D/dcc/map.txt %D/dcc/map.txt.sample; then rm -f %D/dcc/map.txt; fi
+dcc/map.txt.sample
+ at exec [ -f %B/map.txt ] || cp -p %B/%f %B/map.txt
+ at comment
+ at unexec if cmp -s %D/dcc/map %D/dcc/map.sample; then rm -f %D/dcc/map; fi
+dcc/map.sample
+ at exec [ -f %B/map ] || cp -p %B/%f %B/map
+ at comment
+ at unexec if cmp -s %D/dcc/whiteclnt %D/dcc/whiteclnt.sample; then rm -f %D/dcc/whiteclnt; fi
+dcc/whiteclnt.sample
+ at exec [ -f %B/whiteclnt ] || cp %B/%f %B/whiteclnt
+ at comment
+ at unexec if cmp -s %D/dcc/whitecommon %D/dcc/whitecommon.sample; then rm -f %D/dcc/whitecommon; fi
+dcc/whitecommon.sample
+ at exec [ -f %B/whitecommon ] || cp %B/%f %B/whitecommon
+ at comment
+ at unexec if cmp -s %D/dcc/whitelist %D/dcc/whitelist.sample; then rm -f %D/dcc/whitelist; fi
+dcc/whitelist.sample
+ at exec [ -f %B/whitelist ] || cp %B/%f %B/whitelist
+ at comment
+%%WITH_IFD_MILT%%@unexec [ -e %D/dcc/whiteclnt.dccw ] && rm -f %D/dcc/whiteclnt.dccw || true
+%%WITH_IFD_MILT%%@unexec [ -e %D/dcc/whiteclnt.dccx ] && rm -f %D/dcc/whiteclnt.dccx || true
+%%WITH_DCCD%%@unexec [ -e %D/dcc/dcc_db ] && rm -f %D/dcc/dcc_db || true
+%%WITH_DCCD%%@unexec [ -e %D/dcc/dcc_db.hash ] && rm -f %D/dcc/dcc_db.hash || true
+%%WITH_DCCD%%@unexec [ -e %D/dcc/flod.map ] && rm -f %D/dcc/flod.map || true
+%%WITH_DCCD%%@unexec [ -e %D/dcc/dccd_clients ] && rm -f %D/dcc/dccd_clients || true
+%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_db.hash ] && rm -f %D/dcc/grey_db.hash || true
+%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_flod.map ] && rm -f %D/dcc/grey_flod.map || true
+%%WITH_DCCGREY%%@unexec [ -e %D/dcc/grey_clients ] && rm -f %D/dcc/grey_clients || true
+ at exec mkdir -p %D/dcc/log
+ at exec chown -R %%DCCUSER%% %D/dcc
+ at dirrmtry dcc/log
+ at dirrmtry dcc
More information about the Midnightbsd-cvs
mailing list