summaryrefslogtreecommitdiff
path: root/mail/qmail
diff options
context:
space:
mode:
authorschmonz <schmonz@pkgsrc.org>2017-08-03 03:20:57 +0000
committerschmonz <schmonz@pkgsrc.org>2017-08-03 03:20:57 +0000
commita80112c67f192203f3a4c75bffb3738da66d302f (patch)
tree07ea1f194b860251a41ae7c2e6a9cd6f09240288 /mail/qmail
parentb59b0afa20d0216f8e8e7a83b9c32627d24616b4 (diff)
downloadpkgsrc-a80112c67f192203f3a4c75bffb3738da66d302f.tar.gz
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 (limited to 'mail/qmail')
-rw-r--r--mail/qmail/Makefile28
1 files changed, 13 insertions, 15 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index a400b9fafbe..77065f27418 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -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_SED.logging+= -e 's|""|${QUEUE_EXTRA}|g'
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_FILES.catpages= hier.c
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 @@ post-extract:
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 @@ post-install:
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