pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/qmail-run Depend on pkgtools/pkg_alternatives and...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5540aaf5a01a
branches:  trunk
changeset: 311106:5540aaf5a01a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Wed Aug 01 07:15:21 2018 +0000

description:
Depend on pkgtools/pkg_alternatives and a new enough mail/qmail to rely
on finding "nbcheckpassword" (which, at present, might be either
checkpassword-pam or DJB's original).

Depend (unconditionally) on mail/qmail-rejectutils, instead of having it
as an option on mail/qmail.

Bump version.

diffstat:

 mail/qmail-run/Makefile                   |  26 +++++---------------------
 mail/qmail-run/files/qmailpop3d.sh        |   4 ++--
 mail/qmail-run/files/spamdyke-ofmipd.conf |   4 ++--
 3 files changed, 9 insertions(+), 25 deletions(-)

diffs (95 lines):

diff -r 4b1a35991ad0 -r 5540aaf5a01a mail/qmail-run/Makefile
--- a/mail/qmail-run/Makefile   Wed Aug 01 07:10:46 2018 +0000
+++ b/mail/qmail-run/Makefile   Wed Aug 01 07:15:21 2018 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.46 2018/07/29 23:29:17 schmonz Exp $
+# $NetBSD: Makefile,v 1.47 2018/08/01 07:15:21 schmonz Exp $
 #
 
-DISTNAME=              qmail-run-20180730
+DISTNAME=              qmail-run-20180801
 CATEGORIES=            mail
 MASTER_SITES=          # empty
 DISTFILES=             # empty
@@ -11,15 +11,16 @@
 LICENSE=               2-clause-bsd
 
 DEPENDS+=              mess822-[0-9]*:../../mail/mess822
-DEPENDS_QMAIL=         qmail>=1.03nb29:../../mail/qmail
+DEPENDS+=              pkg_alternatives-[0-9]*:../../pkgtools/pkg_alternatives
+DEPENDS_QMAIL=         qmail>=1.03nb36:../../mail/qmail
 DEPENDS+=              ${DEPENDS_QMAIL}
 DEPENDS+=              qmail-qfilter>1.5nb1:../../mail/qmail-qfilter
+DEPENDS+=              qmail-rejectutils-[0-9]*:../../mail/qmail-rejectutils
 
 WRKSRC=                        ${WRKDIR}
 NO_BUILD=              yes
 NO_CHECKSUM=           yes
 
-FILES_SUBST+=          CHECKPASSWORD_RELPATH=${CHECKPASSWORD_RELPATH:Q}
 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}
@@ -47,28 +48,11 @@
 .  endif
 .endif
 
-# Detect the checkpassword program of the installed qmail, so we can
-# refer to it from config files and rc.d scripts.
-#
-CHECKPASSWORD_DEP!=                                                    \
-       ${PKG_INFO} -qn ${DEPENDS_QMAIL:C/:.*$//:Q} | grep checkpassword
-CHECKPASSWORD_ABSPATH!=                                                        \
-       ${PKG_INFO} -qL ${CHECKPASSWORD_DEP} | grep bin
-CHECKPASSWORD_ABSDIR!=                                                 \
-       dirname ${CHECKPASSWORD_ABSPATH}
-CHECKPASSWORD_RELDIR!=                                                 \
-       basename ${CHECKPASSWORD_ABSDIR}
-CHECKPASSWORD_RELBIN!=                                                 \
-       basename ${CHECKPASSWORD_ABSPATH}
-CHECKPASSWORD_RELPATH=${CHECKPASSWORD_RELDIR}/${CHECKPASSWORD_RELBIN}
-MAKEVARS+=     CHECKPASSWORD_RELPATH
-
 SUBST_CLASSES+=                paths
 SUBST_FILES.paths=     mailer.conf qmail-procmail
 SUBST_FILES.paths+=    qmail-qread-client spamdyke-ofmipd.conf
 SUBST_SED.paths+=      -e 's,@PREFIX@,${PREFIX},g'
 SUBST_SED.paths+=      -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
-SUBST_SED.paths+=      -e 's,@CHECKPASSWORD_RELPATH@,${CHECKPASSWORD_RELPATH},g'
 SUBST_SED.paths+=      -e 's,@ECHO@,${ECHO},g'
 SUBST_SED.paths+=      -e 's,@SORT@,${SORT},g'
 SUBST_SED.paths+=      -e 's,@CAT@,${CAT},g'
diff -r 4b1a35991ad0 -r 5540aaf5a01a mail/qmail-run/files/qmailpop3d.sh
--- a/mail/qmail-run/files/qmailpop3d.sh        Wed Aug 01 07:10:46 2018 +0000
+++ b/mail/qmail-run/files/qmailpop3d.sh        Wed Aug 01 07:15:21 2018 +0000
@@ -1,6 +1,6 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: qmailpop3d.sh,v 1.18 2018/07/29 23:29:17 schmonz Exp $
+# $NetBSD: qmailpop3d.sh,v 1.19 2018/08/01 07:15:21 schmonz Exp $
 #
 # @PKGNAME@ script to control qmail-pop3d (POP3 server for Maildirs).
 #
@@ -19,7 +19,7 @@
 : ${qmailpop3d_tcpserver:="@PREFIX@/bin/tcpserver"}
 : ${qmailpop3d_prepop3d:=""}
 : ${qmailpop3d_pop3dcmd:="@PREFIX@/bin/qmail-pop3d"}
-: ${qmailpop3d_checkpassword:="@PREFIX@/@CHECKPASSWORD_RELPATH@"}
+: ${qmailpop3d_checkpassword:="@PREFIX@/bin/nbcheckpassword"}
 : ${qmailpop3d_maildirname:="Maildir"}
 : ${qmailpop3d_log:="YES"}
 : ${qmailpop3d_logcmd:="logger -t nb${name} -p mail.info"}
diff -r 4b1a35991ad0 -r 5540aaf5a01a mail/qmail-run/files/spamdyke-ofmipd.conf
--- a/mail/qmail-run/files/spamdyke-ofmipd.conf Wed Aug 01 07:10:46 2018 +0000
+++ b/mail/qmail-run/files/spamdyke-ofmipd.conf Wed Aug 01 07:15:21 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: spamdyke-ofmipd.conf,v 1.2 2018/07/29 23:29:17 schmonz Exp $
+# $NetBSD: spamdyke-ofmipd.conf,v 1.3 2018/08/01 07:15:21 schmonz Exp $
 #
 # Wrap qmail-ofmipd with SMTP AUTH.
 #
 hostname-file=@PKG_SYSCONFDIR@/control/me
 qmail-rcpthosts-file=@PKG_SYSCONFDIR@/control/rcpthosts
 smtp-auth-level=always
-smtp-auth-command="@PREFIX@/@CHECKPASSWORD_RELPATH@ @TRUE@"
+smtp-auth-command="@PREFIX@/bin/nbcheckpassword @TRUE@"



Home | Main Index | Thread Index | Old Index