Bug 90568 - [New Port] www/pecl-pecl_http A PHP extension which provides extended HTTP request/response handling
Summary: [New Port] www/pecl-pecl_http A PHP extension which provides extended HTTP r...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Pav Lucistnik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-12-17 16:20 UTC by Alexander Zhuravlev
Modified: 2006-03-19 22:27 UTC (History)
1 user (show)

See Also:


Attachments
file.shar (2.97 KB, text/plain)
2005-12-17 16:20 UTC, Alexander Zhuravlev
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Zhuravlev 2005-12-17 16:20:03 UTC
	
	New port is a PHP PECL extension which provides extended HTTP request/response handling

Fix: Please apply the patches provided below.
	Please note that prior to applying the patches you need to
	take a look at the following PRs (in order):

	http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/90087
	"ports/90087 : New port: security/pecl-hash pHASH Message Digest Framework
	for PHP (PECL module)"


	http://www.freebsd.org/cgi/query-pr.cgi?pr=90565
	"ports/90565 : [PATCH] lang/php5-extension is missing inclusion
	of PDO extension (major feature added in PHP 5.1.0)"



--- www::pecl-pecl_http ends here -----3sgR1nveHFIxMebwP4oCjcftOI7zEF4PSj1MDGS9CRtowBHf
Content-Type: text/plain; name="Mk::bsd.php.mk.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="Mk::bsd.php.mk.diff"

--- Mk/bsd.php.mk.orig	Sat Dec 17 19:01:59 2005
+++ Mk/bsd.php.mk	Sat Dec 17 19:01:18 2005
@@ -261,7 +261,7 @@
 # version specific components
 _USE_PHP_VER4=	${_USE_PHP_ALL} crack dbx dio domxml mcal mcve \
 		mnogosearch oracle overload xslt yp
-_USE_PHP_VER5=	${_USE_PHP_ALL} dom pdo mysqli simplexml soap sqlite \
+_USE_PHP_VER5=	${_USE_PHP_ALL} dom hash pdo mysqli simplexml soap sqlite \
 		tidy xmlreader xsl
 
 bcmath_DEPENDS=	math/php${PHP_VER}-bcmath
@@ -284,6 +284,7 @@
 gd_DEPENDS=	graphics/php${PHP_VER}-gd
 gettext_DEPENDS=devel/php${PHP_VER}-gettext
 gmp_DEPENDS=	math/php${PHP_VER}-gmp
+hash_DEPENDS=	security/pecl-hash
 iconv_DEPENDS=	converters/php${PHP_VER}-iconv
 imagick_DEPENDS=graphics/pecl-imagick
 imap_DEPENDS=	mail/php${PHP_VER}-imap
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2005-12-21 05:37:49 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to ale@ to make changes in bsd.php.mk
Comment 2 Alexander Zhuravlev 2006-01-24 21:51:27 UTC
I am sorry to bother you.
But do you have any update regarding this issue?
By the way, the pecl-hash port has already been added into FreeBSD ports
collection.
-- 
Alexander Zhuravlev
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2006-03-18 14:16:05 UTC
State Changed
From-To: open->feedback

I have committed Mk/bsd.php.mk bits. 

Would you mind updating the port to 0.25.0 and sending me a new shar? 


Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2006-03-18 14:16:05 UTC
Responsible Changed
From-To: ale->pav

Track now
Comment 5 Alexander Zhuravlev 2006-03-19 22:11:10 UTC
On Sat, Mar 18, 2006 at 02:16:42PM +0000, Pav Lucistnik wrote:
> Synopsis: [New Port] www/pecl-pecl_http  A PHP extension which provides extended HTTP request/response handling
> 
> State-Changed-From-To: open->feedback
> State-Changed-By: pav
> State-Changed-When: Sat Mar 18 14:16:05 UTC 2006
> State-Changed-Why: 
> I have committed Mk/bsd.php.mk bits.
>
> Would you mind updating the port to 0.25.0 and sending me a new shar?

