ports/53800: [Maintainer Update] Port: lang/php4

Alex Dupre sysadmin at alexdupre.com
Thu Jun 26 22:20:13 UTC 2003


>Number:         53800
>Category:       ports
>Synopsis:       [Maintainer Update] Port: lang/php4
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jun 26 15:20:11 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex Dupre
>Release:        FreeBSD 4.8-ALEXDUPRE i386
>Organization:
>Environment:
System: FreeBSD 4.8-ALEXDUPRE i386
>Description:
Add WANT_PHP_WEB knob, for ports that require a web server to work, but for
which is indifferent the PHP sapi (CGI or Apache Module).
>How-To-Repeat:
>Fix:

--- php4.diff begins here ---
--- bsd.php.mk.orig	Thu Jun 26 23:52:18 2003
+++ bsd.php.mk	Fri Jun 27 00:07:01 2003
@@ -6,6 +6,7 @@
 # WANT_PHP_CLI=yes - Want the CLI version of PHP.
 # WANT_PHP_CGI=yes - Want the CGI version of PHP.
 # WANT_PHP_MOD=yes - Want the Apache Module for PHP.
+# WANT_PHP_WEB=yes - Want the Apache Module or the CGI version of PHP.
 #
 # You may combine multiple WANT_PHP_* knobs.
 # Don't specify any WANT_PHP_* knob if your port will work with every PHP SAPI.
@@ -45,6 +46,17 @@
 	@${FALSE}
 .else
 PHP_PORT?=	${PORTSDIR}/lang/php4-cli
+.endif
+.endif
+
+.if defined(WANT_PHP_WEB)
+.if defined(HAVE_PHP) && !defined(HAVE_PHP_CGI) && !defined(HAVE_PHP_MOD)
+.BEGIN:
+        @${ECHO_CMD} "This port requires the Apache Module or the CGI version of PHP, but you have"
+        @${ECHO_CMD} "already installed a conflicting PHP port without them."
+        @${FALSE}
+.else
+PHP_PORT?=	${PORTSDIR}/www/mod_php4
 .endif
 .endif
 
--- php4.diff ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list