| @@ -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 | |
5 | RCD_SCRIPTS= dovecot | | 5 | RCD_SCRIPTS= dovecot |
6 | SMF_NAME= dovecot | | 6 | SMF_NAME= dovecot |
7 | | | 7 | |
8 | DOVECOT_USER?= dovecot | | 8 | DOVECOT_USER?= dovecot |
9 | DOVECOT_GROUP?= dovecot | | 9 | DOVECOT_GROUP?= dovecot |
10 | DOVENULL_USER?= dovenull | | 10 | DOVENULL_USER?= dovenull |
11 | DOVENULL_GROUP?= dovenull | | 11 | DOVENULL_GROUP?= dovenull |
12 | PKG_GROUPS= ${DOVECOT_GROUP} ${DOVENULL_GROUP} | | 12 | PKG_GROUPS= ${DOVECOT_GROUP} ${DOVENULL_GROUP} |
13 | PKG_USERS= ${DOVECOT_USER}:${DOVECOT_GROUP} \ | | 13 | PKG_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} |
25 | CONF_FILES= ${EGDIR}/dovecot.conf ${PKG_SYSCONFDIR}/dovecot/dovecot.conf | | 25 | CONF_FILES= ${EGDIR}/dovecot.conf ${PKG_SYSCONFDIR}/dovecot/dovecot.conf |
26 | .for file in ${CNFS} | | 26 | .for file in ${CNFS} |
27 | CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/dovecot/${file:Q} | | 27 | CONF_FILES+= ${EGDIR}/${file:Q} ${PKG_SYSCONFDIR}/dovecot/${file:Q} |
28 | .endfor | | 28 | .endfor |
29 | | | 29 | |
30 | INSTALLATION_DIRS+= libexec/dovecot sbin share/doc/dovecot | | 30 | INSTALLATION_DIRS+= libexec/dovecot sbin share/doc/dovecot |
31 | INSTALLATION_DIRS+= share/examples/dovecot share/examples/dovecot/conf.d | | 31 | INSTALLATION_DIRS+= share/examples/dovecot share/examples/dovecot/conf.d |
32 | OWN_DIRS= ${PKG_SYSCONFDIR}/dovecot/ | | 32 | OWN_DIRS= ${PKG_SYSCONFDIR}/dovecot/ |
33 | OWN_DIRS+= ${PKG_SYSCONFDIR}/dovecot/conf.d | | 33 | OWN_DIRS+= ${PKG_SYSCONFDIR}/dovecot/conf.d |
34 | | | 34 | |
35 | REPLACE_BASH+= src/util/dovecot-sysreport | | 35 | REPLACE_BASH+= src/util/dovecot-sysreport |
36 | REPLACE_BASH+= src/util/health-check.sh | | 36 | REPLACE_BASH+= src/util/health-check.sh |
37 | | | 37 | |
38 | post-install: | | 38 | enable-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 | |
| | | 45 | post-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" |