1
0
Fork 0
mirror of https://github.com/mlocati/docker-php-extension-installer synced 2025-05-09 00:22:40 +00:00

Add support for snappy (#597)

This commit is contained in:
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

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