From 030ab6d1e722844f1e4d40245dec28e0f92f902e Mon Sep 17 00:00:00 2001 From: tobez Date: Wed, 11 Jun 2003 09:57:42 +0000 Subject: Make www/rt3 compatible with www/p5-FastCGI. PR: 51659 Approved by: maintainer --- www/rt36/Makefile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'www/rt36/Makefile') diff --git a/www/rt36/Makefile b/www/rt36/Makefile index d1d53d5fa66a..5398e931774c 100644 --- a/www/rt36/Makefile +++ b/www/rt36/Makefile @@ -7,6 +7,7 @@ PORTNAME= rt3 PORTVERSION= 3.0.2 +PORTREVISION= 1 CATEGORIES= www MASTER_SITES?= http://www.fsck.com/pub/rt/release/ \ ftp://ftp.eu.uu.net/pub/unix/ticketing/rt/ @@ -16,7 +17,6 @@ MAINTAINER= autrijus@autrijus.org COMMENT?= RT is an industrial-grade ticketing system written in Perl BUILD_DEPENDS= ${APXS}:${APACHE_PORT} \ - ${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 \ @@ -71,6 +71,14 @@ CONFIGURE_ARGS= --prefix=${RT_PATH} \ --with-db-type=${DB_TYPE} \ --with-db-dba=${DB_DBA_USER} +.if defined(WITH_FASTCGI) +APACHE_PORT?= ${PORTSDIR}/www/apache13 +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+= ${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 @@ -78,6 +86,7 @@ BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_per APACHE_PORT?= ${PORTSDIR}/www/apache13 BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl .endif +.endif APXS?= ${LOCALBASE}/sbin/apxs @@ -114,6 +123,7 @@ pre-fetch: @${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} "" -- cgit