aboutsummaryrefslogtreecommitdiff
path: root/mail/mailfromd
diff options
context:
space:
mode:
authorAlexey Dokuchaev <danfe@FreeBSD.org>2020-12-25 08:49:43 +0000
committerAlexey Dokuchaev <danfe@FreeBSD.org>2020-12-25 08:49:43 +0000
commita4c275dc72023699c622b763fe62deaff427b797 (patch)
treea7bc58df546a3e48212ce97cee4dc375509064cb /mail/mailfromd
parent78565f8cb9448d14da8caae74df04bce3351b7a9 (diff)
downloadports-a4c275dc72023699c622b763fe62deaff427b797.tar.gz
ports-a4c275dc72023699c622b763fe62deaff427b797.zip
- Install rc.d startup script for `calloutd'
- Chase r559216 shared library version bump Submitted by: maintainer
Notes
Notes: svn path=/head/; revision=559218
Diffstat (limited to 'mail/mailfromd')
-rw-r--r--mail/mailfromd/Makefile3
-rw-r--r--mail/mailfromd/files/calloutd.in27
2 files changed, 29 insertions, 1 deletions
diff --git a/mail/mailfromd/Makefile b/mail/mailfromd/Makefile
index 2e40880e42e1..d69aea73bd5d 100644
--- a/mail/mailfromd/Makefile
+++ b/mail/mailfromd/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mailfromd
PORTVERSION= 8.8
+PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= http://download.gnu.org.ua/pub/release/${PORTNAME}/ \
http://download.gnu.org.ua/pub/alpha/${PORTNAME}/
@@ -21,7 +22,7 @@ GNU_CONFIGURE= yes
CONFIGURE_ENV= DEFAULT_STATE_DIR="${DATABASEDIR}" \
DEFAULT_SOCKET="unix:${MFD_RUN_DIR}/${PORTNAME}.sock" \
DEFAULT_USER=mailnull
-USE_RC_SUBR= ${PORTNAME}
+USE_RC_SUBR= calloutd ${PORTNAME}
DATABASEDIR?= /var/db/${PORTNAME}
MFD_RUN_DIR?= /var/run/${PORTNAME}
diff --git a/mail/mailfromd/files/calloutd.in b/mail/mailfromd/files/calloutd.in
new file mode 100644
index 000000000000..d639c368f6ec
--- /dev/null
+++ b/mail/mailfromd/files/calloutd.in
@@ -0,0 +1,27 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: calloutd
+# REQUIRE: DAEMON
+# BEFORE: mail
+# KEYWORD: shutdown
+#
+
+. /etc/rc.subr
+
+name="calloutd"
+rcvar=calloutd_enable
+
+: ${calloutd_enable="NO"}
+
+command="%%PREFIX%%/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+required_files="%%PREFIX%%/etc/mailfromd.conf"
+
+extra_commands="configlint"
+configlint_cmd="${name} --config-lint"
+
+load_rc_config ${name}
+run_rc_command "$1"