diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-php/pecl-ssh2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-php/pecl-ssh2')
-rw-r--r-- | dev-php/pecl-ssh2/Manifest | 11 | ||||
-rw-r--r-- | dev-php/pecl-ssh2/files/0.13-parse_url-fix.patch | 49 | ||||
-rw-r--r-- | dev-php/pecl-ssh2/metadata.xml | 8 | ||||
-rw-r--r-- | dev-php/pecl-ssh2/pecl-ssh2-0.12-r3.ebuild | 20 | ||||
-rw-r--r-- | dev-php/pecl-ssh2/pecl-ssh2-0.13-r3.ebuild | 32 | ||||
-rw-r--r-- | dev-php/pecl-ssh2/pecl-ssh2-1.1.1.ebuild | 30 | ||||
-rw-r--r-- | dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild | 36 |
7 files changed, 186 insertions, 0 deletions
diff --git a/dev-php/pecl-ssh2/Manifest b/dev-php/pecl-ssh2/Manifest new file mode 100644 index 000000000000..4a821280c4db --- /dev/null +++ b/dev-php/pecl-ssh2/Manifest @@ -0,0 +1,11 @@ +AUX 0.13-parse_url-fix.patch 1777 SHA256 f23f1667b973230318bdb87b6fcdad47b703646eedf632014fe5354ad9e0ee1e SHA512 9628c0cd1d09d64be3824485ec54ad9bb477a18b9178a120b8fc17ca5e5f2055d23019495741d7e85841f9e0b5f7dc991fb14ead04cc60f95127099e3e5fb205 WHIRLPOOL a79f0fe1488e79616ed6b007909ea7104cbe990c7cfc6044c7d2b1e6f3439af2279b65c1e9931a6d73d254d98adc847c90157108b7af14b34cd81129c869b724 +DIST ssh2-0.12.tgz 26223 SHA256 600c82d2393acf3642f19914f06a7afea57ee05cb8c10e8a5510b32188b97f99 SHA512 e48f8051f9234841bb0fc10594dcd90badf2d880d75c4bd59f847e3d4276e9fdd3fe71c1c01c07fb9f552cec470f3dbac6ae1db4d33e5793d3988ea5bac1d5bd WHIRLPOOL ff8e983027281db4fdff6c85d4a98c8987277abe40c82b4306a86459661864e4ca534b48ee22186d01b8166a58980bf5cba374a35d4e477e4dbb41f8c845a601 +DIST ssh2-0.13.tgz 28984 SHA256 cb2cb8ab840b5b36bcd8a8df06ea4a970a61e4cb3980f3c0ac5c913522e6c1be SHA512 c031e22853bf5cf8ee59dc5b99d9e7e60af1507a22e7d0a9e2f54b8f1758a03a6cea91c539e0f667d48ec66185fdc8a28c47e5a1e10a72220c0cb16b3948e1d0 WHIRLPOOL 62c36541bd3d7c579fdd4e3c8114e26dbda7206839db75d77b84fe320a87c1b8033b618da31a8d9038d5fb5874fa05a333e3b391a9e33fc1f723138be8e3ac71 +DIST ssh2-1.1.1.tgz 27551 SHA256 30963a0a4d9f704d594d875665c1ea297730a6efe2af22dff12a78183907ac0c SHA512 92cc40627a6114a4b0e7b8437e5e0b219b49dfbed9668937e7d0d37492a101c9f25381b5a1533f91c0530fdebe66af7bcb68ff4231a7ecd806b99d8a04f74d79 WHIRLPOOL cfbbb940ace42eb41c2852a1fb9514b36f64820cd2e45cd14808614d9b7ca8d347d1c9d5042bb38e215b5c88d113e5cfc2bda531240e2550f9e14798069198ca +EBUILD pecl-ssh2-0.12-r3.ebuild 393 SHA256 bd06f7e690b8979e30fe59c2f72c9cc54b6fc59cee70e73a4d94b6405b9870e5 SHA512 1287a53a4b208257e17c1708c34c1f3144602e5b2d543ef7e7d9da584efe81a0da81b09ef93b968d6ca26f1cbd0afd0196162d5c0cf9243684c064905d9cdf66 WHIRLPOOL 15c0f4a784a1f763589f1f7953ea20ae94b2f06b73d2bbcd07635365718107c8483baa03e743cd9dad56ec2f258ef153747cb9dc169b0f384219f00c91bb5bb8 +EBUILD pecl-ssh2-0.13-r3.ebuild 709 SHA256 c29ce5beceb6bf74223a9cf9af388bf4d3aeb4d34c488ff5269aba5973e0f2a2 SHA512 11a8c8686f957ebd7d80ed34bf744786f1d53409284d2197776fa16bebc64c4c7a3b9817717be8b49e64c9b79da8535ca050fb6ce82f72190334601523d632ad WHIRLPOOL 200c99bf209de0d42170f31299e6417b4d2e8cca0f639f7aa69874a085e86c643810572cad607bc8ad37c19a69983b6ce423c35485f89e70c997f86a2064553f +EBUILD pecl-ssh2-1.1.1.ebuild 655 SHA256 dd4bb0c794ba4fe7796c2618df7d511374772d5f3f141cf0822b06c7cdafd7b5 SHA512 07a03f7b892d391325989782a79e636b8b5f7c7614c1cee2a4835669cd02ef2417413540858aa2235ff20b42f8f417212b942c5a7495bad0179cb7f3ed4f6cf9 WHIRLPOOL 72919b9cedff95400dd66338afc3eb5a257cc9a1f4be99d02e14ece06f6c1dfbceb9e12c6fadaa0757329f9e8a6543120f804d13af059172c606c5691da77781 +EBUILD pecl-ssh2-9999.ebuild 771 SHA256 dce6f453f12379e37055bb2e75085c08979706dc57d8e8ea982d729079c02327 SHA512 30198a7e5a19b9532d16980cde4e3cda856a76936a79a06719ee5dc8ad6498c1a1cad7c52a67d9d90d66a91599cdbd791febb5ab348f1a685a9b37485a341c89 WHIRLPOOL 602a94ec89f56ccd9d2d70518e82eb3a2fdd45c99e78998a5bc9f9ffed31ebfc1aa4ec70bb7854c0df80d2ec538a93b2776145c77e4209c4f38e7338817435d7 +MISC ChangeLog 4357 SHA256 d8c9a3da5d7b925284246aa801549ea4f11afe767302b28e0328ac378ab017ff SHA512 d743d85d4cb8ab383cf8af36efd922e948bb9788945391e8de0999f99ce348426fc49734658e0070e44cd8949d3ee196504dba76a8fef3f436de0d1162309ac1 WHIRLPOOL 56d2b920ab122eb0b21b37466cb0b427449da7f515303d32baff0147c10a29eaab7fcadf9ce6ce2ce39e35fb140050be201fb44aaf6f0f7833196a6a0b0b7747 +MISC ChangeLog-2015 3773 SHA256 fe7c9d46629a3801dad080755e4d6bdd917037647b3f3ff3a5bdd4df876ba243 SHA512 f31968f6a49e8f4c01abd82643a5da03972e73ac2ab4ea0da4150868deec8a9baa0a8a24eb45a57ca54ca9053a66a09db1b49d1e3098615d4bdf9b02ed13fc7f WHIRLPOOL ae05dc9c1c7b6590472a7c1de2fb1c3fdb192ea9dcfdc8a2f81fd01c1a7cedba56b03e871279eb49a81cd40cb4be14eef75978b64ae08f1d9b24794716823fbb +MISC metadata.xml 235 SHA256 b248157b2feece4fbe51f91e87ab0c0249a13655e50e070080763a2a6556606f SHA512 0b3e95bbf68eddf74289dad50f8828cffce2d904ff6f9bd5468177de979677cac11da84d1e0302c52b72085915b9d1b3496107172e5726520d51dad1981daf64 WHIRLPOOL d9032f2fa2b465d0658cb19728a50849c3ca8e021574651e7aa69a9f949f186bb43812034fffda1273cfa8fbbec663ee5f08fd30db366b96ab6945b7ed4291e0 diff --git a/dev-php/pecl-ssh2/files/0.13-parse_url-fix.patch b/dev-php/pecl-ssh2/files/0.13-parse_url-fix.patch new file mode 100644 index 000000000000..c9c052fd32db --- /dev/null +++ b/dev-php/pecl-ssh2/files/0.13-parse_url-fix.patch @@ -0,0 +1,49 @@ +From 093906ec1c065e86ad1cd4dabbc89b1ccae11938 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@php.net> +Date: Thu, 10 Nov 2016 09:16:02 +0100 +Subject: [PATCH] fix for PHP 7.0.13 where php_url_parse fails + +--- + ssh2_fopen_wrappers.c | 17 ++++++++++++----- + 1 file changed, 12 insertions(+), 5 deletions(-) + +diff --git a/ssh2_fopen_wrappers.c b/ssh2_fopen_wrappers.c +index 8472ddd..89b34eb 100644 +--- a/ssh2_fopen_wrappers.c ++++ b/ssh2_fopen_wrappers.c +@@ -198,10 +198,20 @@ php_url *php_ssh2_fopen_wraper_parse_path( char *path, char *type, php_stream_co + php_url *resource; + zval *methods = NULL, *callbacks = NULL, zsession, **tmpzval; + long resource_id; +- char *s, *username = NULL, *password = NULL, *pubkey_file = NULL, *privkey_file = NULL; ++ char *h, *s, *username = NULL, *password = NULL, *pubkey_file = NULL, *privkey_file = NULL; + int username_len = 0, password_len = 0; + +- resource = php_url_parse(path); ++ h = strstr(path, "Resource id #"); ++ if (h) { ++ /* Starting with 5.6.28, 7.0.13 need to be clean, else php_url_parse will fail */ ++ char *tmp = estrdup(path); ++ ++ strncpy(tmp + (h-path), h + sizeof("Resource id #")-1, strlen(tmp)-sizeof("Resource id #")); ++ resource = php_url_parse(tmp); ++ efree(tmp); ++ } else { ++ resource = php_url_parse(path); ++ } + if (!resource || !resource->path) { + return NULL; + } +@@ -232,9 +242,6 @@ php_url *php_ssh2_fopen_wraper_parse_path( char *path, char *type, php_stream_co + + /* Look for a resource ID to reuse a session */ + s = resource->host; +- if (strncmp(resource->host, "Resource id #", sizeof("Resource id #") - 1) == 0) { +- s = resource->host + sizeof("Resource id #") - 1; +- } + if (is_numeric_string(s, strlen(s), &resource_id, NULL, 0) == IS_LONG) { + php_ssh2_sftp_data *sftp_data; + +-- +2.1.4 + diff --git a/dev-php/pecl-ssh2/metadata.xml b/dev-php/pecl-ssh2/metadata.xml new file mode 100644 index 000000000000..aca42932b833 --- /dev/null +++ b/dev-php/pecl-ssh2/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>php-bugs@gentoo.org</email> + <name>PHP</name> +</maintainer> +</pkgmetadata> diff --git a/dev-php/pecl-ssh2/pecl-ssh2-0.12-r3.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-0.12-r3.ebuild new file mode 100644 index 000000000000..0165e12936ee --- /dev/null +++ b/dev-php/pecl-ssh2/pecl-ssh2-0.12-r3.ebuild @@ -0,0 +1,20 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +PHP_EXT_NAME="ssh2" +PHP_EXT_INI="yes" +PHP_EXT_ZENDEXT="no" + +USE_PHP="php5-4 php5-5 php5-6" + +inherit php-ext-pecl-r2 + +DESCRIPTION="PHP bindings for the libssh2 library" +LICENSE="PHP-3.01" +SLOT="0" +IUSE="" +KEYWORDS="amd64 x86" +DEPEND=">=net-libs/libssh2-1.2" +RDEPEND="${DEPEND}" diff --git a/dev-php/pecl-ssh2/pecl-ssh2-0.13-r3.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-0.13-r3.ebuild new file mode 100644 index 000000000000..1d3d6dcf1f0d --- /dev/null +++ b/dev-php/pecl-ssh2/pecl-ssh2-0.13-r3.ebuild @@ -0,0 +1,32 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PHP_EXT_NAME="ssh2" + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php5-6" + +DESCRIPTION="PHP bindings for the libssh2 library" +LICENSE="PHP-3.01" +SLOT="0" +IUSE="" +KEYWORDS="~amd64 ~x86" +# Upstream notes say there are errors with gcrypt backend +DEPEND="net-libs/libssh2[-gcrypt]" +RDEPEND="${DEPEND}" +PDEPEND="php_targets_php7-0? ( dev-php/pecl-ssh2:7 ) + php_targets_php7-1? ( dev-php/pecl-ssh2:7 )" + +src_prepare(){ + if use php_targets_php5-6 ; then + local PATCHES=( "${FILESDIR}/0.13-parse_url-fix.patch" ) + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} diff --git a/dev-php/pecl-ssh2/pecl-ssh2-1.1.1.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-1.1.1.ebuild new file mode 100644 index 000000000000..53f184049f81 --- /dev/null +++ b/dev-php/pecl-ssh2/pecl-ssh2-1.1.1.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PHP_EXT_NAME="ssh2" + +USE_PHP="php5-6 php7-0 php7-1" + +inherit php-ext-pecl-r3 + +USE_PHP="php7-0 php7-1" + +DESCRIPTION="PHP bindings for the libssh2 library" +LICENSE="PHP-3.01" +SLOT="7" +IUSE="" +KEYWORDS="~amd64 ~x86" +# Upstream notes say there are errors with gcrypt backend +DEPEND=">=net-libs/libssh2-1.2[-gcrypt]" +RDEPEND="${DEPEND} + php_targets_php5-6? ( dev-php/pecl-ssh2:0[php_targets_php5-6] )" + +src_prepare() { + if use php_targets_php7-0 || use php_targets_php7-1; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} diff --git a/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild b/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild new file mode 100644 index 000000000000..ee9effc3e76a --- /dev/null +++ b/dev-php/pecl-ssh2/pecl-ssh2-9999.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PHP_EXT_NAME="ssh2" + +USE_PHP="php5-6 php7-0 php7-1" +EGIT_REPO_URI="https://git.php.net/repository/pecl/networking/ssh2.git" + +inherit php-ext-source-r3 git-r3 + +USE_PHP="php7-0 php7-1" + +DESCRIPTION="PHP bindings for the libssh2 library" +LICENSE="PHP-3.01" +SLOT="7" +IUSE="" +KEYWORDS="" +DEPEND=">=net-libs/libssh2-1.2" +RDEPEND="${DEPEND} + php_targets_php5-6? ( dev-php/pecl-ssh2:0[php_targets_php5-6] )" +HOMEPAGE="https://pecl.php.net/package/ssh2" + +src_unpack() { + git-r3_src_unpack + php-ext-source-r3_src_unpack +} + +src_prepare() { + if use php_targets_php7-0 || use php_targets_php7-1 ; then + php-ext-source-r3_src_prepare + else + default_src_prepare + fi +} |