From 0d7dca9f0e92e209d9f12c348f2136fdef9890bb Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 2 Aug 2023 10:40:23 +0200 Subject: [PATCH] Add support for SeasClick PHP extension (#779) --- data/supported-extensions | 1 + install-php-extensions | 13 +++++++++++++ 2 files changed, 14 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 537ea05..bf8f90b 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -90,6 +90,7 @@ rdkafka 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 recode 5.5 5.6 7.0 7.1 7.2 7.3 redis 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 relay 7.4 8.0 8.1 8.2 +seasclick 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 seaslog 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 shmop 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 simdjson 7.1 7.2 7.3 7.4 8.0 8.1 8.2 diff --git a/install-php-extensions b/install-php-extensions index 268c7ea..10ebca3 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1188,6 +1188,9 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libssl1.1" fi ;; + seasclick@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++" + ;; simdjson@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++" ;; @@ -1640,6 +1643,9 @@ getModuleFullPath() { apcu_bc) getModuleFullPath_path="$PHP_EXTDIR/apc.so" ;; + seasclick) + getModuleFullPath_path="$PHP_EXTDIR/SeasClick.so" + ;; *) getModuleFullPath_path="$PHP_EXTDIR/$1.so" ;; @@ -3287,6 +3293,13 @@ installRemoteModule() { installRemoteModule_ini_extra="$(grep -vE '^[ \t]*extension[ \t]*=' $installRemoteModule_src/relay.ini)" installRemoteModule_manuallyInstalled=1 ;; + seasclick) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -le 506; then + installRemoteModule_version=0.1.0 + fi + fi + ;; snappy) if test -z "$installRemoteModule_path"; then if test -z "$installRemoteModule_version"; then