From 05d2d8c2f60c1848e0d06bafa5b339f46901f87a Mon Sep 17 00:00:00 2001 From: Fred Cox Date: Thu, 16 Jun 2022 16:50:02 +0300 Subject: [PATCH] Add support for snappy (#597) --- data/supported-extensions | 1 + install-php-extensions | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 4f449e7..eb0a4cf 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -86,6 +86,7 @@ redis 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 smbclient 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 +snappy 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 snmp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 snuffleupagus 7.0 7.1 7.2 7.3 7.4 8.0 8.1 soap 5.5 5.6 7.0 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 12c7738..49715cd 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -1105,6 +1105,14 @@ buildRequiredPackageLists() { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsmbclient" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libsmbclient-dev" ;; + snappy@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent snappy" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile snappy-dev" + ;; + snappy@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent ^libsnappy1(v[0-9]+)?$" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libsnappy-dev" + ;; snmp@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent net-snmp-libs" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile net-snmp-dev" @@ -2973,6 +2981,20 @@ installRemoteModule() { addConfigureOption 'enable-redis-zstd' 'yes' fi ;; + snappy) + if test -z "$installRemoteModule_path"; then + if test -z "$installRemoteModule_version"; then + installRemoteModule_version=0.2.1 + fi + installRemoteModule_src="$(getPackageSource https://github.com/kjdev/php-ext-snappy/archive/refs/tags/$installRemoteModule_version.tar.gz)" + cd "$installRemoteModule_src" + phpize + ./configure --with-snappy-includedir=/usr + make -j$(getProcessorCount) install + cd - >/dev/null + installRemoteModule_manuallyInstalled=1 + fi + ;; snuffleupagus) if test -z "$installRemoteModule_path"; then if test -z "$installRemoteModule_version"; then