ports/51659: make www/rt3 be compatible with www/p5-FastCGI
Anton Berezin
tobez at FreeBSD.org
Thu May 1 13:30:19 UTC 2003
>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: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu May 01 06:30:17 PDT 2003
>Closed-Date:
>Last-Modified:
>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 @@
- at cd ${WRKSRC} && chmod a+x configure
do-build:
- - at cd ${WRKSRC} && ${PERL} ./sbin/rt-test-dependencies --install ${TESTDEPS_ARGS}
+ - at cd ${WRKSRC} && ${PERL} ./sbin/rt-test-dependencies ${TESTDEPS_ARGS}
do-install:
@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile install
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list