pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/qmail Add Toby Betts' "tai-leapsecs" patch to han...
details: https://anonhg.NetBSD.org/pkgsrc/rev/514c4f280e99
branches: trunk
changeset: 389836:514c4f280e99
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Wed Jan 09 19:32:07 2019 +0000
description:
Add Toby Betts' "tai-leapsecs" patch to handle leap seconds correctly
when the system clock is set to TAI (and a libtai dependency to get
leapsecs.dat). While here, catch up to his latest maildiruniq patch.
Let an installed ucspi-tcp6 satisfy the ucspi-tcp dependency for
non-'inet6' builds.
Bump PKGREVISION.
diffstat:
mail/qmail/Makefile | 37 +++++++++++++++++++++++++++++++++++--
mail/qmail/distinfo | 6 +++++-
mail/qmail/options.mk | 4 ++--
3 files changed, 42 insertions(+), 5 deletions(-)
diffs (114 lines):
diff -r f1fd17095c41 -r 514c4f280e99 mail/qmail/Makefile
--- a/mail/qmail/Makefile Wed Jan 09 19:21:37 2019 +0000
+++ b/mail/qmail/Makefile Wed Jan 09 19:32:07 2019 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.107 2018/12/17 19:15:33 schmonz Exp $
+# $NetBSD: Makefile,v 1.108 2019/01/09 19:32:07 schmonz Exp $
#
DISTNAME= netqmail-1.06
PKGNAME= qmail-1.03
-PKGREVISION= 42
+PKGREVISION= 43
CATEGORIES= mail
MASTER_SITES= http://qmail.org/
@@ -13,6 +13,8 @@
LICENSE= public-domain
DEPENDS+= daemontools-[0-9]*:../../sysutils/daemontools
+DEPENDS_LIBTAI= libtai>=0.60nb5:../../devel/libtai
+DEPENDS+= ${DEPENDS_LIBTAI}
CONFLICTS+= courier-maildirmake-[0-9]*
CONFLICTS+= courier-mta-[0-9]*
@@ -76,6 +78,19 @@
.include "../../mk/bsd.prefs.mk"
+# Detect the PKG_SYSCONFDIR of the installed libtai, so we can find
+# its leapsecs.dat.
+
+.if !defined(PKG_SYSCONFDIR.libtai)
+PKG_SYSCONFDIR.libtai!= \
+ ${PKG_INFO} -Q PKG_SYSCONFDIR \
+ ${DEPENDS_LIBTAI:C/:.*$//:Q} 2>/dev/null || \
+ ${ECHO} "PKG_SYSCONFDIR.libtai_not_set"
+. if empty(PKG_SYSCONFDIR.libtai:M*not_set)
+MAKEVARS+= PKG_SYSCONFDIR.libtai
+. endif
+.endif
+
BUILD_DEFS+= QMAILDIR QMAILPATCHES QMAIL_QUEUE_DIR QMAIL_QUEUE_EXTRA
BUILD_DEFS+= QMAIL_ALIAS_USER QMAIL_DAEMON_USER QMAIL_LOG_USER
BUILD_DEFS+= QMAIL_ROOT_USER QMAIL_PASSWD_USER QMAIL_QUEUE_USER
@@ -122,6 +137,11 @@
SUBST_FILES.paths= README.*
SUBST_VARS.paths= PKGNAME PKG_INFO PREFIX GREP
+SUBST_CLASSES+= libtai
+SUBST_STAGE.libtai= do-configure
+SUBST_FILES.libtai= leapsecs_read.c
+SUBST_SED.libtai= -e 's|@PKG_SYSCONFDIR@|${PKG_SYSCONFDIR.libtai}|g'
+
SUBST_FILES.djbware+= cdb_seek.c dns.c
PKG_USERS_VARS+= QMAIL_ALIAS_USER QMAIL_DAEMON_USER QMAIL_LOG_USER
@@ -168,6 +188,10 @@
PATCHFILES+= ${MAILDIRUNIQ_PATCH}
SITES.${MAILDIRUNIQ_PATCH}= http://www.memoryhole.net/qmail/
PATCH_DIST_STRIP.${MAILDIRUNIQ_PATCH}=-p1
+PATCH_DIST_CAT.${MAILDIRUNIQ_PATCH}= \
+ ${SED} -e 's|"057"|"\\\\057"|' \
+ -e 's|"072"|"\\\\072"|' \
+ < ${MAILDIRUNIQ_PATCH}
QMAILPATCHES+= outgoingip:${OUTGOINGIP_PATCH}
OUTGOINGIP_PATCH= outgoingip.patch
@@ -196,6 +220,15 @@
PATCH_DIST_STRIP.${SPP_PATCH}= -p1
LICENSE+= AND gnu-gpl-v2
+QMAILPATCHES+= taileapsecs:${TAILEAPSECS_PATCH}
+TAILEAPSECS_PATCH= netqmail-1.05-TAI-leapsecs.patch
+PATCHFILES+= ${TAILEAPSECS_PATCH}
+SITES.${TAILEAPSECS_PATCH}= https://su.bze.ro/software/
+PATCH_DIST_STRIP.${TAILEAPSECS_PATCH}=-p1
+PATCH_DIST_CAT.${TAILEAPSECS_PATCH}= \
+ ${SED} -e 's|"/etc/leapsecs.dat"|"@PKG_SYSCONFDIR@/leapsecs.dat"|' \
+ < ${TAILEAPSECS_PATCH}
+
post-extract:
for i in ${READMES}; do \
${CP} ${FILESDIR}/$$i ${WRKSRC} || ${TRUE}; \
diff -r f1fd17095c41 -r 514c4f280e99 mail/qmail/distinfo
--- a/mail/qmail/distinfo Wed Jan 09 19:21:37 2019 +0000
+++ b/mail/qmail/distinfo Wed Jan 09 19:32:07 2019 +0000
@@ -1,5 +1,9 @@
-$NetBSD: distinfo,v 1.42 2018/12/17 19:15:33 schmonz Exp $
+$NetBSD: distinfo,v 1.43 2019/01/09 19:32:07 schmonz Exp $
+SHA1 (netqmail-1.05-TAI-leapsecs.patch) = 2c21cd7e20b241c1a82b79379f2c7ee3da5519f7
+RMD160 (netqmail-1.05-TAI-leapsecs.patch) = 9fd59001be5a07d914c66127236ebe8c33f64675
+SHA512 (netqmail-1.05-TAI-leapsecs.patch) = 2278139b825330a418171ad6dd4667410819591d3828f8b40dda789e1aafe1cefcc638fdc6d9de21a8c0ca6caffb41fbbb44bab2dd80f570e81c6e900c8596f7
+Size (netqmail-1.05-TAI-leapsecs.patch) = 16382 bytes
SHA1 (netqmail-1.06-destdir-20181217.patch) = b309f99d29af95358301ae6dde6b32c8db6c371a
RMD160 (netqmail-1.06-destdir-20181217.patch) = e42312b05c6f5dbb6614bfffb17991e25a4518d0
SHA512 (netqmail-1.06-destdir-20181217.patch) = 1cb02193f69930569c4c340c427d8e0002d1fb67b622ee8fd0fcbb273b5deca356fa2e0b11d44a2473cf2c083fc09d43bb3dfb70f22d284f262f2c2d6cf4221e
diff -r f1fd17095c41 -r 514c4f280e99 mail/qmail/options.mk
--- a/mail/qmail/options.mk Wed Jan 09 19:21:37 2019 +0000
+++ b/mail/qmail/options.mk Wed Jan 09 19:32:07 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.60 2018/12/13 05:01:55 schmonz Exp $
+# $NetBSD: options.mk,v 1.61 2019/01/09 19:32:07 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.qmail
PKG_SUPPORTED_OPTIONS+= eai inet6 pam syncdir tls
@@ -102,6 +102,6 @@
.if !empty(PKG_OPTIONS:Minet6)
DEPENDS+= ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
.else
-DEPENDS+= ucspi-tcp-[0-9]*:../../net/ucspi-tcp
+DEPENDS+= {ucspi-tcp6-[0-9]*,ucspi-tcp-[0-9]*}:../../net/ucspi-tcp
.endif
.endif
Home |
Main Index |
Thread Index |
Old Index