Add support for snappy (#597)

pull/598/head
Fred Cox 2022-06-16 16:50:02 +03:00 committed by GitHub
parent 9be8c96cc7
commit 05d2d8c2f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

View File

@ -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

View File

@ -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