Sat Jan 8 11:28:16 2022 UTC ()
Enable MANZ by replacing roff includes with symlinks.


(schmonz)
diff -r1.108 -r1.109 pkgsrc/mail/dovecot2/Makefile

cvs diff -r1.108 -r1.109 pkgsrc/mail/dovecot2/Makefile (expand / switch to unified diff)

--- pkgsrc/mail/dovecot2/Makefile 2021/11/02 12:03:53 1.108
+++ pkgsrc/mail/dovecot2/Makefile 2022/01/08 11:28:16 1.109
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.108 2021/11/02 12:03:53 adam Exp $ 1# $NetBSD: Makefile,v 1.109 2022/01/08 11:28:16 schmonz Exp $
2 2
3.include "../../mail/dovecot2/Makefile.common" 3.include "../../mail/dovecot2/Makefile.common"
4 4
5RCD_SCRIPTS= dovecot 5RCD_SCRIPTS= dovecot
6SMF_NAME= dovecot 6SMF_NAME= dovecot
7 7
8DOVECOT_USER?= dovecot 8DOVECOT_USER?= dovecot
9DOVECOT_GROUP?= dovecot 9DOVECOT_GROUP?= dovecot
10DOVENULL_USER?= dovenull 10DOVENULL_USER?= dovenull
11DOVENULL_GROUP?= dovenull 11DOVENULL_GROUP?= dovenull
12PKG_GROUPS= ${DOVECOT_GROUP} ${DOVENULL_GROUP} 12PKG_GROUPS= ${DOVECOT_GROUP} ${DOVENULL_GROUP}
13PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP} \ 13PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP} \
14 ${DOVENULL_USER}:${DOVENULL_GROUP} 14 ${DOVENULL_USER}:${DOVENULL_GROUP}
@@ -25,21 +25,25 @@ CNFS= ${CNFS_cmd:sh} @@ -25,21 +25,25 @@ CNFS= ${CNFS_cmd:sh}
25CONF_FILES= ${EGDIR}/dovecot.conf ${PKG_SYSCONFDIR}/dovecot/dovecot.conf 25CONF_FILES= ${EGDIR}/dovecot.conf ${PKG_SYSCONFDIR}/dovecot/dovecot.conf
26.for file in ${CNFS} 26.for file in ${CNFS}
27CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/dovecot/${file:Q} 27CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/dovecot/${file:Q}
28.endfor 28.endfor
29 29
30INSTALLATION_DIRS+= libexec/dovecot sbin share/doc/dovecot 30INSTALLATION_DIRS+= libexec/dovecot sbin share/doc/dovecot
31INSTALLATION_DIRS+= share/examples/dovecot share/examples/dovecot/conf.d 31INSTALLATION_DIRS+= share/examples/dovecot share/examples/dovecot/conf.d
32OWN_DIRS= ${PKG_SYSCONFDIR}/dovecot/ 32OWN_DIRS= ${PKG_SYSCONFDIR}/dovecot/
33OWN_DIRS+= ${PKG_SYSCONFDIR}/dovecot/conf.d 33OWN_DIRS+= ${PKG_SYSCONFDIR}/dovecot/conf.d
34 34
35REPLACE_BASH+= src/util/dovecot-sysreport 35REPLACE_BASH+= src/util/dovecot-sysreport
36REPLACE_BASH+= src/util/health-check.sh 36REPLACE_BASH+= src/util/health-check.sh
37 37
38post-install: 38enable-manz-by-replacing-roff-includes-with-symlinks:
 39 cd ${DESTDIR}${PREFIX}/${PKGMANDIR} && \
 40 for i in $$(${GREP} -lr ^\\.so .); do \
 41 j=$$(${SED} -e 's|^\.so |../|' < $${i}); \
 42 ${RM} -f $${i} && ${LN} -s $${j} $${i}; \
 43 done
 44
 45post-install: enable-manz-by-replacing-roff-includes-with-symlinks
39 ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DESTDIR}${EGDIR} 46 ${INSTALL_DATA} ${WRKSRC}/doc/dovecot-openssl.cnf ${DESTDIR}${EGDIR}
40 ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DESTDIR}${EGDIR} 47 ${INSTALL_SCRIPT} ${WRKSRC}/doc/mkcert.sh ${DESTDIR}${EGDIR}
41 48
42# Don't compress manual pages as they include each other. 
43.undef MANZ 
44 
45.include "../../mk/bsd.pkg.mk" 49.include "../../mk/bsd.pkg.mk"