summaryrefslogtreecommitdiff
path: root/mail/archivesmtp
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2020-04-16 14:49:59 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2020-04-16 14:49:59 +0000
commitae5215e025daae99b3ebfe22cd65310eebbdfc70 (patch)
tree95bc399a7e716d1a06cd630891cabc9b67eedc7b /mail/archivesmtp
parentbc119880610cc9f9b32a3d34644e515755fd6575 (diff)
downloadfreebsd-ports-ae5215e025daae99b3ebfe22cd65310eebbdfc70.zip
- cleanup rc.d script
Diffstat (limited to 'mail/archivesmtp')
-rw-r--r--mail/archivesmtp/Makefile2
-rw-r--r--mail/archivesmtp/files/archivesmtp.in21
2 files changed, 11 insertions, 12 deletions
diff --git a/mail/archivesmtp/Makefile b/mail/archivesmtp/Makefile
index 2e7242ba14c9..188b891c7316 100644
--- a/mail/archivesmtp/Makefile
+++ b/mail/archivesmtp/Makefile
@@ -3,7 +3,7 @@
PORTNAME= archivesmtp
PORTVERSION= 1.2
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= http://www.dancingfortune.com/projects/archivesmtp/files/
diff --git a/mail/archivesmtp/files/archivesmtp.in b/mail/archivesmtp/files/archivesmtp.in
index ce14d0c415ee..4267118e093b 100644
--- a/mail/archivesmtp/files/archivesmtp.in
+++ b/mail/archivesmtp/files/archivesmtp.in
@@ -1,30 +1,29 @@
#!/bin/sh
-
+#
# $FreeBSD$
#
# PROVIDE: archivesmtp
+# REQUIRE: DAEMON
# BEFORE: mail
# KEYWORD: shutdown
. /etc/rc.subr
name="archivesmtp"
-rcvar=`set_rcvar`
-
-command="%%PREFIX%%/sbin/${name}"
+desc="Achive SMTP Milter Daemon"
+rcvar="archivesmtp_enable"
# Read settings and set defaults
load_rc_config "$name"
-: ${archivesmtp_enable="NO"}
-: ${archivesmtp_chuser="nobody"}
-: ${archivesmtp_socket="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
-: ${archivesmtp_config="%%PREFIX%%/etc/archivesmtp.conf"}
-: ${archivesmtp_pidfile="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
+: ${archivesmtp_enable:="NO"}
+: ${archivesmtp_chuser:="nobody"}
+: ${archivesmtp_socket:="unix:%%SOCKETBASE%%/%%SOCKETDIR%%/mta.sock"}
+: ${archivesmtp_config:="%%PREFIX%%/etc/archivesmtp.conf"}
+: ${archivesmtp_pidfile:="%%SOCKETBASE%%/%%SOCKETDIR%%/run.pid"}
# archivesmtp_flags= May be used to set optional behaviours.
-
+command="%%PREFIX%%/sbin/${name}"
pidfile="${archivesmtp_pidfile}"
-
command_args="-p ${archivesmtp_socket} -f ${archivesmtp_config} -u ${archivesmtp_chuser} -r ${archivesmtp_pidfile} ${archivesmtp_flags} &"
run_rc_command "$1"