pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/dovecot2 Enable MANZ by replacing roff includes w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d653438a5f5a
branches:  trunk
changeset: 371274:d653438a5f5a
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sat Jan 08 11:28:16 2022 +0000

description:
Enable MANZ by replacing roff includes with symlinks.

diffstat:

 mail/dovecot2/Makefile |  14 +++++++++-----
 1 files changed, 9 insertions(+), 5 deletions(-)

diffs (29 lines):

diff -r f32faff09ff4 -r d653438a5f5a mail/dovecot2/Makefile
--- a/mail/dovecot2/Makefile    Sat Jan 08 11:16:15 2022 +0000
+++ b/mail/dovecot2/Makefile    Sat Jan 08 11:28:16 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.108 2021/11/02 12:03:53 adam Exp $
+# $NetBSD: Makefile,v 1.109 2022/01/08 11:28:16 schmonz Exp $
 
 .include "../../mail/dovecot2/Makefile.common"
 
@@ -35,11 +35,15 @@
 REPLACE_BASH+=         src/util/dovecot-sysreport
 REPLACE_BASH+=         src/util/health-check.sh
 
-post-install:
+enable-manz-by-replacing-roff-includes-with-symlinks:
+       cd ${DESTDIR}${PREFIX}/${PKGMANDIR} && \
+       for i in $$(${GREP} -lr ^\\.so .); do \
+               j=$$(${SED} -e 's|^\.so |../|' < $${i}); \
+               ${RM} -f $${i} && ${LN} -s $${j} $${i}; \
+       done
+
+post-install: enable-manz-by-replacing-roff-includes-with-symlinks
        ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DESTDIR}${EGDIR}
        ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DESTDIR}${EGDIR}
 
-# Don't compress manual pages as they include each other.
-.undef MANZ
-
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index