summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--REFLECTION174
-rw-r--r--php-pecl-ssh2.spec19
2 files changed, 185 insertions, 8 deletions
diff --git a/REFLECTION b/REFLECTION
index 75b1fdd..e5b829c 100644
--- a/REFLECTION
+++ b/REFLECTION
@@ -1,4 +1,4 @@
-Extension [ <persistent> extension #132 ssh2 version 0.12 ] {
+Extension [ <persistent> extension #161 ssh2 version 0.13 ] {
- Constants [21] {
Constant [ integer SSH2_FINGERPRINT_MD5 ] { 0 }
@@ -26,34 +26,120 @@ Extension [ <persistent> extension #132 ssh2 version 0.12 ] {
- Functions {
Function [ <internal:ssh2> function ssh2_connect ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $host ]
+ Parameter #1 [ <required> $port ]
+ }
}
Function [ <internal:ssh2> function ssh2_methods_negotiated ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $resource ]
+ }
}
Function [ <internal:ssh2> function ssh2_fingerprint ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $resource ]
+ Parameter #1 [ <required> $flags ]
+ }
}
Function [ <internal:ssh2> function ssh2_auth_none ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $username ]
+ }
}
Function [ <internal:ssh2> function ssh2_auth_password ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $username ]
+ Parameter #2 [ <required> $password ]
+ }
}
Function [ <internal:ssh2> function ssh2_auth_pubkey_file ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $username ]
+ Parameter #2 [ <required> $pubkeyfile ]
+ Parameter #3 [ <required> $privkeyfile ]
+ Parameter #4 [ <optional> $passphrase ]
+ }
}
Function [ <internal:ssh2> function ssh2_auth_hostbased_file ] {
+
+ - Parameters [7] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $username ]
+ Parameter #2 [ <required> $hostname ]
+ Parameter #3 [ <required> $pubkeyfile ]
+ Parameter #4 [ <required> $privkeyfile ]
+ Parameter #5 [ <optional> $passphrase ]
+ Parameter #6 [ <optional> $local_username ]
+ }
}
Function [ <internal:ssh2> function ssh2_forward_listen ] {
}
Function [ <internal:ssh2> function ssh2_forward_accept ] {
}
Function [ <internal:ssh2> function ssh2_shell ] {
+
+ - Parameters [6] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <optional> $termtype ]
+ Parameter #2 [ <optional> $env ]
+ Parameter #3 [ <optional> $width ]
+ Parameter #4 [ <optional> $height ]
+ Parameter #5 [ <optional> $width_height_type ]
+ }
}
Function [ <internal:ssh2> function ssh2_exec ] {
+
+ - Parameters [7] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $command ]
+ Parameter #2 [ <optional> $pty ]
+ Parameter #3 [ <optional> $env ]
+ Parameter #4 [ <optional> $width ]
+ Parameter #5 [ <optional> $height ]
+ Parameter #6 [ <optional> $width_height_type ]
+ }
}
Function [ <internal:ssh2> function ssh2_tunnel ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $host ]
+ Parameter #2 [ <required> $port ]
+ }
}
Function [ <internal:ssh2> function ssh2_scp_recv ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $remote_file ]
+ Parameter #2 [ <required> $local_file ]
+ }
}
Function [ <internal:ssh2> function ssh2_scp_send ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $remote_file ]
+ Parameter #2 [ <required> $local_file ]
+ Parameter #3 [ <optional> $create_mode ]
+ }
}
Function [ <internal:ssh2> function ssh2_fetch_stream ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $channel ]
+ Parameter #1 [ <required> $stream_id ]
+ }
}
Function [ <internal:ssh2> function ssh2_poll ] {
@@ -62,36 +148,122 @@ Extension [ <persistent> extension #132 ssh2 version 0.12 ] {
}
}
Function [ <internal:ssh2> function ssh2_sftp ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $session ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_rename ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $from ]
+ Parameter #2 [ <required> $to ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_unlink ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $filename ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_mkdir ] {
+
+ - Parameters [4] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $dirname ]
+ Parameter #2 [ <optional> $mode ]
+ Parameter #3 [ <optional> $recursive ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_rmdir ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $dirname ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_chmod ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $filename ]
+ Parameter #2 [ <required> $mode ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_stat ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $path ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_lstat ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $path ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_symlink ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $target ]
+ Parameter #2 [ <required> $link ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_readlink ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $link ]
+ }
}
Function [ <internal:ssh2> function ssh2_sftp_realpath ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $sftp ]
+ Parameter #1 [ <required> $filename ]
+ }
}
Function [ <internal:ssh2> function ssh2_publickey_init ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $session ]
+ }
}
Function [ <internal:ssh2> function ssh2_publickey_add ] {
+
+ - Parameters [5] {
+ Parameter #0 [ <required> $pkey ]
+ Parameter #1 [ <required> $algoname ]
+ Parameter #2 [ <required> $blob ]
+ Parameter #3 [ <optional> $overwrite ]
+ Parameter #4 [ <optional> $attributes ]
+ }
}
Function [ <internal:ssh2> function ssh2_publickey_remove ] {
+
+ - Parameters [3] {
+ Parameter #0 [ <required> $pkey ]
+ Parameter #1 [ <required> $algoname ]
+ Parameter #2 [ <required> $blob ]
+ }
}
Function [ <internal:ssh2> function ssh2_publickey_list ] {
+
+ - Parameters [1] {
+ Parameter #0 [ <required> $pkey ]
+ }
}
Function [ <internal:ssh2> function ssh2_auth_agent ] {
+
+ - Parameters [2] {
+ Parameter #0 [ <required> $session ]
+ Parameter #1 [ <required> $username ]
+ }
}
}
}
diff --git a/php-pecl-ssh2.spec b/php-pecl-ssh2.spec
index f97435f..c459a85 100644
--- a/php-pecl-ssh2.spec
+++ b/php-pecl-ssh2.spec
@@ -15,10 +15,9 @@
%else
%global sub_prefix %{scl_prefix}
%endif
+%scl_package php-pecl-ssh2
%endif
-%{?scl: %scl_package php-pecl-ssh2}
-
%global with_zts 0%{?__ztsphp:1}
%global pecl_name ssh2
%if "%{php_version}" < "5.6"
@@ -28,8 +27,8 @@
%endif
Name: %{?sub_prefix}php-pecl-ssh2
-Version: 0.12
-Release: 7%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Version: 0.13
+Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Summary: Bindings for the libssh2 library
%global buildver %(pkg-config --silence-errors --modversion libssh2 2>/dev/null || echo 65536)
@@ -54,8 +53,10 @@ Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+%if "%{?scl_prefix}" != "%{?sub_prefix}"
Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release}
Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
+%endif
%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1}
# Other third party repo stuff
@@ -93,9 +94,10 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -c -q
-# http://git.php.net/?p=pecl/networking/ssh2.git;a=commit;h=febf5a78b761ad3c8da06dfb6e94ac54708d2fa1
-%{?_licensedir:sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml}
-%{!?_licensedir:sed -e '/LICENSE/s/role="src"/role="doc"/' -i package.xml}
+# Don't install/register tests
+sed -e 's/role="test"/role="src"/' \
+ %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \
+ -i package.xml
mv %{pecl_name}-%{version} NTS
@@ -214,6 +216,9 @@ rm -rf %{buildroot}
%changelog
+* Sun Jun 12 2016 Remi Collet <remi@fedoraproject.org> - 0.13-1
+- update to 0.13
+
* Tue Mar 8 2016 Remi Collet <remi@fedoraproject.org> - 0.12-7
- adapt for F24