pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mail/qmail Apply the "tai-leapsecs" patch iff the 'tai...
details: https://anonhg.NetBSD.org/pkgsrc/rev/5fbefc167fb5
branches: trunk
changeset: 317974:5fbefc167fb5
user: schmonz <schmonz%pkgsrc.org@localhost>
date: Thu Jan 17 22:49:12 2019 +0000
description:
Apply the "tai-leapsecs" patch iff the 'tai-system-clock' option is set
(off by default). Bump PKGREVISION.
diffstat:
mail/qmail/Makefile | 33 ++-------------------------------
mail/qmail/options.mk | 36 +++++++++++++++++++++++++++++++-----
2 files changed, 33 insertions(+), 36 deletions(-)
diffs (131 lines):
diff -r 1343c96946f4 -r 5fbefc167fb5 mail/qmail/Makefile
--- a/mail/qmail/Makefile Thu Jan 17 22:26:21 2019 +0000
+++ b/mail/qmail/Makefile Thu Jan 17 22:49:12 2019 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.108 2019/01/09 19:32:07 schmonz Exp $
+# $NetBSD: Makefile,v 1.109 2019/01/17 22:49:12 schmonz Exp $
#
DISTNAME= netqmail-1.06
PKGNAME= qmail-1.03
-PKGREVISION= 43
+PKGREVISION= 44
CATEGORIES= mail
MASTER_SITES= http://qmail.org/
@@ -13,8 +13,6 @@
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]*
@@ -78,19 +76,6 @@
.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
@@ -137,11 +122,6 @@
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
@@ -220,15 +200,6 @@
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 1343c96946f4 -r 5fbefc167fb5 mail/qmail/options.mk
--- a/mail/qmail/options.mk Thu Jan 17 22:26:21 2019 +0000
+++ b/mail/qmail/options.mk Thu Jan 17 22:49:12 2019 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: options.mk,v 1.61 2019/01/09 19:32:07 schmonz Exp $
+# $NetBSD: options.mk,v 1.62 2019/01/17 22:49:12 schmonz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.qmail
-PKG_SUPPORTED_OPTIONS+= eai inet6 pam syncdir tls
+PKG_SUPPORTED_OPTIONS+= eai inet6 pam syncdir tai-system-clock tls
PKG_SUPPORTED_OPTIONS+= qmail-customerror qmail-srs
PKG_SUGGESTED_OPTIONS+= eai syncdir tls
PKG_SUGGESTED_OPTIONS+= qmail-customerror qmail-srs
@@ -76,6 +76,32 @@
SUBST_MESSAGE.load= Setting linker flags for syncdir.
.endif
+.if !empty(PKG_OPTIONS:Mtai-system-clock)
+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}
+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'
+DEPENDS_LIBTAI= libtai>=0.60nb5:../../devel/libtai
+DEPENDS+= ${DEPENDS_LIBTAI}
+. 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
+.endif
+
PLIST_VARS+= tls
.if !empty(PKG_OPTIONS:Mtls)
PLIST.tls= yes
@@ -99,9 +125,9 @@
.else
BUILDLINK_TRANSFORM+= rm:-lssl
BUILDLINK_TRANSFORM+= rm:-lcrypto
-.if !empty(PKG_OPTIONS:Minet6)
+. if !empty(PKG_OPTIONS:Minet6)
DEPENDS+= ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
-.else
+. else
DEPENDS+= {ucspi-tcp6-[0-9]*,ucspi-tcp-[0-9]*}:../../net/ucspi-tcp
+. endif
.endif
-.endif
Home |
Main Index |
Thread Index |
Old Index