Simplify handling of ssh2 version

Test: ssh2
pull/288/head
Michele Locati 2021-02-02 20:45:42 +01:00
parent c898f01cb5
commit 0a241bcfa6
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
1 changed files with 10 additions and 11 deletions

View File

@ -1893,19 +1893,18 @@ installRemoteModule() {
if test $PHP_MAJMIN_VERSION -le 506; then if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=0.13 installRemoteModule_version=0.13
elif test $PHP_MAJMIN_VERSION -le 704; then 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
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) snuffleupagus)
if test -z "$installRemoteModule_version"; then if test -z "$installRemoteModule_version"; then