From tobez@tobez.org  Thu May  1 06:20:27 2003
Return-Path: <tobez@tobez.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 7B53637B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 May 2003 06:20:27 -0700 (PDT)
Received: from heechee.tobez.org (port485.ds1-ry.adsl.cybercity.dk [212.242.233.110])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 670DF43FCB
	for <FreeBSD-gnats-submit@freebsd.org>; Thu,  1 May 2003 06:20:26 -0700 (PDT)
	(envelope-from tobez@tobez.org)
Received: by heechee.tobez.org (Postfix, from userid 1001)
	id F2577175D0; Thu,  1 May 2003 15:20:23 +0200 (CEST)
Message-Id: <20030501132023.F2577175D0@heechee.tobez.org>
Date: Thu,  1 May 2003 15:20:23 +0200 (CEST)
From: Anton Berezin <tobez@FreeBSD.org>
Reply-To: Anton Berezin <tobez@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: autrijus@autrijus.org
Subject: make www/rt3 be compatible with www/p5-FastCGI
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         51659
>Category:       ports
>Synopsis:       make www/rt3 be compatible with www/p5-FastCGI
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 01 06:30:17 PDT 2003
>Closed-Date:    Wed Jun 11 12:05:05 CEST 2003
>Last-Modified:  Wed Jun 11 12:05:05 CEST 2003
>Originator:     Anton Berezin
>Release:        FreeBSD 4.8-STABLE i386
>Organization:
>Environment:
>Description:

There is currently no way to make rt3 use FastCGI via the port.
>How-To-Repeat:
	
>Fix:

(requires ports/51653 and ports/51656 to be applied first)

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/www/rt3/Makefile,v
retrieving revision 1.6
diff -u -r1.6 Makefile
--- Makefile	29 Apr 2003 10:24:14 -0000	1.6
+++ Makefile	1 May 2003 13:16:02 -0000
@@ -7,6 +7,7 @@
 
 PORTNAME=	rt3
 PORTVERSION=    3.0.1
+PORTREVISION=	1
 CATEGORIES=     www
 MASTER_SITES=   http://www.fsck.com/pub/rt/release/
 WRKSRC=         ${WRKDIR}/rt-3-0-1
@@ -16,8 +17,6 @@
 COMMENT=	RT is an industrial-grade ticketing system written in Perl
 
 BUILD_DEPENDS=  ${APXS}:${APACHE_PORT} \
-		${ARCH_PERL}/Apache/Cookie.pm:${PORTSDIR}/www/p5-libapreq \
-		${SITE_PERL}/Apache/DBI.pm:${PORTSDIR}/www/p5-Apache-DBI \
 		${SITE_PERL}/Apache/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
 		${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session \
 		${SITE_PERL}/Cache/Cache.pm:${PORTSDIR}/devel/p5-Cache-Cache \
@@ -70,6 +69,14 @@
 		--with-db-type=${DB_TYPE} \
 		--with-db-dba=${DB_DBA_USER}
 
+.if defined(WITH_FASTCGI)
+BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi \
+		${ARCH_PERL}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
+TESTDEPS_ARGS+=	--with-FASTCGI
+DEPENDS_ARGS+=	WITHOUT_MODPERL=yes
+.else
+BUILD_DEPENDS+=	${ARCH_PERL}/Apache/Cookie.pm:${PORTSDIR}/www/p5-libapreq \
+		${SITE_PERL}/Apache/DBI.pm:${PORTSDIR}/www/p5-Apache-DBI
 .if defined(WITH_APACHE2)
 APACHE_PORT?=   ${PORTSDIR}/www/apache2
 BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
@@ -79,6 +86,7 @@
 BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
 TESTDEPS_ARGS+=	--with-MODPERL1
 .endif
+.endif
 
 APXS?=          ${LOCALBASE}/sbin/apxs
 
@@ -119,6 +127,7 @@
 	@${ECHO} "      DB_PORT=port                    The database port"
 	@${ECHO} "      DB_DBA_USER=password            Name of database administrator (root)"
 	@${ECHO} "      DB_DBA_PASSWORD=password        Password of database administrator"
+	@${ECHO} "      WITH_FASTCGI                    Use FastCGI instead of mod_perl"
 	@${ECHO} "      WITH_APACHE2                    Use Apache2 as the web server"
 	@${ECHO} "      UPGRADE                         Upgrade only, don't initialize DB"
 	@${ECHO} ""
@@ -127,7 +136,7 @@
 	-@cd ${WRKSRC} && chmod a+x configure
 
 do-build:
-	-@cd ${WRKSRC} && ${PERL} ./sbin/rt-test-dependencies --install ${TESTDEPS_ARGS}
+	-@cd ${WRKSRC} && ${PERL} ./sbin/rt-test-dependencies ${TESTDEPS_ARGS}
 
 do-install:
 	@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile install
>Release-Note:
>Audit-Trail:

From: Giorgos Keramidas <keramida@freebsd.org>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/51659: make www/rt3 be compatible with www/p5-FastCGI
Date: Tue, 20 May 2003 02:29:43 +0300

 Adding to the audit trail ...
 
 : Message-Id: <20030501162551.GB70413@not.autrijus.org>
 : Date: Fri, 2 May 2003 00:25:51 +0800
 : From: Autrijus Tang <autrijus@autrijus.org>
 :
 : On Thu, May 01, 2003 at 03:20:23PM +0200, Anton Berezin wrote:
 : > @@ -119,6 +127,7 @@
 : >  	@${ECHO} "      DB_PORT=port                    The database port"
 : >  	@${ECHO} "      DB_DBA_USER=password            Name of database administrator (root)"
 : >  	@${ECHO} "      DB_DBA_PASSWORD=password        Password of database administrator"
 : > +	@${ECHO} "      WITH_FASTCGI                    Use FastCGI instead of mod_perl"
 : >  	@${ECHO} "      WITH_APACHE2                    Use Apache2 as the web server"
 : >  	@${ECHO} "      UPGRADE                         Upgrade only, don't initialize DB"
 : >  	@${ECHO} ""
 :
 : Looks good, let's apply it.
 :
 : I hope that some day one can say -DWITH_APACHE2 -DWITH_FASTCGI to
 : use apache2+fastcgi, too, but currently www/mod_fastcgi does not
 : support apache2 anyway, so that point is moot.
 :
 : Thanks,
 : /Autrijus/
State-Changed-From-To: open->closed 
State-Changed-By: tobez 
State-Changed-When: Wed Jun 11 12:03:49 CEST 2003 
State-Changed-Why:  
Committed. 

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