Sat Dec 6 22:14:27 2014 UTC ()
Placate pkglint by abolishing LOCALBASE (no functional change
intended) and adding LICENSE and NO_CHECKSUM. Bump version.


(schmonz)
diff -r1.2 -r1.3 pkgsrc/mail/qmail-run/INSTALL
diff -r1.26 -r1.27 pkgsrc/mail/qmail-run/Makefile
diff -r1.3 -r1.4 pkgsrc/mail/qmail-run/files/mailer.conf
diff -r1.3 -r1.4 pkgsrc/mail/qmail-run/files/qmail-qfilter-queue.sh
diff -r1.2 -r1.3 pkgsrc/mail/qmail-run/files/qmail-procmail.sh
diff -r1.2 -r1.3 pkgsrc/mail/qmail-run/files/qmail-qread-client.sh
diff -r1.8 -r1.9 pkgsrc/mail/qmail-run/files/qmailpop3d.sh
diff -r1.8 -r1.9 pkgsrc/mail/qmail-run/files/qmailsmtpd.sh
diff -r1.6 -r1.7 pkgsrc/mail/qmail-run/files/qmailqread.sh
diff -r1.6 -r1.7 pkgsrc/mail/qmail-run/files/qmailsend.sh

cvs diff -r1.2 -r1.3 pkgsrc/mail/qmail-run/INSTALL (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/INSTALL 2004/08/23 03:47:48 1.2
+++ pkgsrc/mail/qmail-run/INSTALL 2014/12/06 22:14:27 1.3
@@ -1,22 +1,24 @@ @@ -1,22 +1,24 @@
1QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@ 1QMAIL_QUEUE_EXTRA=@QMAIL_QUEUE_EXTRA@
 2QMAIL_PREFIX=@QMAIL_PREFIX@
 3UCSPI_TCP_PREFIX=@UCSPI_TCP_PREFIX@
2 4
3psmsg='# 5psmsg='#
4# This file was auto-generated by pkgsrc.' 6# This file was auto-generated by pkgsrc.'
5 7
6case ${STAGE} in 8case ${STAGE} in
7 9
8POST-INSTALL) 10POST-INSTALL)
9 cd ${LOCALBASE}/share/qmail/setup && ./config-fast `./hostname` 11 cd ${QMAIL_PREFIX}/share/qmail/setup && ./config-fast `./hostname`
10 12
11 cd ${PKG_SYSCONFDIR}/alias && ${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root 13 cd ${PKG_SYSCONFDIR}/alias && ${TOUCH} .qmail-postmaster .qmail-mailer-daemon .qmail-root
12 14
13 if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencypop3 ]; then 15 if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencypop3 ]; then
14 ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencypop3 16 ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencypop3
15 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencypop3 17 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencypop3
16 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencypop3 18 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencypop3
17 fi 19 fi
18 20
19 if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyincoming ]; then 21 if ! [ -s ${PKG_SYSCONFDIR}/control/concurrencyincoming ]; then
20 ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyincoming 22 ${ECHO} 20 > ${PKG_SYSCONFDIR}/control/concurrencyincoming
21 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyincoming 23 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/concurrencyincoming
22 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyincoming 24 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/concurrencyincoming
@@ -26,25 +28,25 @@ POST-INSTALL) @@ -26,25 +28,25 @@ POST-INSTALL)
26 ${ECHO} ./Mailbox > ${PKG_SYSCONFDIR}/control/defaultdelivery 28 ${ECHO} ./Mailbox > ${PKG_SYSCONFDIR}/control/defaultdelivery
27 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/defaultdelivery 29 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/control/defaultdelivery
28 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/defaultdelivery 30 ${CHMOD} 644 ${PKG_SYSCONFDIR}/control/defaultdelivery
29 fi 31 fi
30 32
31 pop3rule=':allow' 33 pop3rule=':allow'
32 smtprule='127.:allow,RELAYCLIENT=""' 34 smtprule='127.:allow,RELAYCLIENT=""'
33 for i in pop3 smtp; do 35 for i in pop3 smtp; do
34 if ! [ -s ${PKG_SYSCONFDIR}/tcp.${i} ]; then 36 if ! [ -s ${PKG_SYSCONFDIR}/tcp.${i} ]; then
35 ${ECHO} "$psmsg" > ${PKG_SYSCONFDIR}/tcp.${i} 37 ${ECHO} "$psmsg" > ${PKG_SYSCONFDIR}/tcp.${i}
36 eval ${ECHO} \"\$${i}rule\" > ${PKG_SYSCONFDIR}/tcp.${i} 38 eval ${ECHO} \"\$${i}rule\" > ${PKG_SYSCONFDIR}/tcp.${i}
37 fi 39 fi
38 ${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i} 40 ${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i}
39 ${LOCALBASE}/bin/tcprules ${PKG_SYSCONFDIR}/tcp.${i}.cdb ${PKG_SYSCONFDIR}/tcp.${i}.tmp < ${PKG_SYSCONFDIR}/tcp.${i} 41 ${UCSPI_TCP_PREFIX}/bin/tcprules ${PKG_SYSCONFDIR}/tcp.${i}.cdb ${PKG_SYSCONFDIR}/tcp.${i}.tmp < ${PKG_SYSCONFDIR}/tcp.${i}
40 ${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i}.cdb 42 ${CHMOD} 644 ${PKG_SYSCONFDIR}/tcp.${i}.cdb
41 done 43 done
42 44
43 if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then 45 if ! [ -z ${QMAIL_QUEUE_EXTRA} ]; then
44 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA} 46 ${ECHO} "$psmsg" >> ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA}
45 ${CHMOD} 644 ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA} 47 ${CHMOD} 644 ${PKG_SYSCONFDIR}/alias/.qmail-${QMAIL_QUEUE_EXTRA}
46 fi 48 fi
47 49
48 ;; 50 ;;
49 51
50esac 52esac

