Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Jun 2003 17:32:14 +0200 (CEST)
From:      Alex Dupre <sysadmin@alexdupre.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        nork@FreeBSD.org
Subject:   ports/53687: [Maintainer Update] Port: lang/php4
Message-ID:  <200306241532.h5OFWEil001699@vaio.alexdupre.com>
Resent-Message-ID: <200306241540.h5OFeEfd093132@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         53687
>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:   Tue Jun 24 08:40:14 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Alex Dupre
>Release:        FreeBSD 4.8-ALEXDUPRE i386
>Organization:
>Environment:
System: FreeBSD 4.8-ALEXDUPRE i386
>Description:
Improve SNMP support (fix openssl dependency and add net-snmp5 support).
>How-To-Repeat:
>Fix:

--- php4.diff begins here ---
diff -ruN php4.orig/Makefile php4/Makefile
--- php4.orig/Makefile	Tue Jun 24 16:32:41 2003
+++ php4/Makefile	Tue Jun 24 17:12:17 2003
@@ -202,10 +202,14 @@
 WITH_ICONV_DEP=	yes
 .endif
 
-.if defined(WITH_SNMP) || defined(WITH_POSTGRESQL)
+.if defined(WITH_POSTGRESQL)
 WITH_OPENSSL_DEP=	yes
 .endif
 
+.if defined(WITH_SNMP)
+WITH_OPENSSL=	yes
+.endif
+
 .if defined(WITH_WDDX) || defined(WITH_XMLRPC) || defined(WITH_XSLT)
 WITH_XML_DEP=	yes
 .endif
@@ -484,7 +488,11 @@
 .endif
 
 .if defined(WITH_SNMP)
+.if exists(${LOCALBASE}/lib/libsnmp.so.4)
 LIB_DEPENDS+=	snmp.4:${PORTSDIR}/net/net-snmp4
+.else
+LIB_DEPENDS+=	netsnmp.5:${PORTSDIR}/net/net-snmp
+.endif
 CONFIGURE_ARGS+=--with-snmp=${LOCALBASE} --enable-ucd-snmp-hack
 .endif
 
diff -ruN php4.orig/scripts/configure.php php4/scripts/configure.php
--- php4.orig/scripts/configure.php	Tue Jun 24 16:32:41 2003
+++ php4/scripts/configure.php	Tue Jun 24 17:04:55 2003
@@ -64,7 +64,7 @@
 RECODE		"recode support" ${WITH_RECODE:-OFF} \
 SESSION		"session support" ${WITH_SESSION:-OFF} \
 SHMOP		"shmop support" ${WITH_SHMOP:-OFF} \
-SNMP		"SNMP support" ${WITH_SNMP:-OFF} \
+SNMP		"SNMP support (implies OPENSSL)" ${WITH_SNMP:-OFF} \
 SOCKETS		"sockets support" ${WITH_SOCKETS:-OFF} \
 SYBASEDB	"Sybase/MS-SQL database support (DB-lib)" ${WITH_SYBASEDB:-OFF} \
 SYBASECT	"Sybase/MS-SQL database support (CT-lib)" ${WITH_SYBASECT:-OFF} \
--- php4.diff ends here ---

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200306241532.h5OFWEil001699>