aboutsummaryrefslogtreecommitdiff
path: root/mail/dspam-devel/files
diff options
context:
space:
mode:
authorSam Lawrance <lawrance@FreeBSD.org>2005-07-30 15:32:53 +0000
committerSam Lawrance <lawrance@FreeBSD.org>2005-07-30 15:32:53 +0000
commitf696d5c806948956180d38cd1b337ae4ab3836de (patch)
treedeef27b4fd9b1faeb03ab8ee748198e739e75a6e /mail/dspam-devel/files
parent5715b416e012203f920116471cbb6fec23411480 (diff)
downloadports-f696d5c806948956180d38cd1b337ae4ab3836de.tar.gz
ports-f696d5c806948956180d38cd1b337ae4ab3836de.zip
Add a file I missed on the last commit, which was:
Update to 3.5.2 cvs-snap of 20050725.0800 PR: ports/84301 Submitted by: Ion-Mihai Tetcu <itetcu@people.tecnik93.com> (maintainer) Misc. kudos: Jens Holmqvist <zparta@hispan.se> Elliot Finley <efinley@efinley.com> Alexandr Smirnov <phpclub@rambler.ru>
Notes
Notes: svn path=/head/; revision=140475
Diffstat (limited to 'mail/dspam-devel/files')
-rw-r--r--mail/dspam-devel/files/dspam-devel.sh.in41
1 files changed, 41 insertions, 0 deletions
diff --git a/mail/dspam-devel/files/dspam-devel.sh.in b/mail/dspam-devel/files/dspam-devel.sh.in
new file mode 100644
index 000000000000..0e9e61342b2c
--- /dev/null
+++ b/mail/dspam-devel/files/dspam-devel.sh.in
@@ -0,0 +1,41 @@
+#!/bin/sh
+# $FreeBSD$
+# formerly $ FreeBSD: ports/mail/dspam-devel/files/dspam.rc,v 1.2 2005/02/25 03:09:26 leeym Exp $
+#
+
+# PROVIDE: dspam
+# REQUIRE: LOGIN NETWORKING SERVERS %%MYSQL%% %%CLAMD%%
+# BEFORE: mail
+# KEYWORD: shutdown
+
+#
+# Add the following lines to /etc/rc.conf[.local] to enable dspam:
+#
+# dspam_enable="YES"
+#
+
+. %%RC_SUBR%%
+
+name=dspam
+rcvar=`set_rcvar`
+
+command=%%PREFIX%%/bin/${name}
+command_args="--daemon > /dev/null 2>&1 &"
+pidfile=/var/run/${name}.pid
+required_dirs=%%DSPAM_HOME%%
+required_files=%%PREFIX%%/etc/${name}.conf
+
+extra_commands=reload
+
+reload()
+{
+ kill -HUP `cat $pidfile`
+}
+
+# set defaults
+
+dspam_enable=${dspam_enable:-"NO"}
+#dspam_flags=${dspam_flags:-"--daemon &"}
+
+load_rc_config $name
+run_rc_command "$1"