pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mail/qmail-run



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Fri Jun 23 15:49:03 UTC 2017

Modified Files:
        pkgsrc/mail/qmail-run: Makefile
        pkgsrc/mail/qmail-run/files: qmailofmipd.sh qmailpop3d.sh qmailsmtpd.sh

Log Message:
Catch up to djbdns-run:

- Add "reload" as a synonym for "cdb" in qmail{ofmip,pop3,smtp}d.sh
- Shorten tcprules invocations

Bump version.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 pkgsrc/mail/qmail-run/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/mail/qmail-run/files/qmailofmipd.sh
cvs rdiff -u -r1.14 -r1.15 pkgsrc/mail/qmail-run/files/qmailpop3d.sh \
    pkgsrc/mail/qmail-run/files/qmailsmtpd.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/qmail-run/Makefile
diff -u pkgsrc/mail/qmail-run/Makefile:1.37 pkgsrc/mail/qmail-run/Makefile:1.38
--- pkgsrc/mail/qmail-run/Makefile:1.37 Sat Jun 17 05:58:39 2017
+++ pkgsrc/mail/qmail-run/Makefile      Fri Jun 23 15:49:03 2017
@@ -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

Index: pkgsrc/mail/qmail-run/files/qmailofmipd.sh
diff -u pkgsrc/mail/qmail-run/files/qmailofmipd.sh:1.5 pkgsrc/mail/qmail-run/files/qmailofmipd.sh:1.6
--- pkgsrc/mail/qmail-run/files/qmailofmipd.sh:1.5      Sat Jun 17 05:58:39 2017
+++ pkgsrc/mail/qmail-run/files/qmailofmipd.sh  Fri Jun 23 15:49:03 2017
@@ -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_S
 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

Index: pkgsrc/mail/qmail-run/files/qmailpop3d.sh
diff -u pkgsrc/mail/qmail-run/files/qmailpop3d.sh:1.14 pkgsrc/mail/qmail-run/files/qmailpop3d.sh:1.15
--- pkgsrc/mail/qmail-run/files/qmailpop3d.sh:1.14      Sat Jun 17 05:58:39 2017
+++ pkgsrc/mail/qmail-run/files/qmailpop3d.sh   Fri Jun 23 15:49:03 2017
@@ -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_S
 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
Index: pkgsrc/mail/qmail-run/files/qmailsmtpd.sh
diff -u pkgsrc/mail/qmail-run/files/qmailsmtpd.sh:1.14 pkgsrc/mail/qmail-run/files/qmailsmtpd.sh:1.15
--- pkgsrc/mail/qmail-run/files/qmailsmtpd.sh:1.14      Sat Jun 17 05:58:39 2017
+++ pkgsrc/mail/qmail-run/files/qmailsmtpd.sh   Fri Jun 23 15:49:03 2017
@@ -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_S
 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



Home | Main Index | Thread Index | Old Index