Below is a patch updating www/pecl-pecl_http port to 1.0.0RC1:

diff -urbBN pecl-pecl_http.orig/Makefile pecl-pecl_http/Makefile
--- pecl-pecl_http.orig/Makefile	Mon Feb  6 18:34:44 2006
+++ pecl-pecl_http/Makefile	Mon Mar 20 00:56:38 2006
@@ -6,8 +6,8 @@
 #
 
 PORTNAME=	pecl_http
-PORTVERSION=	0.22.0
-CATEGORIES=	www
+DISTVERSION=	1.0.0RC1
+CATEGORIES=	www pear
 MASTER_SITES=	http://pecl.php.net/get/
 PKGNAMEPREFIX=	pecl-
 EXTRACT_SUFX=	.tgz
@@ -16,26 +16,21 @@
 MAINTAINER=	zaa@zaa.pp.ru
 COMMENT=	A PHP extension which provides extended HTTP request/response handling
 
-USE_PHP=	session zlib
+USE_PHP=	session hash iconv
 USE_PHPIZE=	yes
 USE_PHPEXT=	yes
+USE_PHP_BUILD=	yes
 DEFAULT_PHP_VER=5
 PHP_MODNAME=	http
 
-RUN_DEPENDS+=	${LOCALBASE}/lib/php/${PHP_EXT_DIR}/hash.so:${PORTSDIR}/security/pecl-hash
-
 CONFIGURE_ARGS=	--enable-http
 
 OPTIONS=	CURL			"Enable cURL HTTP requests"	on \
 		MAGIC_MIME		"Enable response content type guessing"	off \
-		ZLIB_COMPRESSION	"Enable support for encoded message bodies"	on
+		ZLIB_COMPRESSION	"Enable support for encoded message bodies"	off
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 500000
-IGNORE=	does not build on FreeBSD <= 4.x
-.endif
-
 .if defined(WITH_CURL)
 LIB_DEPENDS+=	curl.3:${PORTSDIR}/ftp/curl
 CONFIGURE_ARGS+=--with-http-curl-requests=${LOCALBASE}
@@ -50,7 +45,7 @@
 CONFIGURE_ARGS+=--without-http-magic-mime
 .endif
 
-.if defined(WITH_ZLIB_COMPRESSION)
+.if defined(WITH_ZLIB_COMPRESSION) && ${OSVERSION} < 500000
 CONFIGURE_ARGS+=--with-http-zlib-compression=/usr
 .else
 CONFIGURE_ARGS+=--without-http-zlib-compression
diff -urbBN pecl-pecl_http.orig/distinfo pecl-pecl_http/distinfo
--- pecl-pecl_http.orig/distinfo	Mon Feb  6 18:34:44 2006
+++ pecl-pecl_http/distinfo	Mon Mar 20 00:31:13 2006
@@ -1,3 +1,2 @@
-MD5 (PECL/pecl_http-0.22.0.tgz) = 849d667960cafa06787baac03c873fbf
-SHA256 (PECL/pecl_http-0.22.0.tgz) = 7d6901c5858dde4c39740afb789ad13abdf4a79c69911ec6100d1cfdfb2d7bbd
-SIZE (PECL/pecl_http-0.22.0.tgz) = 163358
+MD5 (PECL/pecl_http-1.0.0RC1.tgz) = 3b820091c9867e53c32ec09f17ccb970
+SIZE (PECL/pecl_http-1.0.0RC1.tgz) = 177518



Please note that before applying the patch the
following PR needs to be handled first:
http://www.freebsd.org/cgi/query-pr.cgi?pr=94705


Thank you for your efforts.
-- 
Alexander Zhuravlev
Comment 6 Pav Lucistnik freebsd_committer freebsd_triage 2006-03-19 22:27:07 UTC
State Changed
From-To: feedback->closed

I see someone added the port already, so I updated it to that 1.0.0RC1 version.