ports/152684: [patch][mail/dovecot2] Many improvements to default config files of dovecot2

Lev A. Serebryakov lev at FreeBSD.org
Mon Nov 29 22:00:26 UTC 2010

>Number:         152684
>Category:       ports
>Synopsis:       [patch][mail/dovecot2] Many improvements to default config files of dovecot2
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Nov 29 22:00:22 UTC 2010
>Originator:     Lev A. Serebryakov
>Release:        FreeBSD 8.2-PRERELEASE amd64
System: FreeBSD blob.home.serebryakov.spb.ru 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #0: Thu Nov 25 23:43:53 MSK 2010 lev at blob.home.serebryakov.spb.ru:/usr/obj/usr/src/sys/BLOB amd64


  dovecot2 has modular config with many small files.
  Now port installs them into "${DOCDIR}/example-config" which
  doesn't look right. Also, port replace example paths like "/etc/dovecot"
  with "${PREFIX}/etc/dovecot" only in "main" config, which doesn't look
  right too.
  This patch moves example config into ${EXAMPLESDIR} and makes paths
  ${PREFIX}-relative in ALL config files.

  Install dovecot2 port now :)
Index: Makefile
RCS file: /home/pcvs/ports/mail/dovecot2/Makefile,v
retrieving revision 1.1
diff -u -r1.1 Makefile
--- Makefile	27 Nov 2010 05:53:35 -0000	1.1
+++ Makefile	29 Nov 2010 21:49:42 -0000
@@ -7,6 +7,7 @@
 PORTNAME=	dovecot
 CATEGORIES=	mail ipv6
 MASTER_SITES=	http://www.dovecot.org/releases/${DOVECOTVERSION}/
@@ -195,12 +196,14 @@
 MAN7=	doveadm-search-query.7
-		${WRKSRC}/doc/example-config/dovecot.conf
+	@for cfg in `${FIND} ${WRKSRC}/doc/example-config -name '*.conf' -o -name '*.conf.ext'` ; do \
+		${REINPLACE_CMD} -E -e '${REINPLACE}' $$cfg ; \
+	done	
 	@${REINPLACE_CMD} -E -e'\
-		' ${WRKSRC}/*/Makefile.in ${WRKSRC}/Makefile.in
+		s!^(exampledir[[:space:]]+=[[:space:]]+)\$$\(docdir\)!\1${EXAMPLESDIR}!g; \
+		' `find ${WRKSRC} -name Makefile.in`
 .if defined(WITH_GSSAPI)
 	@${REINPLACE_CMD} -e '\

More information about the freebsd-ports-bugs mailing list