pkgsrc-Changes archive

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

CVS commit: pkgsrc/mail/dovecot2



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Sat Jan  8 11:28:16 UTC 2022

Modified Files:
        pkgsrc/mail/dovecot2: Makefile

Log Message:
Enable MANZ by replacing roff includes with symlinks.


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 pkgsrc/mail/dovecot2/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mail/dovecot2/Makefile
diff -u pkgsrc/mail/dovecot2/Makefile:1.108 pkgsrc/mail/dovecot2/Makefile:1.109
--- pkgsrc/mail/dovecot2/Makefile:1.108 Tue Nov  2 12:03:53 2021
+++ pkgsrc/mail/dovecot2/Makefile       Sat Jan  8 11:28:16 2022
@@ -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 @@ OWN_DIRS+=          ${PKG_SYSCONFDIR}/dovecot/co
 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