summaryrefslogtreecommitdiff
path: root/www/php4
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2005-11-21 09:13:28 +0000
committerjoerg <joerg@pkgsrc.org>2005-11-21 09:13:28 +0000
commit02185a84243ffdd0c0c5dc54d9ef542baf798aa6 (patch)
tree47d9b8fdf21e3fac638f5fa66899d526c8e4e3dc /www/php4
parent10c9716bc973fc680969d5a9829bb88bf3bf3e22 (diff)
downloadpkgsrc-02185a84243ffdd0c0c5dc54d9ef542baf798aa6.tar.gz
Allow choosing of CGI or FastCGI as SAPI for the PHP interpreter.
This is done via an option group, default is CGI. Note that the FastCGI interpreter can still be used for normal CGI, but there might be security issues involved in doing so.
Diffstat (limited to 'www/php4')
-rw-r--r--www/php4/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/www/php4/Makefile b/www/php4/Makefile
index e572b4bf1e9..9eb54a0a6b6 100644
--- a/www/php4/Makefile
+++ b/www/php4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.57 2005/11/08 20:33:55 bouyer Exp $
+# $NetBSD: Makefile,v 1.58 2005/11/21 09:13:28 joerg Exp $
PKGNAME= php-${PHP_BASE_VERS}
PKGREVISION= 2
@@ -13,10 +13,20 @@ USE_PKGINSTALL= YES
LIBTOOL_OVERRIDE= # empty
USE_TOOLS+= gmake
+PKG_OPTIONS_REQUIRED_GROUPS+= sapi
+PKG_OPTIONS_GROUP.sapi= cgi fastcgi
+PKG_SUGGESTED_OPTIONS+= cgi
+
.include "Makefile.php"
+.if !empty(PKG_OPTIONS:Mcgi)
CONFIGURE_ARGS+= --enable-discard-path
CONFIGURE_ARGS+= --enable-force-cgi-redirect
+.endif
+
+.if !empty(PKG_OPTIONS:Mfastcgi)
+CONFIGURE_ARGS+= --enable-fastcgi
+.endif
CGIDIR= ${PREFIX}/libexec/cgi-bin
EGDIR= ${PREFIX}/share/examples/php