misc/154956: [PATCH] default config file for mail/exim

Alex Deiter alex.deiter at gmail.com
Tue Feb 22 13:20:07 UTC 2011


>Number:         154956
>Category:       misc
>Synopsis:       [PATCH] default config file for mail/exim
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Feb 22 13:20:06 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Alex Deiter
>Release:        8.1-RELEASE
>Organization:
N/A
>Environment:
FreeBSD bbb.tune-it.ru 9.0-CURRENT FreeBSD 9.0-CURRENT #3: Wed Dec 22 18:53:26 MSK 2010     root at sunway:/usr/obj/usr/src/sys/sunway  amd64

>Description:
Port mail/exim does not provide way for specify default location of the configuration file: ${PREFIX}/etc/exim/configure

Please review patch
>How-To-Repeat:
cd /usr/ports/mail/exim
make install

>Fix:
cd /usr/ports/mail/exim
patch -p0 < exim.txt
make CFG_FILE_PATH=/path/to/exim/cfg install

Patch attached with submission follows:

--- Makefile.orig	2011-02-22 15:13:43.943379507 +0300
+++ Makefile	2011-02-22 15:21:43.197378364 +0300
@@ -125,6 +125,7 @@
 
 LOGDIR?=	/var/log/exim
 LOG_FILE_PATH?=	${LOGDIR}/%slog
+CFG_FILE_PATH?= ${PREFIX}/etc/exim/configure
 
 SED_SCRIPT=	-e 's,%%PREFIX%%,${PREFIX},g' \
 		-e 's,%%DOCSDIR%%,${DOCSDIR},g' \
@@ -173,6 +174,7 @@
 		-e 's,XX_PREFIX_XX,${PREFIX},' \
 		-e 's,XX_LOCALBASE_XX,${LOCALBASE},' \
 		-e 's,XX_LOG_FILE_PATH_XX,${LOG_FILE_PATH},' \
+		-e 's,XX_CFG_FILE_PATH_XX,${CFG_FILE_PATH},' \
 		-e 's,XX_EXIM_USER_XX,${EXIM_USER},' \
 		-e 's,XX_EXIM_GROUP_XX,${EXIM_GROUP},' \
 		-e 's,XX_DEFAULT_CHARSET_XX,${WITH_DEFAULT_CHARSET},'
--- files/patch-src::EDITME.orig	2011-02-22 15:22:53.968385506 +0300
+++ files/patch-src::EDITME	2011-02-22 15:24:00.345380187 +0300
@@ -14,7 +14,7 @@
  # file does not exist.
  
 -CONFIGURE_FILE=/usr/exim/configure
-+CONFIGURE_FILE=XX_PREFIX_XX/etc/exim/configure
++CONFIGURE_FILE=XX_CFG_FILE_PATH_XX
  
  # It is possible to specify a colon-separated list of files for CONFIGURE_FILE.
  # In this case, Exim will use the first of them that exists when it is run.


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list