From 0a241bcfa6eaab46b7517304bb5e4684a2ac6387 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Tue, 2 Feb 2021 20:45:42 +0100 Subject: [PATCH] Simplify handling of ssh2 version Test: ssh2 --- install-php-extensions | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/install-php-extensions b/install-php-extensions index d9ba92e..0ba7eae 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1893,19 +1893,18 @@ installRemoteModule() { if test $PHP_MAJMIN_VERSION -le 506; then installRemoteModule_version=0.13 elif test $PHP_MAJMIN_VERSION -le 704; then - installRemoteModule_version=1.2 + installRemoteModule_version=beta + else + installRemoteModule_src="$(getPackageSource https://codeload.github.com/php/pecl-networking-ssh2/tar.gz/93265d71bdeb23350e8320126c7949ed791310df)" + cd -- "$installRemoteModule_src" + phpize + ./configure + make -j$(getCompilationProcessorCount) + make install + cd - >/dev/null + installRemoteModule_manuallyInstalled=1 fi fi - if test -z "$installRemoteModule_version" && test $PHP_MAJMIN_VERSION -ge 800; then - installRemoteModule_src="$(getPackageSource https://codeload.github.com/php/pecl-networking-ssh2/tar.gz/93265d71bdeb23350e8320126c7949ed791310df)" - cd -- "$installRemoteModule_src" - phpize - ./configure - make -j$(getCompilationProcessorCount) - make install - cd - >/dev/null - installRemoteModule_manuallyInstalled=1 - fi ;; snuffleupagus) if test -z "$installRemoteModule_version"; then