pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/qmail-run If qmailqread runs on a custom host and...
details: https://anonhg.NetBSD.org/pkgsrc/rev/98a5e0de1433
branches: trunk
changeset: 360943:98a5e0de1433
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Tue Apr 11 14:04:37 2017 +0000
description:
If qmailqread runs on a custom host and port, have qmail-qread-client
find it there. Bump version.
diffstat:
mail/qmail-run/Makefile | 4 ++--
mail/qmail-run/files/qmail-qread-client.sh | 12 ++++++++++--
2 files changed, 12 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 8e1d8d59c930 -r 98a5e0de1433 mail/qmail-run/Makefile
--- a/mail/qmail-run/Makefile Tue Apr 11 14:00:57 2017 +0000
+++ b/mail/qmail-run/Makefile Tue Apr 11 14:04:37 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.34 2017/04/10 15:04:56 schmonz Exp $
+# $NetBSD: Makefile,v 1.35 2017/04/11 14:04:37 schmonz Exp $
#
-DISTNAME= qmail-run-20170410
+DISTNAME= qmail-run-20170411
CATEGORIES= mail
MASTER_SITES= # empty
DISTFILES= # empty
diff -r 8e1d8d59c930 -r 98a5e0de1433 mail/qmail-run/files/qmail-qread-client.sh
--- a/mail/qmail-run/files/qmail-qread-client.sh Tue Apr 11 14:00:57 2017 +0000
+++ b/mail/qmail-run/files/qmail-qread-client.sh Tue Apr 11 14:04:37 2017 +0000
@@ -1,10 +1,18 @@
#!@SH@
#
-# $NetBSD: qmail-qread-client.sh,v 1.4 2015/11/25 12:51:30 jperkin Exp $
+# $NetBSD: qmail-qread-client.sh,v 1.5 2017/04/11 14:04:37 schmonz Exp $
#
# @PKGNAME@ client program to allow local non-root users to see
# the queue. Requires that the corresponding server program be running.
# From Steinar Haug.
#
-exec @PREFIX@/bin/tcpclient -RHl0 -- 127.0.0.1 20025 @SH@ -c 'exec @CAT@ <&6'
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+ load_rc_config qmailqread
+fi
+
+: ${qmailqread_tcphost:="127.0.0.1"}
+: ${qmailqread_tcpport:="20025"}
+
+exec @PREFIX@/bin/tcpclient -RHl0 -- ${qmailqread_tcphost} ${qmailqread_tcpport} @SH@ -c 'exec @CAT@ <&6'
Home |
Main Index |
Thread Index |
Old Index