From nobody@FreeBSD.org  Sun Jul  3 15:07:55 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 E603B16A422
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jul 2005 15:07:55 +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 BBD0543D48
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  3 Jul 2005 15:07:55 +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 j63F7t7b000628
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 3 Jul 2005 15:07:55 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j63F7sPp000591;
	Sun, 3 Jul 2005 15:07:54 GMT
	(envelope-from nobody)
Message-Id: <200507031507.j63F7sPp000591@www.freebsd.org>
Date: Sun, 3 Jul 2005 15:07:54 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:         82929
>Category:       ports
>Synopsis:       qmail's prefix should be configurable from /etc/make.conf
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    garga
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 03 15:10:24 GMT 2005
>Closed-Date:    Mon Jul 25 12:21:58 GMT 2005
>Last-Modified:  Mon Jul 25 12:21:58 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:

From: Pav Lucistnik <pav@FreeBSD.org>
To: freebsd@galle.com.br, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/82929: qmail's prefix should be configurable from
	/etc/make.conf
Date: Thu, 07 Jul 2005 17:56:55 +0200

 What about other qmail* related ports, which also install
 into /var/qmail by default, should they get similar treatment?
 
 What about QMAIL_DIR which is used for same purpose in several ports?
 
 And what does maintainer thinks about this? (Cc:ed)
 
 -- 
 Pav Lucistnik <pav@oook.cz>
               <pav@FreeBSD.org>
 
 And now something completely different.

From: Renato Botelho <freebsd@galle.com.br>
To: Pav Lucistnik <pav@FreeBSD.org>
Cc: freebsd@galle.com.br, bug-followup@FreeBSD.org
Subject: Re: ports/82929: qmail's prefix should be configurable from /etc/make.conf
Date: Thu, 7 Jul 2005 13:10:45 -0300

 On Thu, Jul 07, 2005 at 05:56:55PM +0200, Pav Lucistnik wrote:
 > What about other qmail* related ports, which also install
 > into /var/qmail by default, should they get similar treatment?
 > 
 > What about QMAIL_DIR which is used for same purpose in several ports?
 > 
 > And what does maintainer thinks about this? (Cc:ed)
 
 I think the idea is good, but IMO, the best way is wait this
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/82791
 
 when this PR is commited this solution could be made simplest way,
 adding QMAIL_PREFIX on mail/qmail/Makefile.include and setting
 PREFIX?=${QMAIL_PREFIX}.
 
 And when you implemet this, you'll need to change all ports that use
 PREFIX?=/var/qmail
 
 Thanks
 -- 
 Renato Botelho <freebsd at galle dot com dot br>
 AIM: RBGargaBR | ICQ: 54596223
 GnuPG Key: http://www.galle.com.br/~renato/pubkey.asc
 
 "Always try to do things in chronological order; it's less confusing
 that way."
Responsible-Changed-From-To: freebsd-ports-bugs->garga 
Responsible-Changed-By: garga 
Responsible-Changed-When: Mon Jul 11 18:23:08 GMT 2005 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=82929 
State-Changed-From-To: open->closed 
State-Changed-By: garga 
State-Changed-When: Mon Jul 25 12:21:54 GMT 2005 
State-Changed-Why:  
Superseded by ports/84053 

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