From rafan@svm.csie.ntu.edu.tw  Mon Jan  2 10:55:35 2006
Return-Path: <rafan@svm.csie.ntu.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id B3F9316A420
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Jan 2006 10:55:35 +0000 (GMT)
	(envelope-from rafan@svm.csie.ntu.edu.tw)
Received: from svm.csie.ntu.edu.tw (svm.csie.ntu.edu.tw [140.112.90.75])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 8099843D7C
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  2 Jan 2006 10:55:25 +0000 (GMT)
	(envelope-from rafan@svm.csie.ntu.edu.tw)
Received: from svm.csie.ntu.edu.tw (localhost [127.0.0.1])
	by svm.csie.ntu.edu.tw (8.13.4/8.13.4) with ESMTP id k02AtLnX000891
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 2 Jan 2006 18:55:21 +0800 (CST)
	(envelope-from rafan@svm.csie.ntu.edu.tw)
Received: (from rafan@localhost)
	by svm.csie.ntu.edu.tw (8.13.4/8.13.4/Submit) id k02AtLAO000890;
	Mon, 2 Jan 2006 18:55:21 +0800 (CST)
	(envelope-from rafan)
Message-Id: <200601021055.k02AtLAO000890@svm.csie.ntu.edu.tw>
Date: Mon, 2 Jan 2006 18:55:21 +0800 (CST)
From: Rong-En Fan <rafan@infor.org>
Reply-To: Rong-En Fan <rafan@infor.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: www/p5-CGI-SpeedyCGI: does not build apache module 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         91212
>Category:       ports
>Synopsis:       www/p5-CGI-SpeedyCGI: does not build apache module
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    lth
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 02 11:00:24 GMT 2006
>Closed-Date:    Tue May 02 08:53:59 GMT 2006
>Last-Modified:  Tue May 02 08:53:59 GMT 2006
>Originator:     Rong-En Fan
>Release:        
>Organization:
NTU CSIE 
>Environment:
FreeBSD 6.0
>Description:
I found that www/p5-CGI-SpeedyCGI does not build/install
mod_speedycgi.so even if I have www/apache13 installed.

The reason is that, this port use ${APXS} to check the
existence of apxs utility, and ${APXS} is defined only
after USE_APACHE is used.
>How-To-Repeat:
install apache first, then
cd /usr/ports/www/p5-CGI-SpeedyCGI
make install
pkg_info -L -x p5-CGI-SpeedyCGI | grep mod_speedycgi
>Fix:
I am not familar with Apache ports and thus have no ideas
how to fix this correctly. Putting APXS=/usr/local/sbin/apxs
in Makefile is an workaround.




>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->lth 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Jan 2 11:02:04 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

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

From: Rong-En Fan <rafan@infor.org>
To: FreeBSD-gnats-submit@FreeBSD.org
Cc: Lars Thegler <lth@FreeBSD.org>
Subject: Re: ports/91212: www/p5-CGI-SpeedyCGI: does not build apache module
Date: Wed, 26 Apr 2006 01:57:04 +0800

 Finally, I have a fix and convert to use OPTIONS. Default is to
 build apache module since you have to specify WITHOUT_APACHE
 before to disable it. bsd.apache.mk is really easy to use.
 But the Apache section in Porter's Handbook is out-of-date.
 Hope someone will update that :-)
 
 Tested with apache13 and apache20 installed.
 
 ===> Generating patch
 ===> Viewing diff with less
 diff -ruN --exclude=CVS /usr/ports/www/p5-CGI-SpeedyCGI/Makefile /home/rafan/tmp/ports/p5-CGI-SpeedyCGI/Makefile
 --- /usr/ports/www/p5-CGI-SpeedyCGI/Makefile	Thu Oct  6 22:09:56 2005
 +++ /home/rafan/tmp/ports/p5-CGI-SpeedyCGI/Makefile	Wed Apr 26 01:51:44 2006
 @@ -7,7 +7,7 @@
  
  PORTNAME=	CGI-SpeedyCGI
  PORTVERSION=	2.22
 -PORTREVISION=	2
 +PORTREVISION=	3
  CATEGORIES=	www perl5
  MASTER_SITES=	${MASTER_SITE_PERL_CPAN}
  MASTER_SITE_SUBDIR=	CGI
 @@ -18,24 +18,16 @@
  
  PERL_CONFIGURE=	yes
  
 -.include <bsd.port.pre.mk>
 +OPTIONS=	APACHE "Enable mod_speedycgi" On
  
 -# define WITHOUT_APACHE to prevent mod_speedycgi from being built even if Apache is installed
 +.include <bsd.port.pre.mk>
  
 -.if !exists(${APXS}) || defined(WITHOUT_APACHE)
 -PLIST_SUB+=	APACHE="@comment "
 -CONFIGURE_ENV+=	WITHOUT_APACHE=yes
 -.else
 +.if !defined(WITHOUT_APACHE)
 +USE_APACHE=	1.3+
  PLIST_SUB+=	APACHE=""
 -.if exists(${APXS})
 -APXS_WORKS!=	${APXS} -q TARGET 2>/dev/null || ${ECHO} no
 -.endif
 -.if exists(${APXS}) && ${APXS_WORKS} != no
 -AP_LIBEXEC!=	${APXS} -q LIBEXECDIR
  .else
 -AP_LIBEXEC?=	${PREFIX}/libexec/apache
 -.endif
 -PLIST_SUB+=	AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
 +PLIST_SUB+=	APACHE="@comment "
 +CONFIGURE_ENV+=	WITHOUT_APACHE=yes
  .endif
  
  post-patch:
 diff -ruN --exclude=CVS /usr/ports/www/p5-CGI-SpeedyCGI/pkg-plist /home/rafan/tmp/ports/p5-CGI-SpeedyCGI/pkg-plist
 --- /usr/ports/www/p5-CGI-SpeedyCGI/pkg-plist	Mon Jan 23 03:22:42 2006
 +++ /home/rafan/tmp/ports/p5-CGI-SpeedyCGI/pkg-plist	Wed Apr 26 00:26:06 2006
 @@ -1,4 +1,4 @@
 -%%APACHE%%%%AP_LIBEXEC%%/mod_speedycgi.so
 +%%APACHE%%%%APACHEMODDIR%%/mod_speedycgi.so
  %%SITE_PERL%%/%%PERL_ARCH%%/auto/CGI/SpeedyCGI/.packlist
  %%SITE_PERL%%/CGI/SpeedyCGI.pm
  bin/speedy
 ===> Done
State-Changed-From-To: open->closed 
State-Changed-By: lth 
State-Changed-When: Tue May 2 08:53:58 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

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