diff options
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' |