summaryrefslogtreecommitdiff
path: root/mail/qmail-run
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2017-06-23 15:49:03 +0000
committerschmonz <schmonz@pkgsrc.org>2017-06-23 15:49:03 +0000
commit72697a45706766a98e7a50ec3006194f33f8d0e7 (patch)
tree12429b1ce3fee108bf4ee220fe579c40b6da15b0 /mail/qmail-run
parente3f2e68d0222a872f19df7d6a7de0691e9847f75 (diff)
downloadpkgsrc-72697a45706766a98e7a50ec3006194f33f8d0e7.tar.gz
Catch up to djbdns-run:
- Add "reload" as a synonym for "cdb" in qmail{ofmip,pop3,smtp}d.sh - Shorten tcprules invocations Bump version.
Diffstat (limited to 'mail/qmail-run')
-rw-r--r--mail/qmail-run/Makefile4
-rw-r--r--mail/qmail-run/files/qmailofmipd.sh22
-rw-r--r--mail/qmail-run/files/qmailpop3d.sh10
-rw-r--r--mail/qmail-run/files/qmailsmtpd.sh10
4 files changed, 26 insertions, 20 deletions
diff --git a/mail/qmail-run/Makefile b/mail/qmail-run/Makefile
index 40128362a78..e88265f44bf 100644
--- a/mail/qmail-run/Makefile
+++ b/mail/qmail-run/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.37 2017/06/17 05:58:39 schmonz Exp $
+# $NetBSD: Makefile,v 1.38 2017/06/23 15:49:03 schmonz Exp $
#
-DISTNAME= qmail-run-20170617
+DISTNAME= qmail-run-20170623
CATEGORIES= mail
MASTER_SITES= # empty
DISTFILES= # empty
diff --git a/mail/qmail-run/files/qmailofmipd.sh b/mail/qmail-run/files/qmailofmipd.sh
index a6f0c580590..3d028dca5d2 100644
--- a/mail/qmail-run/files/qmailofmipd.sh
+++ b/mail/qmail-run/files/qmailofmipd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailofmipd.sh,v 1.5 2017/06/17 05:58:39 schmonz Exp $
+# $NetBSD: qmailofmipd.sh,v 1.6 2017/06/23 15:49:03 schmonz Exp $
#
# @PKGNAME@ script to control ofmipd (SMTP submission service).
#
@@ -36,11 +36,12 @@ required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
command="${qmailofmipd_tcpserver}"
procname=${name}
start_precmd="qmailofmipd_precmd"
-extra_commands="stat pause cont cdb"
+extra_commands="stat pause cont cdb reload"
stat_cmd="qmailofmipd_stat"
pause_cmd="qmailofmipd_pause"
cont_cmd="qmailofmipd_cont"
cdb_cmd="qmailofmipd_cdb"
+reload_cmd=${cdb_cmd}
qmailofmipd_precmd()
{
@@ -72,35 +73,36 @@ qmailofmipd_stat()
qmailofmipd_pause()
{
if ! statusmsg=`run_rc_command status`; then
- echo $statusmsg
+ @ECHO@ $statusmsg
return 1
fi
- echo "Pausing ${name}."
+ @ECHO@ "Pausing ${name}."
kill -STOP $rc_pid
}
qmailofmipd_cont()
{
if ! statusmsg=`run_rc_command status`; then
- echo $statusmsg
+ @ECHO@ $statusmsg
return 1
fi
- echo "Continuing ${name}."
+ @ECHO@ "Continuing ${name}."
kill -CONT $rc_pid
}
qmailofmipd_cdb()
{
- echo "Reloading @PKG_SYSCONFDIR@/tcp.ofmip."
- @PREFIX@/bin/tcprules @PKG_SYSCONFDIR@/tcp.ofmip.cdb @PKG_SYSCONFDIR@/tcp.ofmip.tmp < @PKG_SYSCONFDIR@/tcp.ofmip
- /bin/chmod 644 @PKG_SYSCONFDIR@/tcp.ofmip.cdb
+ @ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.ofmip."
+ cd @PKG_SYSCONFDIR@
+ @PREFIX@/bin/tcprules tcp.ofmip.cdb tcp.ofmip.tmp < tcp.ofmip
+ @CHMOD@ 644 tcp.ofmip.cdb
}
if [ -f /etc/rc.subr ]; then
load_rc_config $name
run_rc_command "$1"
else
- echo -n " ${name}"
+ @ECHO_N@ " ${name}"
qmailofmipd_precmd
eval ${command} ${qmailofmipd_flags} ${command_args}
fi
diff --git a/mail/qmail-run/files/qmailpop3d.sh b/mail/qmail-run/files/qmailpop3d.sh
index a33f1c83e39..b7245f310b3 100644
--- a/mail/qmail-run/files/qmailpop3d.sh
+++ b/mail/qmail-run/files/qmailpop3d.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailpop3d.sh,v 1.14 2017/06/17 05:58:39 schmonz Exp $
+# $NetBSD: qmailpop3d.sh,v 1.15 2017/06/23 15:49:03 schmonz Exp $
#
# @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs).
#
@@ -36,11 +36,12 @@ required_files="${required_files} @PKG_SYSCONFDIR@/tcp.pop3.cdb"
command="${qmailpop3d_tcpserver}"
procname=${name}
start_precmd="qmailpop3d_precmd"
-extra_commands="stat pause cont cdb"
+extra_commands="stat pause cont cdb reload"
stat_cmd="qmailpop3d_stat"
pause_cmd="qmailpop3d_pause"
cont_cmd="qmailpop3d_cont"
cdb_cmd="qmailpop3d_cdb"
+reload_cmd=${cdb_cmd}
qmailpop3d_precmd()
{
@@ -92,8 +93,9 @@ qmailpop3d_cont()
qmailpop3d_cdb()
{
@ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.pop3."
- @PREFIX@/bin/tcprules @PKG_SYSCONFDIR@/tcp.pop3.cdb @PKG_SYSCONFDIR@/tcp.pop3.tmp < @PKG_SYSCONFDIR@/tcp.pop3
- @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.pop3.cdb
+ cd @PKG_SYSCONFDIR@
+ @PREFIX@/bin/tcprules tcp.pop3.cdb tcp.pop3.tmp < tcp.pop3
+ @CHMOD@ 644 tcp.pop3.cdb
}
if [ -f /etc/rc.subr ]; then
diff --git a/mail/qmail-run/files/qmailsmtpd.sh b/mail/qmail-run/files/qmailsmtpd.sh
index 81a1322f00c..82bb233be21 100644
--- a/mail/qmail-run/files/qmailsmtpd.sh
+++ b/mail/qmail-run/files/qmailsmtpd.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailsmtpd.sh,v 1.14 2017/06/17 05:58:39 schmonz Exp $
+# $NetBSD: qmailsmtpd.sh,v 1.15 2017/06/23 15:49:03 schmonz Exp $
#
# @PKGNAME@ script to control qmail-smtpd (SMTP service).
#
@@ -36,11 +36,12 @@ required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
command="${qmailsmtpd_tcpserver}"
procname=${name}
start_precmd="qmailsmtpd_precmd"
-extra_commands="stat pause cont cdb"
+extra_commands="stat pause cont cdb reload"
stat_cmd="qmailsmtpd_stat"
pause_cmd="qmailsmtpd_pause"
cont_cmd="qmailsmtpd_cont"
cdb_cmd="qmailsmtpd_cdb"
+reload_cmd=${cdb_cmd}
qmailsmtpd_precmd()
{
@@ -92,8 +93,9 @@ qmailsmtpd_cont()
qmailsmtpd_cdb()
{
@ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.smtp."
- @PREFIX@/bin/tcprules @PKG_SYSCONFDIR@/tcp.smtp.cdb @PKG_SYSCONFDIR@/tcp.smtp.tmp < @PKG_SYSCONFDIR@/tcp.smtp
- @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.smtp.cdb
+ cd @PKG_SYSCONFDIR@
+ @PREFIX@/bin/tcprules tcp.smtp.cdb tcp.smtp.tmp < tcp.smtp
+ @CHMOD@ 644 tcp.smtp.cdb
}
if [ -f /etc/rc.subr ]; then