aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/clamsmtp/Makefile2
-rw-r--r--security/clamsmtp/files/clamsmtpd.sh.in12
2 files changed, 7 insertions, 7 deletions
diff --git a/security/clamsmtp/Makefile b/security/clamsmtp/Makefile
index 53d1a628ed38..0cc9e8cc432a 100644
--- a/security/clamsmtp/Makefile
+++ b/security/clamsmtp/Makefile
@@ -7,7 +7,7 @@
PORTNAME= clamsmtp
PORTVERSION= 1.6
-PORTREVISION= 2
+PORTREVISION= 3
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 e3c11351415a..834bcab5775a 100644
--- a/security/clamsmtp/files/clamsmtpd.sh.in
+++ b/security/clamsmtp/files/clamsmtpd.sh.in
@@ -19,16 +19,16 @@
name="clamsmtpd"
rcvar=${name}_enable
+: ${clamsmtpd_enable="NO"}
+: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"}
+: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"}
+
+load_rc_config ${name}
+
command=%%PREFIX%%/sbin/${name}
command_args="-f ${clamsmtpd_conf} -p ${clamsmtpd_pid}"
required_files=${clamsmtpd_conf}
pidfile=${clamsmtpd_pid}
sig_stop=-KILL
-load_rc_config ${name}
-
-: ${clamsmtpd_enable="NO"}
-: ${clamsmtpd_conf="%%PREFIX%%/etc/clamsmtpd.conf"}
-: ${clamsmtpd_pid="%%CLAMAV_PID_DIR%%/clamsmtpd.pid"}
-
run_rc_command "$1"