ports/55315: Support working dependencies with PHP3_PORT and PHP4_PORT

dirk.meyer at dinoex.sub.org dirk.meyer at dinoex.sub.org
Wed Aug 6 17:30:28 UTC 2003


>Number:         55315
>Category:       ports
>Synopsis:       Support working dependencies with PHP3_PORT and PHP4_PORT
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 06 10:30:09 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dirk Meyer
>Release:        FreeBSD 5.1-CURRENT i386
>Organization:
privat
>Environment:

	mod_php*, phppgadmin

>Description:

	phppgadmin needs mod_php4, but with postgres suport,
	which is not default.

>How-To-Repeat:

	try to install and run both packages.
	maintainer emailes at 2003-05-12

>Fix:

	Allow use of slave-ports, make dependend port configurable
	e.G. make PHP4_PORT=www/mod_php4-psql

	apply this patch:

Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/databases/phppgadmin/Makefile,v
retrieving revision 1.10
diff -u -r1.10 Makefile
--- Makefile	7 Mar 2003 05:58:30 -0000	1.10
+++ Makefile	6 Aug 2003 17:16:45 -0000
@@ -17,16 +17,18 @@
 
 .if !defined(WITH_PHP3)
 .if defined(WITH_APACHE2)
-RUN_DEPENDS+=	${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
+RUN_DEPENDS+=	${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/${PHP4_PORT}
 .else
-RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
+RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/${PHP4_PORT}
 .endif
 .else
-RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/www/mod_php3
+RUN_DEPENDS+=	${LOCALBASE}/libexec/apache/libphp3.so:${PORTSDIR}/${PHP3_PORT}
 .endif
 POSTGRESQL_PORT?=	databases/postgresql7
 LIB_DEPENDS=	pq.3:${PORTSDIR}/${POSTGRESQL_PORT}
 
+PHP4_PORT?=	www/mod_php4
+PHP3_PORT?=	www/mod_php3
 WRKSRC=		${WRKDIR}/phpPgAdmin
 NO_BUILD=	YES
 

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



More information about the freebsd-ports-bugs mailing list