From owner-freebsd-ports-bugs@FreeBSD.ORG Thu May 1 06:30:19 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2228037B401 for ; Thu, 1 May 2003 06:30:19 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2AD7543FAF for ; Thu, 1 May 2003 06:30:17 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h41DUHUp026902 for ; Thu, 1 May 2003 06:30:17 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h41DUH18026901; Thu, 1 May 2003 06:30:17 -0700 (PDT) Resent-Date: Thu, 1 May 2003 06:30:17 -0700 (PDT) Resent-Message-Id: <200305011330.h41DUH18026901@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Anton Berezin Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B53637B401 for ; 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 ; 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 To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: autrijus@autrijus.org Subject: ports/51659: make www/rt3 be compatible with www/p5-FastCGI X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Anton Berezin List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 13:30:19 -0000 >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 @@ -@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: >Unformatted: