From zaa@ulstu.ru  Sun Jun 11 13:27:10 2006
Return-Path: <zaa@ulstu.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 99B7316A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Jun 2006 13:27:10 +0000 (UTC)
	(envelope-from zaa@ulstu.ru)
Received: from kernel.ulstu.ru (kernel.ulstu.ru [62.76.34.36])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A3B5543D46
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Jun 2006 13:27:04 +0000 (GMT)
	(envelope-from zaa@ulstu.ru)
Received: from localhost (localhost [127.0.0.1])
	by kernel.ulstu.ru (ulstuMail) with ESMTP id 137DD4AC63;
	Sun, 11 Jun 2006 17:27:01 +0400 (MSD)
Received: from kernel.ulstu.ru ([127.0.0.1])
	by localhost (kernel.ulstu.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vH75VXPeb5Ir; Sun, 11 Jun 2006 17:26:55 +0400 (MSD)
Received: from orion.ulstu.ru (orion.ulstu.ru [62.76.34.33])
	by kernel.ulstu.ru (ulstuMail) with ESMTP id 0E4C34AC61
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 11 Jun 2006 17:26:55 +0400 (MSD)
Received: by orion.ulstu.ru (Postfix, from userid 3909)
	id 0D87F1A2E; Sun, 11 Jun 2006 17:26:54 +0400 (MSD)
Message-Id: <20060611132654.0D87F1A2E@orion.ulstu.ru>
Date: Sun, 11 Jun 2006 17:26:54 +0400 (MSD)
From: Alexander Zhuravlev <zaa@zaa.pp.ru>
Reply-To: Alexander Zhuravlev <zaa@zaa.pp.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [maintainer update] www/pecl-pecl_http to 1.0.0
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         98810
>Category:       ports
>Synopsis:       [maintainer update] www/pecl-pecl_http to 1.0.0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 11 13:30:17 GMT 2006
>Closed-Date:    Sun Jun 11 15:07:47 GMT 2006
>Last-Modified:  Sun Jun 11 15:07:47 GMT 2006
>Originator:     Alexander Zhuravlev
>Release:        FreeBSD 4.11-STABLE i386
>Organization:
>Environment:
System: FreeBSD orion.ulstu.ru 4.11-STABLE FreeBSD 4.11-STABLE #26: Mon Dec 26 23:56:33 MSK 2005 root@orion.ulstu.ru:/usr/obj/usr/src/sys/ORION i386


	
>Description:
	
>How-To-Repeat:
	
>Fix:

	

--- pecl-pecl_http.patch begins here ---
diff -urbBN pecl-pecl_http.orig/Makefile pecl-pecl_http/Makefile
--- pecl-pecl_http.orig/Makefile	Wed May 31 10:02:00 2006
+++ pecl-pecl_http/Makefile	Sun Jun 11 11:48:01 2006
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	pecl_http
-DISTVERSION=	1.0.0RC4
+DISTVERSION=	1.0.0
 CATEGORIES=	www pear
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
@@ -26,7 +26,7 @@
 CONFIGURE_ARGS=	--enable-http
 
 OPTIONS=	CURL			"Enable cURL HTTP requests"	on \
-		MAGIC_MIME		"Enable response content type guessing"	off \
+		MAGIC_MIME		"Enable response content type guessing"	on \
 		ZLIB_COMPRESSION	"Enable support for encoded message bodies"	off
 
 .include <bsd.port.pre.mk>
@@ -39,8 +39,13 @@
 .endif
 
 .if defined(WITH_MAGIC_MIME)
+.	if ${OSVERSION} < 502128
 LIB_DEPENDS+=	magic.1:${PORTSDIR}/sysutils/file
-CONFIGURE_ARGS+=--with-http-magic-mime=${LOCALBASE}
+MAGICBASE=	${LOCALBASE}
+.	else
+MAGICBASE=	/usr
+.	endif
+CONFIGURE_ARGS+=--with-http-magic-mime=${MAGICBASE}
 .else
 CONFIGURE_ARGS+=--without-http-magic-mime
 .endif
diff -urbBN pecl-pecl_http.orig/distinfo pecl-pecl_http/distinfo
--- pecl-pecl_http.orig/distinfo	Wed May 31 10:02:00 2006
+++ pecl-pecl_http/distinfo	Sun Jun 11 11:48:01 2006
@@ -1,3 +1,3 @@
-MD5 (PECL/pecl_http-1.0.0RC4.tgz) = a0e7d18bf9250b8bb5326cbe513d0be5
-SHA256 (PECL/pecl_http-1.0.0RC4.tgz) = f074e97517f97bf12fafab96b8bb92b1f88e32d29306d91b3591a24b78ed0404
-SIZE (PECL/pecl_http-1.0.0RC4.tgz) = 181374
+MD5 (PECL/pecl_http-1.0.0.tgz) = f21c770c8608329256f9c712a9e21319
+SHA256 (PECL/pecl_http-1.0.0.tgz) = e0717ce977164cf37fd9e8d81616546be3f21a3103464208b1e1375fa8abbc93
+SIZE (PECL/pecl_http-1.0.0.tgz) = 185967
diff -urbBN pecl-pecl_http.orig/files/patch-php_http.h pecl-pecl_http/files/patch-php_http.h
--- pecl-pecl_http.orig/files/patch-php_http.h	Thu Jan  1 03:00:00 1970
+++ pecl-pecl_http/files/patch-php_http.h	Sun Jun 11 17:07:37 2006
@@ -0,0 +1,15 @@
+--- php_http.h.orig	Fri Jun  9 02:10:44 2006
++++ php_http.h	Sun Jun 11 17:06:51 2006
+@@ -144,7 +144,11 @@
+ #	define HTTP_G (&http_globals)
+ #endif
+ 
+-#define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT) || defined(HAVE_##EXT##_EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT)))
++#if defined(__GNUC__) && (__GNUC__ < 3)
++#	define HTTP_HAVE_EXT(EXT) 0
++#else
++#	define HTTP_HAVE_EXT(EXT) ((defined(HAVE_##EXT) || defined(HAVE_PHP_##EXT) || defined(HAVE_##EXT##_EXT)) && (HTTP_SHARED_DEPS || !defined(COMPILE_DL_##EXT)))
++#endif
+ 
+ PHP_FUNCTION(http_test);
+ PHP_FUNCTION(http_date);
--- pecl-pecl_http.patch ends here ---


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: vanilla 
State-Changed-When: Sun Jun 11 15:07:45 UTC 2006 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=98810 
>Unformatted:
