Add pecl-pecl_http 0.22.0, a PHP extension which provides extended HTTP
request/response handling. PR: ports/92827 Submitted by: Alexander Zhuravlev <zaa@zaa.pp.ru>
This commit is contained in:
parent
cf3ef2f991
commit
ec123a3468
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=155339
4 changed files with 79 additions and 0 deletions
|
@ -730,6 +730,7 @@
|
|||
SUBDIR += pear-HTTP_Upload
|
||||
SUBDIR += pear-Text_Wiki
|
||||
SUBDIR += pecl-APC
|
||||
SUBDIR += pecl-pecl_http
|
||||
SUBDIR += perlbal
|
||||
SUBDIR += pglogd
|
||||
SUBDIR += photo_gallery
|
||||
|
|
59
www/pecl-pecl_http/Makefile
Normal file
59
www/pecl-pecl_http/Makefile
Normal file
|
@ -0,0 +1,59 @@
|
|||
# Ports collection makefile for: pecl-pecl_http
|
||||
# Date created: 2005-12-19
|
||||
# Whom: Alexander Zhuravlev <zaa@zaa.pp.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= pecl_http
|
||||
PORTVERSION= 0.22.0
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= http://pecl.php.net/get/
|
||||
PKGNAMEPREFIX= pecl-
|
||||
EXTRACT_SUFX= .tgz
|
||||
DIST_SUBDIR= PECL
|
||||
|
||||
MAINTAINER= zaa@zaa.pp.ru
|
||||
COMMENT= A PHP extension which provides extended HTTP request/response handling
|
||||
|
||||
USE_PHP= session zlib
|
||||
USE_PHPIZE= yes
|
||||
USE_PHPEXT= 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
|
||||
|
||||
.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}
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-http-curl-requests
|
||||
.endif
|
||||
|
||||
.if defined(WITH_MAGIC_MIME)
|
||||
LIB_DEPENDS+= magic.1:${PORTSDIR}/sysutils/file
|
||||
CONFIGURE_ARGS+=--with-http-magic-mime=${LOCALBASE}
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-http-magic-mime
|
||||
.endif
|
||||
|
||||
.if defined(WITH_ZLIB_COMPRESSION)
|
||||
CONFIGURE_ARGS+=--with-http-zlib-compression=/usr
|
||||
.else
|
||||
CONFIGURE_ARGS+=--without-http-zlib-compression
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
3
www/pecl-pecl_http/distinfo
Normal file
3
www/pecl-pecl_http/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
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
|
16
www/pecl-pecl_http/pkg-descr
Normal file
16
www/pecl-pecl_http/pkg-descr
Normal file
|
@ -0,0 +1,16 @@
|
|||
This HTTP extension aims to provide a convenient and powerful
|
||||
set of functionality for one of PHPs major applications.
|
||||
|
||||
It eases handling of HTTP urls, dates, redirects, headers and
|
||||
messages, provides means for negotiation of clients preferred
|
||||
language and charset, as well as a convenient way to send any
|
||||
arbitrary data with caching and resuming capabilities.
|
||||
|
||||
It provides powerful request functionality, if built with CURL
|
||||
support. Parallel requests are available for PHP-5 and greater.
|
||||
|
||||
PHP-5 classes:
|
||||
HttpUtil, HttpMessage, HttpRequest, HttpRequestPool;
|
||||
HttpResponse (PHP-5.1)
|
||||
|
||||
WWW: http://pecl.php.net/package/pecl_http/
|
Loading…
Reference in a new issue