ports/90568: [New Port] www/pecl-pecl_http A PHP extension which provides extended HTTP request/response handling

Alexander Zhuravlev zaa at zaa.pp.ru
Sat Dec 17 16:20:06 UTC 2005


>Number:         90568
>Category:       ports
>Synopsis:       [New Port] www/pecl-pecl_http  A PHP extension which provides extended HTTP request/response handling
>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:   Sat Dec 17 16:20:03 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Alexander Zhuravlev
>Release:        FreeBSD 6.0-STABLE i386
>Organization:
>Environment:
System: FreeBSD wave.zaa.local 6.0-STABLE FreeBSD 6.0-STABLE #9: Thu Dec 15 21:26:52 MSK 2005 root at wave.zaa.local:/usr/obj/usr/src/sys/WAVE i386


	
>Description:
	
	New port is a PHP PECL extension which provides extended HTTP request/response handling

>How-To-Repeat:
	
>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)"

--- Mk::bsd.php.mk.diff begins here ---
--- 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
--- Mk::bsd.php.mk.diff ends here ---

--- www::pecl-pecl_http begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	pecl-pecl_http/
#	pecl-pecl_http/distinfo
#	pecl-pecl_http/Makefile
#	pecl-pecl_http/pkg-descr
#
echo c - pecl-pecl_http/
mkdir -p pecl-pecl_http/ > /dev/null 2>&1
echo x - pecl-pecl_http/distinfo
sed 's/^X//' >pecl-pecl_http/distinfo << 'END-of-pecl-pecl_http/distinfo'
XMD5 (PECL/pecl_http-0.20.0.tgz) = 8a0be57052a4b28cd254787468414221
XSHA256 (PECL/pecl_http-0.20.0.tgz) = d515d1a9fe6f999a398fa202bd0dd47480e99a5a6d33d61b1fae291c64514a00
XSIZE (PECL/pecl_http-0.20.0.tgz) = 143182
END-of-pecl-pecl_http/distinfo
echo x - pecl-pecl_http/Makefile
sed 's/^X//' >pecl-pecl_http/Makefile << 'END-of-pecl-pecl_http/Makefile'
X# Ports collection makefile for:  pecl-pecl_http
X# Date created:			  2005-12-19
X# Whom:				  Alexander Zhuravlev <zaa at zaa.pp.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	pecl_http
XPORTVERSION=	0.20.0
XCATEGORIES=	www
XMASTER_SITES=	http://pecl.php.net/get/
XPKGNAMEPREFIX=	pecl-
XEXTRACT_SUFX=	.tgz
XDIST_SUBDIR=	PECL
X
XMAINTAINER=	zaa at zaa.pp.ru
XCOMMENT=	A PHP extension which provides extended HTTP request/response handling
X
XUSE_PHP=	session zlib hash
XUSE_PHPIZE=	yes
XUSE_PHPEXT=	yes
XDEFAULT_PHP_VER=5
XPHP_MODNAME=	http
X
XCONFIGURE_ARGS=	--enable-http
X
XOPTIONS=	CURL			"Enable cURL HTTP requests"	on \
X		MAGIC_MIME		"Enable response content type guessing"	off \
X		ZLIB_COMPRESSION	"Enable support for encoded message bodies"	on
X
X.include <bsd.port.pre.mk>
X
X.if defined(WITH_CURL)
XLIB_DEPENDS+=	curl.3:${PORTSDIR}/ftp/curl
XCONFIGURE_ARGS+=--with-http-curl-requests=${LOCALBASE}
X.else
XCONFIGURE_ARGS+=--without-http-curl-requests
X.endif
X
X.if defined(WITH_MAGIC_MIME)
XLIB_DEPENDS+=	magic.1:${PORTSDIR}/sysutils/file
XCONFIGURE_ARGS+=--with-http-magic-mime=${LOCALBASE}
X.else
XCONFIGURE_ARGS+=--without-http-magic-mime
X.endif
X
X.if defined(WITH_ZLIB_COMPRESSION)
XCONFIGURE_ARGS+=--with-http-zlib-compression=/usr
X.else
XCONFIGURE_ARGS+=--without-http-zlib-compression
X.endif
X
X.include <bsd.port.post.mk>
END-of-pecl-pecl_http/Makefile
echo x - pecl-pecl_http/pkg-descr
sed 's/^X//' >pecl-pecl_http/pkg-descr << 'END-of-pecl-pecl_http/pkg-descr'
XThis HTTP extension aims to provide a convenient and powerful
Xset of functionality for one of PHPs major applications.
X
XIt eases handling of HTTP urls, dates, redirects, headers and
Xmessages, provides means for negotiation of clients preferred
Xlanguage and charset, as well as a convenient way to send any
Xarbitrary data with caching and resuming capabilities.
X
XIt provides powerful request functionality, if built with CURL
Xsupport. Parallel requests are available for PHP-5 and greater.
X
XPHP-5 classes:
XHttpUtil, HttpMessage, HttpRequest, HttpRequestPool;
XHttpResponse (PHP-5.1)
X
XWWW: http://pecl.php.net/package/pecl_http/
END-of-pecl-pecl_http/pkg-descr
exit
--- www::pecl-pecl_http ends here ---


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



More information about the freebsd-ports-bugs mailing list