diff options
author | schmonz <schmonz@pkgsrc.org> | 2017-04-11 14:04:37 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2017-04-11 14:04:37 +0000 |
commit | 829b4804d4e39c2a7a297fb7e1cc0895eb3f59cb (patch) | |
tree | 77e44c92f1f54d9f54ae067bfc5a0f48f26d8911 /mail | |
parent | e2d2e46f4f40ca4cdfc1700ef54dbe725d78ff15 (diff) | |
download | pkgsrc-829b4804d4e39c2a7a297fb7e1cc0895eb3f59cb.tar.gz |
If qmailqread runs on a custom host and port, have qmail-qread-client
find it there. Bump version.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmail-run/Makefile | 4 | ||||
-rw-r--r-- | mail/qmail-run/files/qmail-qread-client.sh | 12 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/qmail-run/Makefile b/mail/qmail-run/Makefile index 2f852cceac7..e15d591cb4f 100644 --- a/mail/qmail-run/Makefile +++ b/mail/qmail-run/Makefile @@ -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 --git a/mail/qmail-run/files/qmail-qread-client.sh b/mail/qmail-run/files/qmail-qread-client.sh index a39f473cd75..307f47e9d4f 100644 --- a/mail/qmail-run/files/qmail-qread-client.sh +++ b/mail/qmail-run/files/qmail-qread-client.sh @@ -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' |