summaryrefslogtreecommitdiff
path: root/mail/dcc/files
diff options
context:
space:
mode:
authorgdt <gdt>2010-10-27 12:26:37 +0000
committergdt <gdt>2010-10-27 12:26:37 +0000
commitcc21502cf8425e8ad2dfb0f66fca4df0aada7693 (patch)
tree176540da29c62cbcc02c6b69d993b2a3cff7f7dc /mail/dcc/files
parent3b6fde0643313895a4971a375a00af7dcbd8cd15 (diff)
downloadpkgsrc-cc21502cf8425e8ad2dfb0f66fca4df0aada7693.tar.gz
Import dcc-1.3.123 as mail/dcc from wip/dcc.
The Distributed Checksum Clearinghouses or DCC is an anti-spam content filter that runs on a variety of operating systems. As of the middle of 2007, it involves millions of users, more than six hundred thousand client computer systems, and more than 250 servers collecting and counting checksums related to more than 300 million mail messages on week days. The counts can be used by SMTP servers and mail user agents to detect and reject or filter spam or unsolicited bulk mail. DCC servers exchange or "flood" common checksums. The checksums include values that are constant across common variations in bulk messages, including "personalizations".
Diffstat (limited to 'mail/dcc/files')
-rw-r--r--mail/dcc/files/dcc-spamassassin.pre28
-rw-r--r--mail/dcc/files/dccd.sh42
-rw-r--r--mail/dcc/files/dccifd.sh42
-rw-r--r--mail/dcc/files/dccm.sh42
4 files changed, 154 insertions, 0 deletions
diff --git a/mail/dcc/files/dcc-spamassassin.pre b/mail/dcc/files/dcc-spamassassin.pre
new file mode 100644
index 00000000000..f0e05d2c6d0
--- /dev/null
+++ b/mail/dcc/files/dcc-spamassassin.pre
@@ -0,0 +1,28 @@
+#
+# spamassassin configuration example
+#
+#
+# Copy this file into the main SpamAssassin configuration directory
+# and restart spamd in order to initialize DCC.pm properly. Use
+# dcc_dccifd_path instead of dcc_home if your dccifd-socket is not
+# in @DCC_HOME@ or has a different name (`dccifd' is default).
+#
+# Also make sure that dccifd is running or SpamAssassin won't be
+# able to find the socket and will fall back to dccproc. There is
+# nothing wrong with that -- dccifd is just considered to be more
+# efficient than dccproc.
+
+
+# load DCC.pm
+#
+loadplugin Mail::SpamAssassin::Plugin::DCC
+
+
+# DCC home directory
+#
+dcc_home @DCC_HOME@
+
+
+# path to dccifd socket
+#
+#dcc_dccifd_path @DCC_HOME@/dccifd
diff --git a/mail/dcc/files/dccd.sh b/mail/dcc/files/dccd.sh
new file mode 100644
index 00000000000..28e8f6d94ac
--- /dev/null
+++ b/mail/dcc/files/dccd.sh
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dccd.sh,v 1.1.1.1 2010/10/27 12:26:37 gdt Exp $
+#
+#
+# PROVIDE: dccd
+# REQUIRE: DAEMON
+# BEFORE: mail spamd
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="dccd"
+rcvar="${name}"
+start_precmd="dcc_precmd"
+command="@PREFIX@/libexec/start-${name}"
+procname="@PREFIX@/libexec/${name}"
+pidfile="@DCC_RUN@/${name}.pid"
+#
+#
+# start-dcc{d,ifd,m} understands certain flags while
+# it passes everything behind -a to dcc{d,ifd,m}
+#
+#
+dcc_precmd()
+{
+ if [ -n "${rc_flags}" ]; then
+ rc_flags="-a '${rc_flags}'"
+ fi
+
+ eval dcc_start_flags=\$${name}_start_flags
+ if [ -n "${dcc_start_flags}" ]; then
+ rc_flags="${dcc_start_flags} ${rc_flags}"
+ fi
+
+ if [ -n "${command_args}" ]; then
+ rc_flags="${command_args} ${rc_flags}"
+ unset command_args
+ fi
+}
+
+load_rc_config "${name}"
+run_rc_command "${1}"
diff --git a/mail/dcc/files/dccifd.sh b/mail/dcc/files/dccifd.sh
new file mode 100644
index 00000000000..be9c53b569c
--- /dev/null
+++ b/mail/dcc/files/dccifd.sh
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dccifd.sh,v 1.1.1.1 2010/10/27 12:26:37 gdt Exp $
+#
+#
+# PROVIDE: dccifd
+# REQUIRE: DAEMON
+# BEFORE: mail spamd
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="dccifd"
+rcvar="${name}"
+start_precmd="dcc_precmd"
+command="@PREFIX@/libexec/start-${name}"
+procname="@PREFIX@/libexec/${name}"
+pidfile="@DCC_RUN@/${name}.pid"
+#
+#
+# start-dcc{d,ifd,m} understands certain flags while
+# it passes everything behind -a to dcc{d,ifd,m}
+#
+#
+dcc_precmd()
+{
+ if [ -n "${rc_flags}" ]; then
+ rc_flags="-a '${rc_flags}'"
+ fi
+
+ eval dcc_start_flags=\$${name}_start_flags
+ if [ -n "${dcc_start_flags}" ]; then
+ rc_flags="${dcc_start_flags} ${rc_flags}"
+ fi
+
+ if [ -n "${command_args}" ]; then
+ rc_flags="${command_args} ${rc_flags}"
+ unset command_args
+ fi
+}
+
+load_rc_config "${name}"
+run_rc_command "${1}"
diff --git a/mail/dcc/files/dccm.sh b/mail/dcc/files/dccm.sh
new file mode 100644
index 00000000000..4f117188336
--- /dev/null
+++ b/mail/dcc/files/dccm.sh
@@ -0,0 +1,42 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: dccm.sh,v 1.1.1.1 2010/10/27 12:26:37 gdt Exp $
+#
+#
+# PROVIDE: dccm
+# REQUIRE: DAEMON
+# BEFORE: mail spamd
+
+$_rc_subr_loaded . /etc/rc.subr
+
+name="dccm"
+rcvar="${name}"
+start_precmd="dcc_precmd"
+command="@PREFIX@/libexec/start-${name}"
+procname="@PREFIX@/libexec/${name}"
+pidfile="@DCC_RUN@/${name}.pid"
+#
+#
+# start-dcc{d,ifd,m} understands certain flags while
+# it passes everything behind -a to dcc{d,ifd,m}
+#
+#
+dcc_precmd()
+{
+ if [ -n "${rc_flags}" ]; then
+ rc_flags="-a '${rc_flags}'"
+ fi
+
+ eval dcc_start_flags=\$${name}_start_flags
+ if [ -n "${dcc_start_flags}" ]; then
+ rc_flags="${dcc_start_flags} ${rc_flags}"
+ fi
+
+ if [ -n "${command_args}" ]; then
+ rc_flags="${command_args} ${rc_flags}"
+ unset command_args
+ fi
+}
+
+load_rc_config "${name}"
+run_rc_command "${1}"