summaryrefslogtreecommitdiff
path: root/mail/dspampd/files/dspampd.rc
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2005-01-12 08:15:05 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2005-01-12 08:15:05 +0000
commit585a173f2dd9c7ea9339b051c5837c46662c7725 (patch)
tree1364e031603527db4085ee22de2c389587eb8bed /mail/dspampd/files/dspampd.rc
parentmail-dspam-devel: corect deinstall, package, describe; update; bugfixes; ....... (diff)
[NEW PORT] mail/dspampd
DspamPD is a GPL'ed transparent smtp proxy which can do content scanning through DSPAM and/or ClamAV... DspamPD version v2.00 supports DSPAM version 3.x, both stable and -devel ports and both clamav ports. The attached shar will create the port for you. PR: ports/76118 Submitted by: Ion-Mihai "IOnut" Tetcu <itetcu@people.tecnik93.com>
Diffstat (limited to 'mail/dspampd/files/dspampd.rc')
-rw-r--r--mail/dspampd/files/dspampd.rc40
1 files changed, 40 insertions, 0 deletions
diff --git a/mail/dspampd/files/dspampd.rc b/mail/dspampd/files/dspampd.rc
new file mode 100644
index 000000000000..a8306e362941
--- /dev/null
+++ b/mail/dspampd/files/dspampd.rc
@@ -0,0 +1,40 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+# PROVIDE: dspampd
+# REQUIRE: LOGIN %%CLAMAV%% %%DSPAM%%
+# BEFORE: mail
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following lines to /etc/rc.conf[.local] to enable dspampd:
+#
+#dspampd_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=dspampd
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/sbin/dspampd > /dev/null 2>&1
+pidfile=/var/run/dspampd.pid
+required_dirs=%%ARCHIVE_DIR%%
+required_files=%%CONF_DIR%%/dspampd.conf
+
+stop_postcmd=stop_postcmd
+
+stop_postcmd()
+{
+ rm -f $pidfile
+}
+
+# set defaults
+
+dspampd_enable=${dspampd_enable:-"NO"}
+dspampd_flags=${dspampd_flags:-"--daemon"}
+
+load_rc_config $name
+run_rc_command "$1"