pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/qmail Let binary packages built with MANZ install...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/95aaec0a16dd
branches:  trunk
changeset: 366109:95aaec0a16dd
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Thu Aug 03 03:20:57 2017 +0000

description:
Let binary packages built with MANZ install to completion by informing
install-destdir and instcheck about the .gz extensions. While here,
handle INSTALL and SENDMAIL docs on case-insensitive filesystems in a
more straightforward way. Bump PKGREVISION.

diffstat:

 mail/qmail/Makefile |  28 +++++++++++++---------------
 1 files changed, 13 insertions(+), 15 deletions(-)

diffs (71 lines):

diff -r 1d39bbbb767a -r 95aaec0a16dd mail/qmail/Makefile
--- a/mail/qmail/Makefile       Wed Aug 02 20:31:39 2017 +0000
+++ b/mail/qmail/Makefile       Thu Aug 03 03:20:57 2017 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.90 2017/08/01 02:53:59 schmonz Exp $
+# $NetBSD: Makefile,v 1.91 2017/08/03 03:20:57 schmonz Exp $
 #
 
 DISTNAME=              netqmail-1.06
 PKGNAME=               qmail-1.03
-PKGREVISION=           30
+PKGREVISION=           31
 CATEGORIES=            mail
 MASTER_SITES=          http://qmail.org/
 
@@ -96,17 +96,11 @@
 SUBST_MESSAGE.logging= Setting QUEUE_EXTRA.
 .endif
 
-CASECLASH=             .doc.caseclash
 SUBST_CLASSES+=                caseclash
 SUBST_STAGE.caseclash= do-configure
 SUBST_FILES.caseclash= hier.c
-SUBST_SED.caseclash=   -e 's|"INSTALL"|"INSTALL${CASECLASH}"|g'
-SUBST_SED.caseclash+=  -e 's|"SENDMAIL"|"SENDMAIL${CASECLASH}"|g'
-SUBST_CLASSES+=                caseclash2
-SUBST_STAGE.caseclash2=        post-install
-SUBST_FILES.caseclash2=        hier.c
-SUBST_SED.caseclash2=  -e 's|"INSTALL${CASECLASH}"|"INSTALL"|g'
-SUBST_SED.caseclash2+= -e 's|"SENDMAIL${CASECLASH}"|"SENDMAIL"|g'
+SUBST_SED.caseclash=   -e 's|"doc","INSTALL"|".","doc/INSTALL"|g'
+SUBST_SED.caseclash+=  -e 's|"doc","SENDMAIL"|".","doc/SENDMAIL"|g'
 
 SUBST_CLASSES+=                catpages
 SUBST_STAGE.catpages=  do-configure
@@ -114,6 +108,13 @@
 SUBST_SED.catpages=    -e 's|.*"man/cat[0-9]".*||g'
 SUBST_SED.catpages+=   -e 's|.*"tcp-environ\.5".*||g'  # also in ucspi-tcp
 
+.if defined(MANZ)
+SUBST_CLASSES+=                manzpages
+SUBST_STAGE.manzpages= post-build
+SUBST_FILES.manzpages= hier_destdir.c
+SUBST_SED.manzpages=   -e 's|\(.*"man/man[0-9]",".*\.[0-9]\)|\1.gz|g'
+.endif
+
 SUBST_CLASSES+=                paths
 SUBST_STAGE.paths=     do-configure
 SUBST_FILES.paths=     README.*
@@ -144,8 +145,9 @@
        for i in ${READMES}; do                                         \
                ${CP} ${FILESDIR}/$$i ${WRKSRC} || ${TRUE};             \
        done
+       mkdir ${WRKSRC}/doc &&                                          \
        for i in INSTALL SENDMAIL; do                                   \
-               ${MV} ${WRKSRC}/$$i ${WRKSRC}/$$i${CASECLASH};          \
+               ${MV} ${WRKSRC}/$$i ${WRKSRC}/doc/$$i;                  \
        done
 
 post-patch:
@@ -175,10 +177,6 @@
 
        cd ${WRKSRC} && ${MAKE} instcheck install-destdir
 
-       for i in INSTALL SENDMAIL; do                                   \
-               ${MV} ${DESTDIR}${DOCDIR}/$$i${CASECLASH} ${DESTDIR}${DOCDIR}/$$i || ${TRUE}; \
-       done
-
        for i in ${REJECTUTILS}; do                                     \
                ${INSTALL_PROGRAM} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/bin/$$i; \
        done



Home | Main Index | Thread Index | Old Index