cvs diff -r1.26 -r1.27 pkgsrc/mail/qmail-run/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/Makefile 2014/10/09 14:06:40 1.26
+++ pkgsrc/mail/qmail-run/Makefile 2014/12/06 22:14:27 1.27
@@ -1,58 +1,68 @@ @@ -1,58 +1,68 @@
1# $NetBSD: Makefile,v 1.26 2014/10/09 14:06:40 wiz Exp $ 1# $NetBSD: Makefile,v 1.27 2014/12/06 22:14:27 schmonz Exp $
2# 2#
3 3
4DISTNAME= qmail-run-20140912 4DISTNAME= qmail-run-20141206
5CATEGORIES= mail 5CATEGORIES= mail
6MASTER_SITES= # empty 6MASTER_SITES= # empty
7DISTFILES= # empty 7DISTFILES= # empty
8 8
9MAINTAINER= schmonz@NetBSD.org 9MAINTAINER= schmonz@NetBSD.org
10COMMENT= Configures qmail to receive and deliver mail 10COMMENT= Configures qmail to receive and deliver mail
 11LICENSE= 2-clause-bsd
11 12
12DEPENDS_QMAIL= qmail>=1.03nb8:../../mail/qmail 13DEPENDS_QMAIL= qmail>=1.03nb8:../../mail/qmail
13DEPENDS+= ${DEPENDS_QMAIL} 14DEPENDS+= ${DEPENDS_QMAIL}
14 15
15CONFLICTS+= qmail-qfilter-1.5nb1 16CONFLICTS+= qmail-qfilter-1.5nb1
16 17
17WRKSRC= ${WRKDIR} 18WRKSRC= ${WRKDIR}
18NO_BUILD= yes 19NO_BUILD= yes
 20NO_CHECKSUM= yes
