From nobody@FreeBSD.org  Mon Sep 26 18:41:11 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 215A616A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Sep 2005 18:41:11 +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 D98A343D58
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Sep 2005 18:41:10 +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 j8QIfAhr093444
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 26 Sep 2005 18:41:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j8QIfA2l093443;
	Mon, 26 Sep 2005 18:41:10 GMT
	(envelope-from nobody)
Message-Id: <200509261841.j8QIfA2l093443@www.freebsd.org>
Date: Mon, 26 Sep 2005 18:41:10 GMT
From: Martin Piayda <martin.piayda@udo.edu>
To: freebsd-gnats-submit@FreeBSD.org
Subject: courier-imap 4.0.6 prefixed installation and configure cleanup
X-Send-Pr-Version: www-2.3

>Number:         86609
>Category:       ports
>Synopsis:       courier-imap 4.0.6 prefixed installation and configure cleanup
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    oliver
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 26 18:50:15 GMT 2005
>Closed-Date:    Mon Sep 26 20:39:11 GMT 2005
>Last-Modified:  Mon Sep 26 22:30:10 GMT 2005
>Originator:     Martin Piayda
>Release:        FreeBSD 5.4
>Organization:
>Environment:
FreeBSD themis 5.4-RELEASE-p5 FreeBSD 5.4-RELEASE-p5
>Description:
I've updated the current Makefile for prefixed installations and enhanced the configure section to make it more readable
>How-To-Repeat:
always
>Fix:
diff -ruN bak/Makefile Makefile
--- bak/Makefile    Sat Sep 24 14:56:19 2005
+++ Makefile   Mon Sep 26 20:24:26 2005
@@ -34,10 +34,13 @@
 USE_GMAKE=     yes
 USE_RC_SUBR=   yes

-CONFIGURE_ENV= CFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
-               CPPFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
-               CXXFLAGS="${CPPFLAGS} -I${LOCALBASE}/include" \
-               LIBS="${LDFLAGS} -L${LOCALBASE}/lib"
+CPPFLAGS+=      -I${LOCALBASE}/include -I${PREFIX}/include
+LDFLAGS+=       -L${LOCALBASE}/lib -L${PREFIX}/lib
+CONFIGURE_ENV=  REHASH=${SCRIPTDIR}/c_rehash \
+                CPPFLAGS='${CPPFLAGS}' \
+               CXXFLAGS='${CPPFLAGS}' \
+                LDFLAGS='${LDFLAGS}'
+MAKE_ENV:=      ${CONFIGURE_ENV}

 #
 # options available:
@@ -71,7 +74,8 @@
                --enable-workarounds-for-imap-client-bugs \
                --enable-unicode \
                --disable-root-check \
-               --with-locking-method=fcntl
+               --with-locking-method=fcntl \
+               COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig

 .include <bsd.port.pre.mk>

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->oliver 
Responsible-Changed-By: mnag 
Responsible-Changed-When: Mon Sep 26 19:56:19 GMT 2005 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=86609 
State-Changed-From-To: open->closed 
State-Changed-By: oliver 
State-Changed-When: Mon Sep 26 20:38:26 GMT 2005 
State-Changed-Why:  
Committed a slightly modified version, thanks 

I committed 
COURIERAUTHCONFIG=${LOCALBASE}/bin/courierauthconfig 
instead of 
COURIERAUTHCONFIG=${PREFIX}/bin/courierauthconfig 


http://www.freebsd.org/cgi/query-pr.cgi?pr=86609 

From: Martin Piayda <martin.piayda@udo.edu>
To: bug-followup@FreeBSD.org, martin.piayda@udo.edu
Cc:  
Subject: Re: ports/86609: courier-imap 4.0.6 prefixed installation and
	configure cleanup
Date: Tue, 27 Sep 2005 00:22:40 +0200

 A prefixed installation does not work with ${LOCALBASE}
 
 I have tested ${PREFIX} to work with either prefixed and standard
 environmental installation. So... the makefile which is now in ports is
 broken...
 
 Regards,
 Martin
 
>Unformatted:
