ports/96826: [PATCH] PHP port need apache port with specific options

Dmitriy Kirhlarov dkirhlarov at oilspace.com
Fri May 5 14:10:17 UTC 2006


>Number:         96826
>Category:       ports
>Synopsis:       [PATCH] PHP port need apache port with specific options
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 05 14:10:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Dmitriy Kirhlarov
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD dimma.mow.oilspace.com 5.4-STABLE FreeBSD 5.4-STABLE #0: Sun Sep 25 23:26:13 MSD 2005 root at dimma.mow.oilspace.com:/usr/obj/usr/src/sys/dimma i386


	
>Description:
	PHP port use sbin/apxs from apache port. Whis file installed
	only if apache builded with WITH_MISC_MODULES options (not
	default)
>How-To-Repeat:
	try build PHP5 without installed apache
>Fix:
--- bsd.php.mk.orig	Sat Apr 22 10:16:46 2006
+++ bsd.php.mk	Sat Apr 22 12:50:37 2006
@@ -52,9 +52,16 @@
 APACHE_VERSION!=	${HTTPD} -V | ${SED} -ne 's/^Server version: Apache\/\([0-9]\)\.\([0-9]*\).*/\1\2/p'
 .	if ${APACHE_VERSION} > 13
 APXS?=		${LOCALBASE}/sbin/apxs
+.		if exists(${APXS})
 APACHE_MPM!=	${APXS} -q MPM_NAME
-.		if ${APACHE_MPM} == "worker"
+.			if ${APACHE_MPM} == "worker"
 PHP_EXT_DIR:=	${PHP_EXT_DIR}-zts
+.			endif
+.		else
+			@{ECHO_CMD} "Can't find ${LOCALASE}/sbin/apxs
+			@{ECHO_CMD} "${APACHE_PORT} must be compiled with WITH_MISC_MODULES=yes"
+			@{FALSE}
+
 .		endif
 .	endif
 .elif defined(APACHE_PORT)

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



More information about the freebsd-ports-bugs mailing list