From 8432a083a4360e82677e050d5b22e9d9edf0aa39 Mon Sep 17 00:00:00 2001 From: "Danilo G. Baio" Date: Wed, 17 May 2017 23:02:41 +0000 Subject: [PATCH] security/pecl-ssh2: Update to 1.0 - Create security/pecl-ssh2-0 - Add UPDATING note security/pecl-ssh2 (v1.0) --> PHP 7 only. security/pecl-ssh2-0 (v0.13) --> PHP 5 compatible. Changes: https://pecl.php.net/package-changelog.php?package=ssh2&release=1.0 PR: 215378 Reported by: Alexander Ushakov Approved by: garga (mentor) Differential Revision: https://reviews.freebsd.org/D10702 --- UPDATING | 8 ++++++++ security/pecl-ssh2-0/Makefile | 30 ++++++++++++++++++++++++++++++ security/pecl-ssh2-0/distinfo | 3 +++ security/pecl-ssh2-0/pkg-descr | 5 +++++ security/pecl-ssh2/Makefile | 4 ++-- security/pecl-ssh2/distinfo | 6 +++--- 6 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 security/pecl-ssh2-0/Makefile create mode 100644 security/pecl-ssh2-0/distinfo create mode 100644 security/pecl-ssh2-0/pkg-descr diff --git a/UPDATING b/UPDATING index c992d0e2b83f..afd72a50e0ef 100644 --- a/UPDATING +++ b/UPDATING @@ -5,6 +5,14 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20170517: + AFFECTS: users of security/pecl-ssh2 + AUTHOR: dbaio@FreeBSD.org + + The security/pecl-ssh2 has been upgraded to version 1.0, and the new + version is not compatible with PHP5. If you need PHP5 support, you can + find version 0.13 in security/pecl-ssh2-0. + 20170412: AFFECTS: users of sysutils/ansible AUTHOR: lifanov@FreeBSD.org diff --git a/security/pecl-ssh2-0/Makefile b/security/pecl-ssh2-0/Makefile new file mode 100644 index 000000000000..5ba412035fbf --- /dev/null +++ b/security/pecl-ssh2-0/Makefile @@ -0,0 +1,30 @@ +# Created by: Alexander Leidinger +# $FreeBSD$ + +PORTNAME= ssh2 +PORTVERSION= 0.13 +CATEGORIES= security pear +PKGNAMESUFFIX= -0 + +MAINTAINER= dbaio@FreeBSD.org +COMMENT= PECL extension to the libssh2 library + +LICENSE= PHP301 +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libssh2.so:security/libssh2 + +PORTSCOUT= limit:^0.* + +USES= php:pecl +IGNORE_WITH_PHP= 70 71 + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib ${EXTRA_LIBS} + +CONFIGURE_ARGS= --with-ssh2 + +post-patch: + @${REINPLACE_CMD} -e 's|\$$SSH2_DIR/lib|\$$SSH2_DIR/\$$PHP_LIBDIR|g' ${WRKSRC}/config.m4 + +.include diff --git a/security/pecl-ssh2-0/distinfo b/security/pecl-ssh2-0/distinfo new file mode 100644 index 000000000000..5f198bcce60e --- /dev/null +++ b/security/pecl-ssh2-0/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1491395894 +SHA256 (PECL/ssh2-0.13.tgz) = cb2cb8ab840b5b36bcd8a8df06ea4a970a61e4cb3980f3c0ac5c913522e6c1be +SIZE (PECL/ssh2-0.13.tgz) = 28984 diff --git a/security/pecl-ssh2-0/pkg-descr b/security/pecl-ssh2-0/pkg-descr new file mode 100644 index 000000000000..75782c5fa1a0 --- /dev/null +++ b/security/pecl-ssh2-0/pkg-descr @@ -0,0 +1,5 @@ +PHP bindings to the libssh2 library which provide access to resources +(shell, remote exec, tunneling, file transfer) on a remote machine using a +secure cryptographic transport. + +WWW: https://pecl.php.net/package/ssh2 diff --git a/security/pecl-ssh2/Makefile b/security/pecl-ssh2/Makefile index d478bea96fcb..f38e9877cc1a 100644 --- a/security/pecl-ssh2/Makefile +++ b/security/pecl-ssh2/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= ssh2 -PORTVERSION= 0.13 +PORTVERSION= 1.0 CATEGORIES= security pear MAINTAINER= dbaio@FreeBSD.org @@ -14,7 +14,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libssh2.so:security/libssh2 USES= php:pecl -IGNORE_WITH_PHP= 70 71 +IGNORE_WITH_PHP= 56 CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib ${EXTRA_LIBS} diff --git a/security/pecl-ssh2/distinfo b/security/pecl-ssh2/distinfo index 5f198bcce60e..6f32ed91c6f2 100644 --- a/security/pecl-ssh2/distinfo +++ b/security/pecl-ssh2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1491395894 -SHA256 (PECL/ssh2-0.13.tgz) = cb2cb8ab840b5b36bcd8a8df06ea4a970a61e4cb3980f3c0ac5c913522e6c1be -SIZE (PECL/ssh2-0.13.tgz) = 28984 +TIMESTAMP = 1494685667 +SHA256 (PECL/ssh2-1.0.tgz) = 6a93891878b23904a773eb814fec7aea4ea00b4a412ee779c8535ed9c5e46ced +SIZE (PECL/ssh2-1.0.tgz) = 29013