summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorjoerg <joerg>2005-11-21 09:13:28 +0000
committerjoerg <joerg>2005-11-21 09:13:28 +0000
commite68c4daf0c860d49eb80b786ca810b13b7a18d29 (patch)
tree47d9b8fdf21e3fac638f5fa66899d526c8e4e3dc /lang
parent034ed8f460c7d71c7493bf89cfa9d5bd103b4d08 (diff)
downloadpkgsrc-e68c4daf0c860d49eb80b786ca810b13b7a18d29.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 'lang')
-rw-r--r--lang/php5/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/lang/php5/Makefile b/lang/php5/Makefile
index fe09646c051..7aebc91537c 100644
--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2005/10/08 21:04:36 jdolecek Exp $
+# $NetBSD: Makefile,v 1.19 2005/11/21 09:13:28 joerg Exp $
#
PKGNAME= php-${PHP_BASE_VERS}
@@ -12,10 +12,20 @@ USE_PKGINSTALL= YES
USE_TOOLS+= gmake
LIBTOOL_OVERRIDE= # empty
+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