19 21
20FILES_SUBST+= QMAIL_QUEUE_EXTRA=${QMAIL_QUEUE_EXTRA:Q} 22FILES_SUBST+= QMAIL_QUEUE_EXTRA=${QMAIL_QUEUE_EXTRA:Q}
21FILES_SUBST+= PKGNAME=${PKGNAME:Q} 23FILES_SUBST+= PKGNAME=${PKGNAME:Q}
22RCD_SCRIPTS= qmail qmailpop3d qmailqread qmailsend qmailsmtpd 24RCD_SCRIPTS= qmail qmailpop3d qmailqread qmailsend qmailsmtpd
23 25
24INSTALLATION_DIRS= bin share/doc/qmail-run share/examples/qmail-run 26INSTALLATION_DIRS= bin share/doc/qmail-run share/examples/qmail-run
25BUILD_DEFS+= QMAIL_QUEUE_EXTRA 27BUILD_DEFS+= QMAIL_QUEUE_EXTRA
26 28
27.include "../../mk/bsd.prefs.mk" 29.include "../../mk/bsd.prefs.mk"
28 30
29# Detect the PKG_SYSCONFDIR of the installed qmail, so we can create 31# Detect the PKG_SYSCONFDIR of the installed qmail, so we can create
30# config files there and refer to them from rc.d scripts. 32# config files there and refer to them from rc.d scripts.
31# 33#
32.if !defined(PKG_SYSCONFDIR.qmail-run) 34.if !defined(PKG_SYSCONFDIR.qmail-run)
33PKG_SYSCONFDIR.qmail-run!= \ 35PKG_SYSCONFDIR.qmail-run!= \
34 ${PKG_INFO} -Q PKG_SYSCONFDIR \ 36 ${PKG_INFO} -Q PKG_SYSCONFDIR \
35 ${DEPENDS_QMAIL:C/:.*$//:Q} 2>/dev/null || \ 37 ${DEPENDS_QMAIL:C/:.*$//:Q} 2>/dev/null || \
36 ${ECHO} "PKG_SYSCONFDIR.qmail-run_not_set" 38 ${ECHO} "PKG_SYSCONFDIR.qmail-run_not_set"
37. if empty(PKG_SYSCONFDIR.qmail-run:M*not_set) 39. if empty(PKG_SYSCONFDIR.qmail-run:M*not_set)
38MAKEVARS+= PKG_SYSCONFDIR.qmail-run 40MAKEVARS+= PKG_SYSCONFDIR.qmail-run
39. endif 41. endif
40.endif 42.endif
41 43
 44QMAIL_TOOLS= checkpassword daemontools fastforward procmail
 45QMAIL_TOOLS+= qmail qmail-qfilter ucspi-tcp
 46
42SUBST_CLASSES+= paths 47SUBST_CLASSES+= paths
43SUBST_FILES.paths= mailer.conf qmail-procmail qmail-qfilter-queue 48SUBST_FILES.paths= mailer.conf qmail-procmail qmail-qfilter-queue
44SUBST_FILES.paths+= qmail-qread-client 49SUBST_FILES.paths+= qmail-qread-client
45SUBST_SED.paths+= -e 's,@LOCALBASE@,${LOCALBASE},g' 50.for i in ${QMAIL_TOOLS}
 51QMAIL_TOOL_VAR.${i}= ${i:S/-/_/g:tu}_PREFIX
 52EVAL_PREFIX+= ${QMAIL_TOOL_VAR.${i}}=${i}
 53FILES_SUBST+= ${QMAIL_TOOL_VAR.${i}}=${${QMAIL_TOOL_VAR.${i}}:Q}
 54SUBST_SED.paths+= -e 's,@${QMAIL_TOOL_VAR.${i}}@,${${QMAIL_TOOL_VAR.${i}}},g'
 55.endfor
46SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g' 56SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
47SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g' 57SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
48SUBST_SED.paths+= -e 's,@ECHO@,${ECHO},g' 58SUBST_SED.paths+= -e 's,@ECHO@,${ECHO},g'
49SUBST_SED.paths+= -e 's,@SORT@,${SORT},g' 59SUBST_SED.paths+= -e 's,@SORT@,${SORT},g'
50SUBST_SED.paths+= -e 's,@CAT@,${CAT},g' 60SUBST_SED.paths+= -e 's,@CAT@,${CAT},g'
51SUBST_SED.paths+= -e 's,@SH@,${SH},g' 61SUBST_SED.paths+= -e 's,@SH@,${SH},g'
52SUBST_SED.paths+= -e 's,@SED@,${SED},g' 62SUBST_SED.paths+= -e 's,@SED@,${SED},g'
53SUBST_SED.paths+= -e 's,@PKGNAME@,${PKGNAME},g' 63SUBST_SED.paths+= -e 's,@PKGNAME@,${PKGNAME},g'
54SUBST_STAGE.paths= post-patch 64SUBST_STAGE.paths= post-patch
55 65
56post-extract: 66post-extract:
57 for f in README.pkgsrc mailer.conf; do \ 67 for f in README.pkgsrc mailer.conf; do \
58 ${CP} ${FILESDIR}/$$f ${WRKDIR}/$$f; \ 68 ${CP} ${FILESDIR}/$$f ${WRKDIR}/$$f; \

cvs diff -r1.3 -r1.4 pkgsrc/mail/qmail-run/files/mailer.conf (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/mailer.conf 2006/06/04 15:23:25 1.3
+++ pkgsrc/mail/qmail-run/files/mailer.conf 2014/12/06 22:14:27 1.4
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1# $NetBSD: mailer.conf,v 1.3 2006/06/04 15:23:25 schmonz Exp $ 1# $NetBSD: mailer.conf,v 1.4 2014/12/06 22:14:27 schmonz Exp $
2# 2#
3# Use qmail as the system mailer. 3# Use qmail as the system mailer.
4# 4#
5sendmail @LOCALBASE@/bin/sendmail 5sendmail @QMAIL_PREFIX@/bin/sendmail
6send-mail @LOCALBASE@/bin/sendmail 6send-mail @QMAIL_PREFIX@/bin/sendmail
7mailq @LOCALBASE@/bin/qmail-qread 7mailq @QMAIL_PREFIX@/bin/qmail-qread
8newaliases @LOCALBASE@/bin/newaliases 8newaliases @FASTFORWARD_PREFIX@/bin/newaliases
9hoststat @LOCALBASE@/bin/qmail-tcpto 9hoststat @QMAIL_PREFIX@/bin/qmail-tcpto
10purgestat @LOCALBASE@/bin/qmail-tcpok 10purgestat @QMAIL_PREFIX@/bin/qmail-tcpok

cvs diff -r1.3 -r1.4 pkgsrc/mail/qmail-run/files/Attic/qmail-qfilter-queue.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/Attic/qmail-qfilter-queue.sh 2007/02/08 09:04:48 1.3
+++ pkgsrc/mail/qmail-run/files/Attic/qmail-qfilter-queue.sh 2014/12/06 22:14:27 1.4
@@ -20,16 +20,16 @@ possible_qfilters=`@ECHO@ @PKG_SYSCONFDI @@ -20,16 +20,16 @@ possible_qfilters=`@ECHO@ @PKG_SYSCONFDI
20qfilters="" 20qfilters=""
21 21
22if [ "${possible_qfilters}" = "@PKG_SYSCONFDIR@/filters/qfilter-*" ]; then 22if [ "${possible_qfilters}" = "@PKG_SYSCONFDIR@/filters/qfilter-*" ]; then
23 qfilters="@CAT@" 23 qfilters="@CAT@"
24else 24else
25 for qfilter in ${possible_qfilters}; do 25 for qfilter in ${possible_qfilters}; do
26 if [ -x "${qfilter}" ]; then 26 if [ -x "${qfilter}" ]; then
27 qfilters="${qfilters} ${qfilter}" 27 qfilters="${qfilters} ${qfilter}"
28 fi 28 fi
29 done 29 done
30 [ -z "${qfilters}" ] && qfilters="@CAT@" 30 [ -z "${qfilters}" ] && qfilters="@CAT@"
31fi 31fi
32 32
33qfilter_cmd="@LOCALBASE@/bin/qmail-qfilter `@ECHO@ ${qfilters} | @SED@ -e 's| | -- |g'`" 33qfilter_cmd="@QMAIL_QFILTER_PREFIX@/bin/qmail-qfilter `@ECHO@ ${qfilters} | @SED@ -e 's| | -- |g'`"
34 34
35exec ${qfilter_cmd} 35exec ${qfilter_cmd}

cvs diff -r1.2 -r1.3 pkgsrc/mail/qmail-run/files/qmail-procmail.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmail-procmail.sh 2007/02/08 09:04:48 1.2
+++ pkgsrc/mail/qmail-run/files/qmail-procmail.sh 2014/12/06 22:14:27 1.3
@@ -1,13 +1,13 @@ @@ -1,13 +1,13 @@
1#!@SH@ 1#!@SH@
2# Copyright (c) 1998-2001 Software in the Public Interest 2# Copyright (c) 1998-2001 Software in the Public Interest
3# <http://www.debian.org/> 3# <http://www.debian.org/>
4# Written by Philip Hands. Distributed under the GNU GPL. 4# Written by Philip Hands. Distributed under the GNU GPL.
5# Modified slightly by Dave Sill. 5# Modified slightly by Dave Sill.
6 6
7@LOCALBASE@/bin/preline @LOCALBASE@/bin/procmail && exit 0 7@QMAIL_PREFIX@/bin/preline @PROCMAIL_PREFIX@/bin/procmail && exit 0
8 8
9# check if procmail returned EX_TEMPFAIL (75) 9# check if procmail returned EX_TEMPFAIL (75)
10[ $? = 75 ] && exit 111 10[ $? = 75 ] && exit 111
11 11
12# otherwise return a permanent error 12# otherwise return a permanent error
13exit 100 13exit 100

cvs diff -r1.2 -r1.3 pkgsrc/mail/qmail-run/files/qmail-qread-client.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmail-qread-client.sh 2004/08/03 08:59:24 1.2
+++ pkgsrc/mail/qmail-run/files/qmail-qread-client.sh 2014/12/06 22:14:27 1.3
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1#!@SH@ 1#!@SH@
2# 2#
3# $NetBSD: qmail-qread-client.sh,v 1.2 2004/08/03 08:59:24 schmonz Exp $ 3# $NetBSD: qmail-qread-client.sh,v 1.3 2014/12/06 22:14:27 schmonz Exp $
4# 4#
5# @PKGNAME@ client program to allow local non-root users to see 5# @PKGNAME@ client program to allow local non-root users to see
6# the queue. Requires that the corresponding server program be running. 6# the queue. Requires that the corresponding server program be running.
7# From Steinar Haug. 7# From Steinar Haug.
8# 8#
9 9
10exec @LOCALBASE@/bin/tcpclient -RHl0 -- 127.0.0.1 20025 @SH@ -c 'exec @CAT@ <&6' 10exec @UCSPI_TCP_PREFIX@/bin/tcpclient -RHl0 -- 127.0.0.1 20025 @SH@ -c 'exec @CAT@ <&6'

cvs diff -r1.8 -r1.9 pkgsrc/mail/qmail-run/files/qmailpop3d.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailpop3d.sh 2014/09/12 17:07:10 1.8
+++ pkgsrc/mail/qmail-run/files/qmailpop3d.sh 2014/12/06 22:14:27 1.9
@@ -1,64 +1,64 @@ @@ -1,64 +1,64 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailpop3d.sh,v 1.8 2014/09/12 17:07:10 schmonz Exp $ 3# $NetBSD: qmailpop3d.sh,v 1.9 2014/12/06 22:14:27 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs). 5# @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs).
6# 6#
7 7
8# PROVIDE: qmailpop3d mail 8# PROVIDE: qmailpop3d mail
9 9
10name="qmailpop3d" 10name="qmailpop3d"
11 11
12# User-settable rc.conf variables and their default values: 12# User-settable rc.conf variables and their default values:
13: ${qmailpop3d_postenv:=""} 13: ${qmailpop3d_postenv:=""}
14: ${qmailpop3d_tcpflags:="-vRHl0"} 14: ${qmailpop3d_tcpflags:="-vRHl0"}
15: ${qmailpop3d_tcphost:="0"} 15: ${qmailpop3d_tcphost:="0"}
16: ${qmailpop3d_tcpport:="110"} 16: ${qmailpop3d_tcpport:="110"}
17: ${qmailpop3d_datalimit:="146800640"} 17: ${qmailpop3d_datalimit:="146800640"}
18: ${qmailpop3d_pretcpserver:=""} 18: ${qmailpop3d_pretcpserver:=""}
19: ${qmailpop3d_prepop3d:=""} 19: ${qmailpop3d_prepop3d:=""}
20: ${qmailpop3d_checkpassword:="@LOCALBASE@/bin/checkpassword"} 20: ${qmailpop3d_checkpassword:="@CHECKPASSWORD_PREFIX@/bin/checkpassword"}
21: ${qmailpop3d_maildirname:="Maildir"} 21: ${qmailpop3d_maildirname:="Maildir"}
22: ${qmailpop3d_log:="YES"} 22: ${qmailpop3d_log:="YES"}
23: ${qmailpop3d_logcmd:="logger -t nb${name} -p mail.info"} 23: ${qmailpop3d_logcmd:="logger -t nb${name} -p mail.info"}
24: ${qmailpop3d_nologcmd:="@LOCALBASE@/bin/multilog -*"} 24: ${qmailpop3d_nologcmd:="@DAEMONTOOLS_PREFIX@/bin/multilog -*"}
25 25
26if [ -f /etc/rc.subr ]; then 26if [ -f /etc/rc.subr ]; then
27 . /etc/rc.subr 27 . /etc/rc.subr
28fi 28fi
29 29
30rcvar=${name} 30rcvar=${name}
31required_files="@PKG_SYSCONFDIR@/control/me" 31required_files="@PKG_SYSCONFDIR@/control/me"
32required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencypop3" 32required_files="${required_files} @PKG_SYSCONFDIR@/control/concurrencypop3"
33required_files="${required_files} @PKG_SYSCONFDIR@/tcp.pop3.cdb" 33required_files="${required_files} @PKG_SYSCONFDIR@/tcp.pop3.cdb"
34command="@LOCALBASE@/bin/tcpserver" 34command="@UCSPI_TCP_PREFIX@/bin/tcpserver"
35procname=${name} 35procname=${name}
36start_precmd="qmailpop3d_precmd" 36start_precmd="qmailpop3d_precmd"
37extra_commands="stat pause cont cdb" 37extra_commands="stat pause cont cdb"
38stat_cmd="qmailpop3d_stat" 38stat_cmd="qmailpop3d_stat"
39pause_cmd="qmailpop3d_pause" 39pause_cmd="qmailpop3d_pause"
40cont_cmd="qmailpop3d_cont" 40cont_cmd="qmailpop3d_cont"
41cdb_cmd="qmailpop3d_cdb" 41cdb_cmd="qmailpop3d_cdb"
42 42
43qmailpop3d_precmd() 43qmailpop3d_precmd()
44{ 44{
45 # tcpserver(1) is akin to inetd(8), but runs one service per process. 45 # tcpserver(1) is akin to inetd(8), but runs one service per process.
46 # We want to signal only the tcpserver process responsible for POP 46 # We want to signal only the tcpserver process responsible for POP
47 # service. Use argv0(1) to set procname to "qmailpop3d". 47 # service. Use argv0(1) to set procname to "qmailpop3d".
48 if [ -f /etc/rc.subr ]; then 48 if [ -f /etc/rc.subr ]; then
49 checkyesno qmailpop3d_log || qmailpop3d_logcmd=${qmailpop3d_nologcmd} 49 checkyesno qmailpop3d_log || qmailpop3d_logcmd=${qmailpop3d_nologcmd}
50 fi 50 fi
51 command="@SETENV@ - ${qmailpop3d_postenv} @LOCALBASE@/bin/softlimit -m ${qmailpop3d_datalimit} ${qmailpop3d_pretcpserver} @LOCALBASE@/bin/argv0 @LOCALBASE@/bin/tcpserver ${name} ${qmailpop3d_tcpflags} -x @PKG_SYSCONFDIR@/tcp.pop3.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencypop3` ${qmailpop3d_tcphost} ${qmailpop3d_tcpport} @LOCALBASE@/bin/qmail-popup `@HEAD@ -1 @PKG_SYSCONFDIR@/control/me` ${qmailpop3d_checkpassword} ${qmailpop3d_prepop3d} @LOCALBASE@/bin/qmail-pop3d ${qmailpop3d_maildirname} 2>&1 | @LOCALBASE@/bin/setuidgid qmaill ${qmailpop3d_logcmd}" 51 command="@SETENV@ - ${qmailpop3d_postenv} @DAEMONTOOLS_PREFIX@/bin/softlimit -m ${qmailpop3d_datalimit} ${qmailpop3d_pretcpserver} @UCSPI_TCP_PREFIX@/bin/argv0 @UCSPI_TCP_PREFIX@/bin/tcpserver ${name} ${qmailpop3d_tcpflags} -x @PKG_SYSCONFDIR@/tcp.pop3.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencypop3` ${qmailpop3d_tcphost} ${qmailpop3d_tcpport} @QMAIL_PREFIX@/bin/qmail-popup `@HEAD@ -1 @PKG_SYSCONFDIR@/control/me` ${qmailpop3d_checkpassword} ${qmailpop3d_prepop3d} @QMAIL_PREFIX@/bin/qmail-pop3d ${qmailpop3d_maildirname} 2>&1 | @DAEMONTOOLS_PREFIX@/bin/setuidgid qmaill ${qmailpop3d_logcmd}"
52 command_args="&" 52 command_args="&"
53 rc_flags="" 53 rc_flags=""
54} 54}
55 55
56qmailpop3d_stat() 56qmailpop3d_stat()
57{ 57{
58 run_rc_command status 58 run_rc_command status
59} 59}
60 60
61qmailpop3d_pause() 61qmailpop3d_pause()
62{ 62{
63 if ! statusmsg=`run_rc_command status`; then 63 if ! statusmsg=`run_rc_command status`; then
64 @ECHO@ $statusmsg 64 @ECHO@ $statusmsg
@@ -71,25 +71,25 @@ qmailpop3d_pause() @@ -71,25 +71,25 @@ qmailpop3d_pause()
71qmailpop3d_cont() 71qmailpop3d_cont()
72{ 72{
73 if ! statusmsg=`run_rc_command status`; then 73 if ! statusmsg=`run_rc_command status`; then
74 @ECHO@ $statusmsg 74 @ECHO@ $statusmsg
75 return 1 75 return 1
76 fi 76 fi
77 @ECHO@ "Continuing ${name}." 77 @ECHO@ "Continuing ${name}."
78 kill -CONT $rc_pid 78 kill -CONT $rc_pid
79} 79}
80 80
81qmailpop3d_cdb() 81qmailpop3d_cdb()
82{ 82{
83 @ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.pop3." 83 @ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.pop3."
84 @LOCALBASE@/bin/tcprules @PKG_SYSCONFDIR@/tcp.pop3.cdb @PKG_SYSCONFDIR@/tcp.pop3.tmp < @PKG_SYSCONFDIR@/tcp.pop3 84 @UCSPI_TCP_PREFIX@/bin/tcprules @PKG_SYSCONFDIR@/tcp.pop3.cdb @PKG_SYSCONFDIR@/tcp.pop3.tmp < @PKG_SYSCONFDIR@/tcp.pop3
85 @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.pop3.cdb 85 @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.pop3.cdb
86} 86}
87 87
88if [ -f /etc/rc.subr ]; then 88if [ -f /etc/rc.subr ]; then
89 load_rc_config $name 89 load_rc_config $name
90 run_rc_command "$1" 90 run_rc_command "$1"
91else 91else
92 @ECHO_N@ " ${name}" 92 @ECHO_N@ " ${name}"
93 qmailpop3d_precmd 93 qmailpop3d_precmd
94 eval ${command} ${qmailpop3d_flags} ${command_args} 94 eval ${command} ${qmailpop3d_flags} ${command_args}
95fi 95fi

cvs diff -r1.8 -r1.9 pkgsrc/mail/qmail-run/files/qmailsmtpd.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailsmtpd.sh 2014/09/12 17:07:10 1.8
+++ pkgsrc/mail/qmail-run/files/qmailsmtpd.sh 2014/12/06 22:14:27 1.9
@@ -1,64 +1,64 @@ @@ -1,64 +1,64 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailsmtpd.sh,v 1.8 2014/09/12 17:07:10 schmonz Exp $ 3# $NetBSD: qmailsmtpd.sh,v 1.9 2014/12/06 22:14:27 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control qmail-smtpd (SMTP service). 5# @PKGNAME@ script to control qmail-smtpd (SMTP service).
6# 6#
7 7
8# PROVIDE: qmailsmtpd mail 8# PROVIDE: qmailsmtpd mail
9# REQUIRE: qmailsend 9# REQUIRE: qmailsend
10 10
11name="qmailsmtpd" 11name="qmailsmtpd"
12 12
13# User-settable rc.conf variables and their default values: 13# User-settable rc.conf variables and their default values:
14: ${qmailsmtpd_postenv:="QMAILQUEUE=@LOCALBASE@/bin/qmail-queue"} 14: ${qmailsmtpd_postenv:="QMAILQUEUE=@QMAIL_PREFIX@/bin/qmail-queue"}
15: ${qmailsmtpd_tcpflags:="-vRl0"} 15: ${qmailsmtpd_tcpflags:="-vRl0"}
16: ${qmailsmtpd_tcphost:="0"} 16: ${qmailsmtpd_tcphost:="0"}
17: ${qmailsmtpd_tcpport:="25"} 17: ${qmailsmtpd_tcpport:="25"}
18: ${qmailsmtpd_datalimit:="146800640"} 18: ${qmailsmtpd_datalimit:="146800640"}
19: ${qmailsmtpd_pretcpserver:=""} 19: ${qmailsmtpd_pretcpserver:=""}
20: ${qmailsmtpd_presmtpd:=""} 20: ${qmailsmtpd_presmtpd:=""}
21: ${qmailsmtpd_postsmtpd:=""} 21: ${qmailsmtpd_postsmtpd:=""}
22: ${qmailsmtpd_log:="YES"} 22: ${qmailsmtpd_log:="YES"}
23: ${qmailsmtpd_logcmd:="logger -t nb${name} -p mail.info"} 23: ${qmailsmtpd_logcmd:="logger -t nb${name} -p mail.info"}
24: ${qmailsmtpd_nologcmd:="@LOCALBASE@/bin/multilog -*"} 24: ${qmailsmtpd_nologcmd:="@DAEMONTOOLS_PREFIX@/bin/multilog -*"}
25 25
26if [ -f /etc/rc.subr ]; then 26if [ -f /etc/rc.subr ]; then
27 . /etc/rc.subr 27 . /etc/rc.subr
28fi 28fi
29 29
30rcvar=${name} 30rcvar=${name}
31required_files="@PKG_SYSCONFDIR@/control/concurrencyincoming" 31required_files="@PKG_SYSCONFDIR@/control/concurrencyincoming"
32required_files="${required_files} @PKG_SYSCONFDIR@/tcp.smtp.cdb" 32required_files="${required_files} @PKG_SYSCONFDIR@/tcp.smtp.cdb"
33required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts" 33required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
34command="@LOCALBASE@/bin/tcpserver" 34command="@UCSPI_TCP_PREFIX@/bin/tcpserver"
35procname=${name} 35procname=${name}
36start_precmd="qmailsmtpd_precmd" 36start_precmd="qmailsmtpd_precmd"
37extra_commands="stat pause cont cdb" 37extra_commands="stat pause cont cdb"
38stat_cmd="qmailsmtpd_stat" 38stat_cmd="qmailsmtpd_stat"
39pause_cmd="qmailsmtpd_pause" 39pause_cmd="qmailsmtpd_pause"
40cont_cmd="qmailsmtpd_cont" 40cont_cmd="qmailsmtpd_cont"
41cdb_cmd="qmailsmtpd_cdb" 41cdb_cmd="qmailsmtpd_cdb"
42 42
43qmailsmtpd_precmd() 43qmailsmtpd_precmd()
44{ 44{
45 # tcpserver(1) is akin to inetd(8), but runs one service per process. 45 # tcpserver(1) is akin to inetd(8), but runs one service per process.
46 # We want to signal only the tcpserver process responsible for SMTP 46 # We want to signal only the tcpserver process responsible for SMTP
47 # service. Use argv0(1) to set procname to "qmailsmtpd". 47 # service. Use argv0(1) to set procname to "qmailsmtpd".
48 if [ -f /etc/rc.subr ]; then 48 if [ -f /etc/rc.subr ]; then
49 checkyesno qmailsmtpd_log || qmailsmtpd_logcmd=${qmailsmtpd_nologcmd} 49 checkyesno qmailsmtpd_log || qmailsmtpd_logcmd=${qmailsmtpd_nologcmd}
50 fi 50 fi
51 command="@SETENV@ - ${qmailsmtpd_postenv} @LOCALBASE@/bin/softlimit -m ${qmailsmtpd_datalimit} ${qmailsmtpd_pretcpserver} @LOCALBASE@/bin/argv0 @LOCALBASE@/bin/tcpserver ${name} ${qmailsmtpd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.smtp.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyincoming` -u `@ID@ -u qmaild` -g `@ID@ -g qmaild` ${qmailsmtpd_tcphost} ${qmailsmtpd_tcpport} ${qmailsmtpd_presmtpd} @LOCALBASE@/bin/qmail-smtpd ${qmailsmtpd_postsmtpd} 2>&1 | @LOCALBASE@/bin/setuidgid qmaill ${qmailsmtpd_logcmd}" 51 command="@SETENV@ - ${qmailsmtpd_postenv} @DAEMONTOOLS_PREFIX@/bin/softlimit -m ${qmailsmtpd_datalimit} ${qmailsmtpd_pretcpserver} @UCSPI_TCP_PREFIX@/bin/argv0 @UCSPI_TCP_PREFIX@/bin/tcpserver ${name} ${qmailsmtpd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.smtp.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyincoming` -u `@ID@ -u qmaild` -g `@ID@ -g qmaild` ${qmailsmtpd_tcphost} ${qmailsmtpd_tcpport} ${qmailsmtpd_presmtpd} @QMAIL_PREFIX@/bin/qmail-smtpd ${qmailsmtpd_postsmtpd} 2>&1 | @DAEMONTOOLS_PREFIX@/bin/setuidgid qmaill ${qmailsmtpd_logcmd}"
52 command_args="&" 52 command_args="&"
53 rc_flags="" 53 rc_flags=""
54} 54}
55 55
56qmailsmtpd_stat() 56qmailsmtpd_stat()
57{ 57{
58 run_rc_command status 58 run_rc_command status
59} 59}
60 60
61qmailsmtpd_pause() 61qmailsmtpd_pause()
62{ 62{
63 if ! statusmsg=`run_rc_command status`; then 63 if ! statusmsg=`run_rc_command status`; then
64 @ECHO@ $statusmsg 64 @ECHO@ $statusmsg
@@ -71,25 +71,25 @@ qmailsmtpd_pause() @@ -71,25 +71,25 @@ qmailsmtpd_pause()
71qmailsmtpd_cont() 71qmailsmtpd_cont()
72{ 72{
73 if ! statusmsg=`run_rc_command status`; then 73 if ! statusmsg=`run_rc_command status`; then
74 @ECHO@ $statusmsg 74 @ECHO@ $statusmsg
75 return 1 75 return 1
76 fi 76 fi
77 @ECHO@ "Continuing ${name}." 77 @ECHO@ "Continuing ${name}."
78 kill -CONT $rc_pid 78 kill -CONT $rc_pid
79} 79}
80 80
81qmailsmtpd_cdb() 81qmailsmtpd_cdb()
82{ 82{
83 @ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.smtp." 83 @ECHO@ "Reloading @PKG_SYSCONFDIR@/tcp.smtp."
84 @LOCALBASE@/bin/tcprules @PKG_SYSCONFDIR@/tcp.smtp.cdb @PKG_SYSCONFDIR@/tcp.smtp.tmp < @PKG_SYSCONFDIR@/tcp.smtp 84 @UCSPI_TCP_PREFIX@/bin/tcprules @PKG_SYSCONFDIR@/tcp.smtp.cdb @PKG_SYSCONFDIR@/tcp.smtp.tmp < @PKG_SYSCONFDIR@/tcp.smtp
85 @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.smtp.cdb 85 @CHMOD@ 644 @PKG_SYSCONFDIR@/tcp.smtp.cdb
86} 86}
87 87
88if [ -f /etc/rc.subr ]; then 88if [ -f /etc/rc.subr ]; then
89 load_rc_config $name 89 load_rc_config $name
90 run_rc_command "$1" 90 run_rc_command "$1"
91else 91else
92 @ECHO_N@ " ${name}" 92 @ECHO_N@ " ${name}"
93 qmailsmtpd_precmd 93 qmailsmtpd_precmd
94 eval ${command} ${qmailsmtpd_flags} ${command_args} 94 eval ${command} ${qmailsmtpd_flags} ${command_args}
95fi 95fi

cvs diff -r1.6 -r1.7 pkgsrc/mail/qmail-run/files/qmailqread.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailqread.sh 2005/04/15 05:17:02 1.6
+++ pkgsrc/mail/qmail-run/files/qmailqread.sh 2014/12/06 22:14:27 1.7
@@ -1,45 +1,45 @@ @@ -1,45 +1,45 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailqread.sh,v 1.6 2005/04/15 05:17:02 schmonz Exp $ 3# $NetBSD: qmailqread.sh,v 1.7 2014/12/06 22:14:27 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control a service providing local non-root 5# @PKGNAME@ script to control a service providing local non-root
6# users access to see the queue. Adapted from a script by Steinar Haug. 6# users access to see the queue. Adapted from a script by Steinar Haug.
7# 7#
8 8
9# PROVIDE: qmailqread mail 9# PROVIDE: qmailqread mail
10# REQUIRE: qmailsend 10# REQUIRE: qmailsend
11 11
12name="qmailqread" 12name="qmailqread"
13 13
14# User-settable rc.conf variables and their default values: 14# User-settable rc.conf variables and their default values:
15: ${qmailqread_log:="YES"} 15: ${qmailqread_log:="YES"}
16: ${qmailqread_logcmd:="logger -t nb${name} -p mail.info"} 16: ${qmailqread_logcmd:="logger -t nb${name} -p mail.info"}
17: ${qmailqread_nologcmd:="@LOCALBASE@/bin/multilog -*"} 17: ${qmailqread_nologcmd:="@DAEMONTOOLS_PREFIX@/bin/multilog -*"}
18 18
19if [ -f /etc/rc.subr ]; then 19if [ -f /etc/rc.subr ]; then
20 . /etc/rc.subr 20 . /etc/rc.subr
21fi 21fi
22 22
23rcvar=${name} 23rcvar=${name}
24command="@LOCALBASE@/bin/tcpserver" 24command="@UCSPI_TCP_PREFIX@/bin/tcpserver"
25procname=${name} 25procname=${name}
26start_precmd="qmailqread_precmd" 26start_precmd="qmailqread_precmd"
27 27
28qmailqread_precmd() 28qmailqread_precmd()
29{ 29{
30 if [ -f /etc/rc.subr ]; then 30 if [ -f /etc/rc.subr ]; then
31 checkyesno qmailqread_log || qmailqread_logcmd=${qmailqread_nologcmd} 31 checkyesno qmailqread_log || qmailqread_logcmd=${qmailqread_nologcmd}
32 fi 32 fi
33 command="@SETENV@ - @LOCALBASE@/bin/argv0 @LOCALBASE@/bin/tcpserver ${name} -R -1 -u `@ID@ -u qmails` -g `@ID@ -g qmails` 127.0.0.1 20025 @LOCALBASE@/bin/qmail-qread 2>&1 | @LOCALBASE@/bin/setuidgid qmaill ${qmailqread_logcmd}" 33 command="@SETENV@ - @UCSPI_TCP_PREFIX@/bin/argv0 @UCSPI_TCP_PREFIX@/bin/tcpserver ${name} -R -1 -u `@ID@ -u qmails` -g `@ID@ -g qmails` 127.0.0.1 20025 @QMAIL_PREFIX@/bin/qmail-qread 2>&1 | @DAEMONTOOLS_PREFIX@/bin/setuidgid qmaill ${qmailqread_logcmd}"
34 command_args="&" 34 command_args="&"
35 rc_flags="" 35 rc_flags=""
36} 36}
37 37
38if [ -f /etc/rc.subr ]; then 38if [ -f /etc/rc.subr ]; then
39 load_rc_config $name 39 load_rc_config $name
40 run_rc_command "$1" 40 run_rc_command "$1"
41else 41else
42 @ECHO_N@ " ${name}" 42 @ECHO_N@ " ${name}"
43 qmailqread_precmd 43 qmailqread_precmd
44 eval ${command} ${qmailqread_flags} ${command_args} 44 eval ${command} ${qmailqread_flags} ${command_args}
45fi 45fi

cvs diff -r1.6 -r1.7 pkgsrc/mail/qmail-run/files/qmailsend.sh (expand / switch to unified diff)

--- pkgsrc/mail/qmail-run/files/qmailsend.sh 2005/04/15 05:17:02 1.6
+++ pkgsrc/mail/qmail-run/files/qmailsend.sh 2014/12/06 22:14:27 1.7
@@ -1,41 +1,41 @@ @@ -1,41 +1,41 @@
1#!@RCD_SCRIPTS_SHELL@ 1#!@RCD_SCRIPTS_SHELL@
2# 2#
3# $NetBSD: qmailsend.sh,v 1.6 2005/04/15 05:17:02 schmonz Exp $ 3# $NetBSD: qmailsend.sh,v 1.7 2014/12/06 22:14:27 schmonz Exp $
4# 4#
5# @PKGNAME@ script to control qmail-send (local and outgoing mail). 5# @PKGNAME@ script to control qmail-send (local and outgoing mail).
6# 6#
7 7
8# PROVIDE: qmailsend mail 8# PROVIDE: qmailsend mail
9# REQUIRE: LOGIN 9# REQUIRE: LOGIN
10# KEYWORD: shutdown 10# KEYWORD: shutdown
11 11
12name="qmailsend" 12name="qmailsend"
13 13
14# User-settable rc.conf variables and their default values: 14# User-settable rc.conf variables and their default values:
15: ${qmailsend_postenv:="PATH=@LOCALBASE@/bin:$PATH"} 15: ${qmailsend_postenv:="PATH=@QMAIL_PREFIX@/bin:$PATH"}
16: ${qmailsend_defaultdelivery:="`@HEAD@ -1 @PKG_SYSCONFDIR@/control/defaultdelivery`"} 16: ${qmailsend_defaultdelivery:="`@HEAD@ -1 @PKG_SYSCONFDIR@/control/defaultdelivery`"}
17: ${qmailsend_log:="YES"} 17: ${qmailsend_log:="YES"}
18: ${qmailsend_logcmd:="logger -t nb${name} -p mail.info"} 18: ${qmailsend_logcmd:="logger -t nb${name} -p mail.info"}
19: ${qmailsend_nologcmd:="@LOCALBASE@/bin/multilog -*"} 19: ${qmailsend_nologcmd:="@DAEMONTOOLS_PREFIX@/bin/multilog -*"}
20 20
21if [ -f /etc/rc.subr ]; then 21if [ -f /etc/rc.subr ]; then
22 . /etc/rc.subr 22 . /etc/rc.subr
23fi 23fi
24 24
25rcvar=${name} 25rcvar=${name}
26required_files="@PKG_SYSCONFDIR@/control/defaultdelivery" 26required_files="@PKG_SYSCONFDIR@/control/defaultdelivery"
27required_files="${required_files} @PKG_SYSCONFDIR@/control/me" 27required_files="${required_files} @PKG_SYSCONFDIR@/control/me"
28command="@LOCALBASE@/bin/qmail-send" 28command="@QMAIL_PREFIX@/bin/qmail-send"
29start_precmd="qmailsend_precmd" 29start_precmd="qmailsend_precmd"
30extra_commands="stat pause cont doqueue reload queue alrm flush hup" 30extra_commands="stat pause cont doqueue reload queue alrm flush hup"
31stat_cmd="qmailsend_stat" 31stat_cmd="qmailsend_stat"
32pause_cmd="qmailsend_pause" 32pause_cmd="qmailsend_pause"
33cont_cmd="qmailsend_cont" 33cont_cmd="qmailsend_cont"
34doqueue_cmd="qmailsend_doqueue" 34doqueue_cmd="qmailsend_doqueue"
35queue_cmd="qmailsend_queue" 35queue_cmd="qmailsend_queue"
36alrm_cmd="qmailsend_doqueue" 36alrm_cmd="qmailsend_doqueue"
37flush_cmd="qmailsend_doqueue" 37flush_cmd="qmailsend_doqueue"
38hup_cmd="qmailsend_hup" 38hup_cmd="qmailsend_hup"
39 39
40qmailsend_precmd() 40qmailsend_precmd()
41{ 41{
@@ -71,34 +71,34 @@ qmailsend_cont() @@ -71,34 +71,34 @@ qmailsend_cont()
71 return 1 71 return 1
72 fi 72 fi
73 @ECHO@ "Continuing ${name}." 73 @ECHO@ "Continuing ${name}."
74 kill -CONT $rc_pid 74 kill -CONT $rc_pid
75} 75}
76 76
77qmailsend_doqueue() 77qmailsend_doqueue()
78{ 78{
79 if ! statusmsg=`run_rc_command status`; then 79 if ! statusmsg=`run_rc_command status`; then
80 @ECHO@ $statusmsg 80 @ECHO@ $statusmsg
81 return 1 81 return 1
82 fi 82 fi
83 @ECHO@ "Flushing timeout table and sending ALRM signal to qmail-send." 83 @ECHO@ "Flushing timeout table and sending ALRM signal to qmail-send."
84 @LOCALBASE@/bin/qmail-tcpok 84 @QMAIL_PREFIX@/bin/qmail-tcpok
85 kill -ALRM $rc_pid 85 kill -ALRM $rc_pid
86} 86}
87 87
88qmailsend_queue() 88qmailsend_queue()
89{ 89{
90 @LOCALBASE@/bin/qmail-qstat 90 @QMAIL_PREFIX@/bin/qmail-qstat
91 @LOCALBASE@/bin/qmail-qread 91 @QMAIL_PREFIX@/bin/qmail-qread
92} 92}
93 93
94qmailsend_hup() 94qmailsend_hup()
95{ 95{
96 run_rc_command reload 96 run_rc_command reload
97} 97}
98 98
99if [ -f /etc/rc.subr ]; then 99if [ -f /etc/rc.subr ]; then
100 load_rc_config $name 100 load_rc_config $name
101 run_rc_command "$1" 101 run_rc_command "$1"
102else 102else
103 @ECHO_N@ " ${name}" 103 @ECHO_N@ " ${name}"
104 qmailsend_precmd 104 qmailsend_precmd