diff options
Diffstat (limited to 'mail')
-rw-r--r-- | mail/qmail-run/Makefile | 5 | ||||
-rw-r--r-- | mail/qmail-run/files/qmailofmipd.sh | 5 | ||||
-rw-r--r-- | mail/qmail-run/files/qmailpop3d.sh | 5 | ||||
-rw-r--r-- | mail/qmail-run/files/qmailsmtpd.sh | 5 | ||||
-rw-r--r-- | mail/qmail-run/options.mk | 9 |
5 files changed, 18 insertions, 11 deletions
diff --git a/mail/qmail-run/Makefile b/mail/qmail-run/Makefile index c25ed2eb9d4..8956d2e3935 100644 --- a/mail/qmail-run/Makefile +++ b/mail/qmail-run/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.32 2017/04/04 07:51:03 schmonz Exp $ +# $NetBSD: Makefile,v 1.33 2017/04/09 12:58:46 schmonz Exp $ # -DISTNAME= qmail-run-20170404 +DISTNAME= qmail-run-20170409 CATEGORIES= mail MASTER_SITES= # empty DISTFILES= # empty @@ -10,7 +10,6 @@ MAINTAINER= schmonz@NetBSD.org COMMENT= Configures qmail to receive and deliver mail LICENSE= 2-clause-bsd -DEPENDS+= mess822-[0-9]*:../../mail/mess822 DEPENDS_QMAIL= qmail>=1.03nb8:../../mail/qmail DEPENDS+= ${DEPENDS_QMAIL} diff --git a/mail/qmail-run/files/qmailofmipd.sh b/mail/qmail-run/files/qmailofmipd.sh index 522e5d5d59e..3e3d5b39cce 100644 --- a/mail/qmail-run/files/qmailofmipd.sh +++ b/mail/qmail-run/files/qmailofmipd.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: qmailofmipd.sh,v 1.2 2017/04/04 07:51:03 schmonz Exp $ +# $NetBSD: qmailofmipd.sh,v 1.3 2017/04/09 12:58:46 schmonz Exp $ # # @PKGNAME@ script to control ofmipd (SMTP submission service). # @@ -18,6 +18,7 @@ name="qmailofmipd" : ${qmailofmipd_datalimit:="146800640"} : ${qmailofmipd_pretcpserver:=""} : ${qmailofmipd_preofmipd:=""} +: ${qmailofmipd_ofmipdcmd:="@PREFIX@/bin/ofmipd"} : ${qmailofmipd_postofmipd:=""} : ${qmailofmipd_log:="YES"} : ${qmailofmipd_logcmd:="logger -t nb${name} -p mail.info"} @@ -48,7 +49,7 @@ qmailofmipd_precmd() if [ -f /etc/rc.subr ]; then checkyesno qmailofmipd_log || qmailofmipd_logcmd=${qmailofmipd_nologcmd} fi - command="@SETENV@ - ${qmailofmipd_postenv} @PREFIX@/bin/softlimit -m ${qmailofmipd_datalimit} ${qmailofmipd_pretcpserver} @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} ${qmailofmipd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.ofmip.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyofmip` -u `@ID@ -u @QMAIL_DAEMON_USER@` -g `@ID@ -g @QMAIL_DAEMON_USER@` ${qmailofmipd_tcphost} ${qmailofmipd_tcpport} ${qmailofmipd_preofmipd} @PREFIX@/bin/ofmipd ${qmailofmipd_postofmipd} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailofmipd_logcmd}" + command="@SETENV@ - ${qmailofmipd_postenv} @PREFIX@/bin/softlimit -m ${qmailofmipd_datalimit} ${qmailofmipd_pretcpserver} @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} ${qmailofmipd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.ofmip.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyofmip` -u `@ID@ -u @QMAIL_DAEMON_USER@` -g `@ID@ -g @QMAIL_DAEMON_USER@` ${qmailofmipd_tcphost} ${qmailofmipd_tcpport} ${qmailofmipd_preofmipd} ${qmailofmipd_ofmipdcmd} ${qmailofmipd_postofmipd} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailofmipd_logcmd}" command_args="&" rc_flags="" } diff --git a/mail/qmail-run/files/qmailpop3d.sh b/mail/qmail-run/files/qmailpop3d.sh index e8be74b15c5..e720734dd66 100644 --- a/mail/qmail-run/files/qmailpop3d.sh +++ b/mail/qmail-run/files/qmailpop3d.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: qmailpop3d.sh,v 1.11 2017/04/04 07:51:03 schmonz Exp $ +# $NetBSD: qmailpop3d.sh,v 1.12 2017/04/09 12:58:46 schmonz Exp $ # # @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs). # @@ -17,6 +17,7 @@ name="qmailpop3d" : ${qmailpop3d_datalimit:="146800640"} : ${qmailpop3d_pretcpserver:=""} : ${qmailpop3d_prepop3d:=""} +: ${qmailpop3d_pop3dcmd:="@PREFIX@/bin/qmail-pop3d"} : ${qmailpop3d_checkpassword:="@PREFIX@/bin/checkpassword"} : ${qmailpop3d_maildirname:="Maildir"} : ${qmailpop3d_log:="YES"} @@ -48,7 +49,7 @@ qmailpop3d_precmd() if [ -f /etc/rc.subr ]; then checkyesno qmailpop3d_log || qmailpop3d_logcmd=${qmailpop3d_nologcmd} fi - command="@SETENV@ - ${qmailpop3d_postenv} @PREFIX@/bin/softlimit -m ${qmailpop3d_datalimit} ${qmailpop3d_pretcpserver} @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} ${qmailpop3d_tcpflags} -x @PKG_SYSCONFDIR@/tcp.pop3.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencypop3` ${qmailpop3d_tcphost} ${qmailpop3d_tcpport} @PREFIX@/bin/qmail-popup `@HEAD@ -1 @PKG_SYSCONFDIR@/control/me` ${qmailpop3d_checkpassword} ${qmailpop3d_prepop3d} @PREFIX@/bin/qmail-pop3d ${qmailpop3d_maildirname} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailpop3d_logcmd}" + command="@SETENV@ - ${qmailpop3d_postenv} @PREFIX@/bin/softlimit -m ${qmailpop3d_datalimit} ${qmailpop3d_pretcpserver} @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} ${qmailpop3d_tcpflags} -x @PKG_SYSCONFDIR@/tcp.pop3.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencypop3` ${qmailpop3d_tcphost} ${qmailpop3d_tcpport} @PREFIX@/bin/qmail-popup `@HEAD@ -1 @PKG_SYSCONFDIR@/control/me` ${qmailpop3d_checkpassword} ${qmailpop3d_prepop3d} ${qmailpop3d_pop3dcmd} ${qmailpop3d_maildirname} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailpop3d_logcmd}" command_args="&" rc_flags="" } diff --git a/mail/qmail-run/files/qmailsmtpd.sh b/mail/qmail-run/files/qmailsmtpd.sh index 815c40bc217..0e4408e511f 100644 --- a/mail/qmail-run/files/qmailsmtpd.sh +++ b/mail/qmail-run/files/qmailsmtpd.sh @@ -1,6 +1,6 @@ #!@RCD_SCRIPTS_SHELL@ # -# $NetBSD: qmailsmtpd.sh,v 1.11 2017/04/04 07:51:03 schmonz Exp $ +# $NetBSD: qmailsmtpd.sh,v 1.12 2017/04/09 12:58:46 schmonz Exp $ # # @PKGNAME@ script to control qmail-smtpd (SMTP service). # @@ -18,6 +18,7 @@ name="qmailsmtpd" : ${qmailsmtpd_datalimit:="146800640"} : ${qmailsmtpd_pretcpserver:=""} : ${qmailsmtpd_presmtpd:=""} +: ${qmailsmtpd_smtpdcmd:="@PREFIX@/bin/qmail-smtpd"} : ${qmailsmtpd_postsmtpd:=""} : ${qmailsmtpd_log:="YES"} : ${qmailsmtpd_logcmd:="logger -t nb${name} -p mail.info"} @@ -48,7 +49,7 @@ qmailsmtpd_precmd() if [ -f /etc/rc.subr ]; then checkyesno qmailsmtpd_log || qmailsmtpd_logcmd=${qmailsmtpd_nologcmd} fi - command="@SETENV@ - ${qmailsmtpd_postenv} @PREFIX@/bin/softlimit -m ${qmailsmtpd_datalimit} ${qmailsmtpd_pretcpserver} @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} ${qmailsmtpd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.smtp.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyincoming` -u `@ID@ -u @QMAIL_DAEMON_USER@` -g `@ID@ -g @QMAIL_DAEMON_USER@` ${qmailsmtpd_tcphost} ${qmailsmtpd_tcpport} ${qmailsmtpd_presmtpd} @PREFIX@/bin/qmail-smtpd ${qmailsmtpd_postsmtpd} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailsmtpd_logcmd}" + command="@SETENV@ - ${qmailsmtpd_postenv} @PREFIX@/bin/softlimit -m ${qmailsmtpd_datalimit} ${qmailsmtpd_pretcpserver} @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} ${qmailsmtpd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.smtp.cdb -c `@HEAD@ -1 @PKG_SYSCONFDIR@/control/concurrencyincoming` -u `@ID@ -u @QMAIL_DAEMON_USER@` -g `@ID@ -g @QMAIL_DAEMON_USER@` ${qmailsmtpd_tcphost} ${qmailsmtpd_tcpport} ${qmailsmtpd_presmtpd} ${qmailsmtpd_smtpdcmd} ${qmailsmtpd_postsmtpd} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailsmtpd_logcmd}" command_args="&" rc_flags="" } diff --git a/mail/qmail-run/options.mk b/mail/qmail-run/options.mk index 2a14cf024d5..be2cf91ac59 100644 --- a/mail/qmail-run/options.mk +++ b/mail/qmail-run/options.mk @@ -1,10 +1,15 @@ -# $NetBSD: options.mk,v 1.1 2017/01/14 23:00:31 schmonz Exp $ +# $NetBSD: options.mk,v 1.2 2017/04/09 12:58:46 schmonz Exp $ PKG_OPTIONS_VAR= PKG_OPTIONS.qmail-run -PKG_SUPPORTED_OPTIONS+= sasl tls +PKG_SUPPORTED_OPTIONS+= qmail-run-ofmipd sasl tls .include "../../mk/bsd.options.mk" +.if !empty(PKG_OPTIONS:Mqmail-run-ofmipd) +DEPENDS+= mess822-[0-9]*:../../mail/mess822 +.endif + + .if !empty(PKG_OPTIONS:Msasl) DEPENDS+= spamdyke-[0-9]*:../../mail/spamdyke .endif |