Date: Sun, 3 Jul 2005 15:07:14 GMT From: Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de> To: freebsd-gnats-submit@FreeBSD.org Subject: misc/82928: qmail's prefix should be configurable from /etc/make.conf Message-ID: <200507031507.j63F7EYU099416@www.freebsd.org> Resent-Message-ID: <200507031510.j63FAOkK063022@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 82928
>Category: misc
>Synopsis: qmail's prefix should be configurable from /etc/make.conf
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Jul 03 15:10:24 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Florian Franzmann
>Release: 5.4-RELEASE-p3
>Organization:
>Environment:
FreeBSD dings.localdomain 5.4-RELEASE-p3 FreeBSD 5.4-RELEASE-p3 #1: Sat Jul 2 12:27:22 CEST 2005 root@dings.localdomain:/usr/obj/usr/src/sys/HAWO-FB5 i386
>Description:
Due to licensing issues qmail is normally installed into /var/qmail. It is however possible to install qmail someplace else by setting PREFIX on the command line. Since it is not reasonable to set prefix in /etc/make.conf I suggest a variable QMAIL_PREFIX which sets the prefix for the qmail port.
>How-To-Repeat:
>Fix:
Apply the following patch against the qmail port's Makefile:
--- /usr/ports/mail/qmail/Makefile Thu Jun 30 09:29:05 2005
+++ qmail/Makefile Sun Jul 3 17:04:53 2005
@@ -99,10 +99,11 @@
NO_PACKAGE= djb's packaging license does not allow non-standard \
qmail binary distributions
-# A normal qmail installation puts everything into /var/qmail/.
-# If you want to install to /usr/local/, then "/usr/local/qmail" is
-# suggested instead of "/usr/local", but both will work.
+.if defined(QMAIL_PREFIX)
+PREFIX= ${QMAIL_PREFIX}
+.else
PREFIX?= /var/qmail
+.endif
QMAIL_VERSION?= 1.03
.if defined(SLAVE_SMTP_AUTH_TLS) || defined(SLAVE_TLS)
@@ -465,6 +466,18 @@
@${ECHO_MSG} " (default NUMBER=${WITH_BIG_CONCURRENCY_PATCH_CONCURRENCY_LIMIT})"
@${ECHO_MSG} " set this to a value reasonable for"
@${ECHO_MSG} " your system if you use the patch"
+ @${ECHO_MSG} ""
+.endif
+
+.if !defined(QMAIL_PREFIX)
+ @${ECHO_MSG} "QMAIL_PREFIX=PREFIX_PATH"
+ @${ECHO_MSG} " (default PREFIX_PATH=${PREFIX})"
+ @${ECHO_MSG} " A normal qmail installation puts"
+ @${ECHO_MSG} " everything into /var/qmail/."
+ @${ECHO_MSG} " If you want to install to ${LOCALBASE},"
+ @${ECHO_MSG} " then \"${LOCALBASE}/qmail\" is suggested"
+ @${ECHO_MSG} " instead of \"${LOCALBASE}\", but both will"
+ @${ECHO_MSG} " work."
@${ECHO_MSG} ""
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507031507.j63F7EYU099416>
