diff options
author | lawrance <lawrance@FreeBSD.org> | 2005-07-30 23:32:53 +0800 |
---|---|---|
committer | lawrance <lawrance@FreeBSD.org> | 2005-07-30 23:32:53 +0800 |
commit | 169db04a4a2ccdfeb31a2db3b22e7e8417673e0e (patch) | |
tree | 2aaabf83c124b1fd36e6b9edee9a63e30c426cbb /mail/dspam-devel | |
parent | bdcc9fb7b938c1febf62475613e0a307addf5429 (diff) | |
download | freebsd-ports-gnome-169db04a4a2ccdfeb31a2db3b22e7e8417673e0e.tar.gz freebsd-ports-gnome-169db04a4a2ccdfeb31a2db3b22e7e8417673e0e.tar.zst freebsd-ports-gnome-169db04a4a2ccdfeb31a2db3b22e7e8417673e0e.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>
Diffstat (limited to 'mail/dspam-devel')
-rw-r--r-- | mail/dspam-devel/files/dspam-devel.sh.in | 41 |
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" |