aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--security/clamsmtp/Makefile2
-rw-r--r--security/clamsmtp/files/clamsmtpd.sh.in11
2 files changed, 7 insertions, 6 deletions
diff --git a/security/clamsmtp/Makefile b/security/clamsmtp/Makefile
index 4467286f7bbc..53d1a628ed38 100644
--- a/security/clamsmtp/Makefile
+++ b/security/clamsmtp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= clamsmtp
PORTVERSION= 1.6
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= security
MASTER_SITES= http://memberwebs.com/nielsen/software/clamsmtp/
diff --git a/security/clamsmtp/files/clamsmtpd.sh.in b/security/clamsmtp/files/clamsmtpd.sh.in
index 1740c58c17e9..e3c11351415a 100644
--- a/security/clamsmtp/files/clamsmtpd.sh.in
+++ b/security/clamsmtp/files/clamsmtpd.sh.in
@@ -8,9 +8,10 @@
# Add the fellowing line to /etc/rc.conf.local or /etc/rc.conf
# to enable clamsmtpd:
#
-# clamsmtpd_enable="YES"
-#
-# Set clamsmtpd_debug to something other that 0 if you need
+# clamsmtpd_enable (bool): Set it to "YES" to enable clamsmtpd
+# Default is "NO".
+# clamsmtpd_conf (file): Set location of your configuration file.
+# Default is "%%PREFIX%%/etc/clamsmtpd.conf"
#
. %%RC_SUBR%%
@@ -19,7 +20,8 @@ name="clamsmtpd"
rcvar=${name}_enable
command=%%PREFIX%%/sbin/${name}
-command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid} -d ${clamsmtpd_debug}"
+command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}"
+required_files=${clamsmtpd_conf}
pidfile=${clamsmtpd_pid}
sig_stop=-KILL
@@ -28,6 +30,5 @@ load_rc_config ${name}
: ${clamsmtpd_enable="NO"}
: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"}
: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"}
-: ${clamsmtpd_debug="0"}
run_rc_command "$1"