pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/pkgsrc-2017Q1]: pkgsrc/mail/qmail-run Pullup ticket #5255 - requested...
details: https://anonhg.NetBSD.org/pkgsrc/rev/28a1297ee47e
branches: pkgsrc-2017Q1
changeset: 360272:28a1297ee47e
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Mon Apr 17 16:12:20 2017 +0000
description:
Pullup ticket #5255 - requested by schmonz
mail/qmail-run: bugfix
Revisions pulled up:
- mail/qmail-run/DESCR 1.3
- mail/qmail-run/Makefile 1.32
- mail/qmail-run/files/qmailofmipd.sh 1.2
- mail/qmail-run/files/qmailpop3d.sh 1.11
- mail/qmail-run/files/qmailqread.sh 1.9
- mail/qmail-run/files/qmailsmtpd.sh 1.11
---
Module Name: pkgsrc
Committed By: schmonz
Date: Sun Apr 2 22:27:52 UTC 2017
Modified Files:
pkgsrc/mail/qmail-run: DESCR
Log Message:
Document more stuff this package includes nowadays.
---
Module Name: pkgsrc
Committed By: schmonz
Date: Tue Apr 4 07:51:03 UTC 2017
Modified Files:
pkgsrc/mail/qmail-run: Makefile
pkgsrc/mail/qmail-run/files: qmailofmipd.sh qmailpop3d.sh qmailqread.sh
qmailsmtpd.sh
Log Message:
Substitute configured qmail users in rc.d scripts. Un-hardcode some
paths in qmailofmipd.sh, somehow missed in 20170109. Bump version.
diffstat:
mail/qmail-run/DESCR | 4 ++--
mail/qmail-run/Makefile | 8 ++++++--
mail/qmail-run/files/qmailofmipd.sh | 10 +++++-----
mail/qmail-run/files/qmailpop3d.sh | 4 ++--
mail/qmail-run/files/qmailqread.sh | 4 ++--
mail/qmail-run/files/qmailsmtpd.sh | 4 ++--
6 files changed, 19 insertions(+), 15 deletions(-)
diffs (146 lines):
diff -r 5fc9cf97f6f4 -r 28a1297ee47e mail/qmail-run/DESCR
--- a/mail/qmail-run/DESCR Mon Apr 17 16:08:22 2017 +0000
+++ b/mail/qmail-run/DESCR Mon Apr 17 16:12:20 2017 +0000
@@ -1,3 +1,3 @@
This package creates all the needed basic config files to run qmail,
-and provides NetBSD-style rc.d scripts and an example mailer.conf.
-It also includes wrapper scripts for procmail and qmail-qfilter.
+provides example {mailer,spamdyke,stunnel}.conf and wrapper scripts for
+procmail and qmail-qfilter, and installs NetBSD-style rc.d scripts.
diff -r 5fc9cf97f6f4 -r 28a1297ee47e mail/qmail-run/Makefile
--- a/mail/qmail-run/Makefile Mon Apr 17 16:08:22 2017 +0000
+++ b/mail/qmail-run/Makefile Mon Apr 17 16:12:20 2017 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2017/01/14 23:00:31 schmonz Exp $
+# $NetBSD: Makefile,v 1.31.2.1 2017/04/17 16:12:20 bsiegert Exp $
#
-DISTNAME= qmail-run-20170114
+DISTNAME= qmail-run-20170404
CATEGORIES= mail
MASTER_SITES= # empty
DISTFILES= # empty
@@ -20,12 +20,16 @@
NO_BUILD= yes
NO_CHECKSUM= yes
+FILES_SUBST+= QMAIL_DAEMON_USER=${QMAIL_DAEMON_USER:Q}
+FILES_SUBST+= QMAIL_LOG_USER=${QMAIL_LOG_USER:Q}
+FILES_SUBST+= QMAIL_SEND_USER=${QMAIL_SEND_USER:Q}
FILES_SUBST+= QMAIL_QUEUE_EXTRA=${QMAIL_QUEUE_EXTRA:Q}
FILES_SUBST+= PKGNAME=${PKGNAME:Q}
MESSAGE_SUBST+= PKG_SYSCONFBASE=${PKG_SYSCONFBASE}
RCD_SCRIPTS= qmail qmailofmipd qmailpop3d qmailqread qmailsend qmailsmtpd
INSTALLATION_DIRS= bin share/doc/qmail-run share/examples/qmail-run
+BUILD_DEFS+= QMAIL_DAEMON_USER QMAIL_LOG_USER QMAIL_SEND_USER
BUILD_DEFS+= QMAIL_QUEUE_EXTRA
.include "../../mk/bsd.prefs.mk"
diff -r 5fc9cf97f6f4 -r 28a1297ee47e mail/qmail-run/files/qmailofmipd.sh
--- a/mail/qmail-run/files/qmailofmipd.sh Mon Apr 17 16:08:22 2017 +0000
+++ b/mail/qmail-run/files/qmailofmipd.sh Mon Apr 17 16:12:20 2017 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailofmipd.sh,v 1.1 2017/01/09 04:58:09 schmonz Exp $
+# $NetBSD: qmailofmipd.sh,v 1.1.2.1 2017/04/17 16:12:20 bsiegert Exp $
#
# @PKGNAME@ script to control ofmipd (SMTP submission service).
#
@@ -21,7 +21,7 @@
: ${qmailofmipd_postofmipd:=""}
: ${qmailofmipd_log:="YES"}
: ${qmailofmipd_logcmd:="logger -t nb${name} -p mail.info"}
-: ${qmailofmipd_nologcmd:="/usr/pkg/bin/multilog -*"}
+: ${qmailofmipd_nologcmd:="@PREFIX@/bin/multilog -*"}
if [ -f /etc/rc.subr ]; then
. /etc/rc.subr
@@ -31,7 +31,7 @@
required_files="@PKG_SYSCONFDIR@/control/concurrencyofmip"
required_files="${required_files} @PKG_SYSCONFDIR@/tcp.ofmip.cdb"
required_files="${required_files} @PKG_SYSCONFDIR@/control/rcpthosts"
-command="/usr/pkg/bin/tcpserver"
+command="@PREFIX@/bin/tcpserver"
procname=${name}
start_precmd="qmailofmipd_precmd"
extra_commands="stat pause cont cdb"
@@ -48,7 +48,7 @@
if [ -f /etc/rc.subr ]; then
checkyesno qmailofmipd_log || qmailofmipd_logcmd=${qmailofmipd_nologcmd}
fi
- command="/usr/bin/env - ${qmailofmipd_postenv} /usr/pkg/bin/softlimit -m ${qmailofmipd_datalimit} ${qmailofmipd_pretcpserver} /usr/pkg/bin/argv0 /usr/pkg/bin/tcpserver ${name}
${qmailofmipd_tcpflags} -x @PKG_SYSCONFDIR@/tcp.ofmip.cdb -c `/usr/bin/head -1 @PKG_SYSCONFDIR@/control/concurrencyofmip` -u `/usr/bin/id -u qmaild` -g `/usr/bin/id -g qmaild` ${qmailofmipd_tcphost}
${qmailofmipd_tcpport} ${qmailofmipd_preofmipd} /usr/pkg/bin/ofmipd ${qmailofmipd_postofmipd} 2>&1 | /usr/pkg/bin/setuidgid qmaill ${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} @PREFIX@/bin/ofmipd ${qmailofmipd_postofmipd} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailofmipd_logcmd}"
command_args="&"
rc_flags=""
}
@@ -81,7 +81,7 @@
qmailofmipd_cdb()
{
echo "Reloading @PKG_SYSCONFDIR@/tcp.ofmip."
- /usr/pkg/bin/tcprules @PKG_SYSCONFDIR@/tcp.ofmip.cdb @PKG_SYSCONFDIR@/tcp.ofmip.tmp < @PKG_SYSCONFDIR@/tcp.ofmip
+ @PREFIX@/bin/tcprules @PKG_SYSCONFDIR@/tcp.ofmip.cdb @PKG_SYSCONFDIR@/tcp.ofmip.tmp < @PKG_SYSCONFDIR@/tcp.ofmip
/bin/chmod 644 @PKG_SYSCONFDIR@/tcp.ofmip.cdb
}
diff -r 5fc9cf97f6f4 -r 28a1297ee47e mail/qmail-run/files/qmailpop3d.sh
--- a/mail/qmail-run/files/qmailpop3d.sh Mon Apr 17 16:08:22 2017 +0000
+++ b/mail/qmail-run/files/qmailpop3d.sh Mon Apr 17 16:12:20 2017 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailpop3d.sh,v 1.10 2015/11/25 12:51:30 jperkin Exp $
+# $NetBSD: qmailpop3d.sh,v 1.10.12.1 2017/04/17 16:12:20 bsiegert Exp $
#
# @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs).
#
@@ -48,7 +48,7 @@
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 qmaill ${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} @PREFIX@/bin/qmail-pop3d ${qmailpop3d_maildirname} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailpop3d_logcmd}"
command_args="&"
rc_flags=""
}
diff -r 5fc9cf97f6f4 -r 28a1297ee47e mail/qmail-run/files/qmailqread.sh
--- a/mail/qmail-run/files/qmailqread.sh Mon Apr 17 16:08:22 2017 +0000
+++ b/mail/qmail-run/files/qmailqread.sh Mon Apr 17 16:12:20 2017 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailqread.sh,v 1.8 2015/11/25 12:51:30 jperkin Exp $
+# $NetBSD: qmailqread.sh,v 1.8.12.1 2017/04/17 16:12:20 bsiegert Exp $
#
# @PKGNAME@ script to control a service providing local non-root
# users access to see the queue. Adapted from a script by Steinar Haug.
@@ -30,7 +30,7 @@
if [ -f /etc/rc.subr ]; then
checkyesno qmailqread_log || qmailqread_logcmd=${qmailqread_nologcmd}
fi
- command="@SETENV@ - @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} -R -1 -u `@ID@ -u qmails` -g `@ID@ -g qmails` 127.0.0.1 20025 @PREFIX@/bin/qmail-qread 2>&1 | @PREFIX@/bin/setuidgid
qmaill ${qmailqread_logcmd}"
+ command="@SETENV@ - @PREFIX@/bin/argv0 @PREFIX@/bin/tcpserver ${name} -R -1 -u `@ID@ -u @QMAIL_SEND_USER@` -g `@ID@ -g @QMAIL_SEND_USER@` 127.0.0.1 20025 @PREFIX@/bin/qmail-qread 2>&1 |
@PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailqread_logcmd}"
command_args="&"
rc_flags=""
}
diff -r 5fc9cf97f6f4 -r 28a1297ee47e mail/qmail-run/files/qmailsmtpd.sh
--- a/mail/qmail-run/files/qmailsmtpd.sh Mon Apr 17 16:08:22 2017 +0000
+++ b/mail/qmail-run/files/qmailsmtpd.sh Mon Apr 17 16:12:20 2017 +0000
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: qmailsmtpd.sh,v 1.10 2015/11/25 12:51:30 jperkin Exp $
+# $NetBSD: qmailsmtpd.sh,v 1.10.12.1 2017/04/17 16:12:20 bsiegert Exp $
#
# @PKGNAME@ script to control qmail-smtpd (SMTP service).
#
@@ -48,7 +48,7 @@
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 qmaild` -g `@ID@ -g qmaild` ${qmailsmtpd_tcphost} ${qmailsmtpd_tcpport} ${qmailsmtpd_presmtpd}
@PREFIX@/bin/qmail-smtpd ${qmailsmtpd_postsmtpd} 2>&1 | @PREFIX@/bin/setuidgid qmaill ${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} @PREFIX@/bin/qmail-smtpd ${qmailsmtpd_postsmtpd} 2>&1 | @PREFIX@/bin/setuidgid @QMAIL_LOG_USER@ ${qmailsmtpd_logcmd}"
command_args="&"
rc_flags=""
}
Home |
Main Index |
Thread Index |
Old Index