diff options
author | lth <lth@FreeBSD.org> | 2006-05-02 16:52:30 +0800 |
---|---|---|
committer | lth <lth@FreeBSD.org> | 2006-05-02 16:52:30 +0800 |
commit | 3db6ea167c60e901d8912206c05ae83b018e60cf (patch) | |
tree | 5c7a1c9083687588cf8ee8de94e05fcaa6ac296a /www/p5-CGI-SpeedyCGI | |
parent | d98e427f37f4320da6363f925fdf182d565d6cfa (diff) | |
download | freebsd-ports-gnome-3db6ea167c60e901d8912206c05ae83b018e60cf.tar.gz freebsd-ports-gnome-3db6ea167c60e901d8912206c05ae83b018e60cf.tar.zst freebsd-ports-gnome-3db6ea167c60e901d8912206c05ae83b018e60cf.zip |
Fix building of mod_speedycgi.
PR: ports/91212
Submitted by: Rong-En Fan <rafan@infor.org>
Diffstat (limited to 'www/p5-CGI-SpeedyCGI')
-rw-r--r-- | www/p5-CGI-SpeedyCGI/Makefile | 22 | ||||
-rw-r--r-- | www/p5-CGI-SpeedyCGI/pkg-plist | 2 |
2 files changed, 8 insertions, 16 deletions
diff --git a/www/p5-CGI-SpeedyCGI/Makefile b/www/p5-CGI-SpeedyCGI/Makefile index 5770f32f24d0..49bef5d83e18 100644 --- a/www/p5-CGI-SpeedyCGI/Makefile +++ b/www/p5-CGI-SpeedyCGI/Makefile @@ -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 @@ COMMENT= Speed up perl CGI scripts by running them persistently 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 --git a/www/p5-CGI-SpeedyCGI/pkg-plist b/www/p5-CGI-SpeedyCGI/pkg-plist index a494840e85db..0c3a00bc0815 100644 --- a/www/p5-CGI-SpeedyCGI/pkg-plist +++ b/www/p5-CGI-SpeedyCGI/pkg-plist @@ -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 |