From nobody@FreeBSD.org  Sun Jul  3 15:07:14 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id D8FAD16A41C
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jul 2005 15:07:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C45E543D46
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jul 2005 15:07:14 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j63F7EtF099418
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Jul 2005 15:07:14 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j63F7EYU099416;
	Sun, 3 Jul 2005 15:07:14 GMT
	(envelope-from nobody)
Message-Id: <200507031507.j63F7EYU099416@www.freebsd.org>
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: qmail's prefix should be configurable from /etc/make.conf
X-Send-Pr-Version: www-2.3

>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:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 03 15:10:24 GMT 2005
>Closed-Date:    Mon Jul 04 01:55:01 GMT 2005
>Last-Modified:  Mon Jul 04 01:55:01 GMT 2005
>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:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Mon Jul 4 01:54:35 GMT 2005 
State-Changed-Why:  
Superceeded by ports/82929. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82928 
>Unformatted:
