pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/www/php-http4



Module Name:    pkgsrc
Committed By:   taca
Date:           Mon Dec 13 15:13:17 UTC 2021

Added Files:
        pkgsrc/www/php-http4: DESCR Makefile distinfo
        pkgsrc/www/php-http4/patches: patch-autoconf_pecl_libcurl.m4

Log Message:
www/php-http4: add package version 4.2.1

This is pecl http module for PHP 8.0 and 8.1.

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.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/www/php-http4/DESCR \
    pkgsrc/www/php-http4/Makefile pkgsrc/www/php-http4/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/www/php-http4/DESCR
diff -u /dev/null pkgsrc/www/php-http4/DESCR:1.1
--- /dev/null   Mon Dec 13 15:13:17 2021
+++ pkgsrc/www/php-http4/DESCR  Mon Dec 13 15:13:17 2021
@@ -0,0 +1,9 @@
+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.
+
+This package supports PHP 8.x.
Index: pkgsrc/www/php-http4/Makefile
diff -u /dev/null pkgsrc/www/php-http4/Makefile:1.1
--- /dev/null   Mon Dec 13 15:13:17 2021
+++ pkgsrc/www/php-http4/Makefile       Mon Dec 13 15:13:17 2021
@@ -0,0 +1,40 @@
+# $NetBSD: Makefile,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+MODNAME=               http
+PECL_VERSION=          4.2.1
+CATEGORIES+=           www
+
+PECL_DISTNAME=         pecl_http-${PECL_VERSION}
+
+MAINTAINER=            pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=              http://pecl.php.net/package/pecl_http
+COMMENT=               PHP extension for extended HTTP support
+LICENSE=               2-clause-bsd AND isc
+
+CONFLICTS=             php-http-[0-9]*
+
+#PHP_VERSIONS_ACCEPTED=        80 81
+
+USE_LANGUAGES=         c c++
+USE_TOOLS+=            bash
+
+CONFIG_SHELL=          bash
+CONFIGURE_ARGS+=       --with-http
+CONFIGURE_ARGS+=       --with-http-libcurl-dir=${BUILDLINK_PREFIX.curl}
+CONFIGURE_ARGS+=       --with-http-libevent-dir=${BUILDLINK_PREFIX.libevent}
+CONFIGURE_ARGS+=       --with-http-libidn-dir=${BUILDLINK_PREFIX.libidn}
+CONFIGURE_ARGS+=       --with-http-libicu-dir=${BUILDLINK_PREFIX.icu}
+CONFIGURE_ARGS+=       --with-http-zlib-dir=${BUILDLINK_PREFIX.zlib}
+
+BUILDLINK_API_DEPENDS.libevent=        libevent>=2
+
+.include "../../devel/libevent/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../devel/php-raphf2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../sysutils/file/buildlink3.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../converters/php-iconv/buildlink3.mk"
+.include "../../lang/php/ext.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/www/php-http4/distinfo
diff -u /dev/null pkgsrc/www/php-http4/distinfo:1.1
--- /dev/null   Mon Dec 13 15:13:17 2021
+++ pkgsrc/www/php-http4/distinfo       Mon Dec 13 15:13:17 2021
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+BLAKE2s (php-http/pecl_http-4.2.1.tgz) = 83147b5a97591048df0e70c332e2409926f24225ea89891fb740e07cf773a99f
+SHA512 (php-http/pecl_http-4.2.1.tgz) = 2ad7e57fae313a7b46ba88e528e124ac9d83804827131a6ef478ccf3cf5883dec2d928b8ceb377ee7f5947c76f24d640d77533a9946612419e526786a79877e6
+Size (php-http/pecl_http-4.2.1.tgz) = 224452 bytes
+SHA1 (patch-autoconf_pecl_libcurl.m4) = 48263c311aeccc4fd2a5b366b56e85041d659b91

Index: pkgsrc/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4
diff -u /dev/null pkgsrc/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4:1.1
--- /dev/null   Mon Dec 13 15:13:17 2021
+++ pkgsrc/www/php-http4/patches/patch-autoconf_pecl_libcurl.m4 Mon Dec 13 15:13:17 2021
@@ -0,0 +1,15 @@
+$NetBSD: patch-autoconf_pecl_libcurl.m4,v 1.1 2021/12/13 15:13:17 taca Exp $
+
+Fix portability.
+
+--- autoconf/pecl/libcurl.m4.orig      2021-09-13 10:46:53.000000000 +0000
++++ autoconf/pecl/libcurl.m4
+@@ -181,7 +181,7 @@ AC_DEFUN([PECL_HAVE_LIBCURL_SSL], [dnl
+                       fi
+               ])
+ 
+-              if test "$PECL_VAR([LIBCURL_SSLLIB])" == "OpenSSL"; then
++              if test "$PECL_VAR([LIBCURL_SSLLIB])" = "OpenSSL"; then
+                       PECL_HAVE_CONST([curl/curl.h], [CURLOPT_TLS13_CIPHERS], int, [
+                               AC_CACHE_CHECK([whether curl_easy_setopt accepts CURLOPT_TLS13_CIPHERS], PECL_CACHE_VAR([LIBCURL_TLS13_CIPHERS]), [
+                                       PECL_CACHE_VAR([LIBCURL_TLS13_CIPHERS])=



Home | Main Index | Thread Index | Old Index