2018-04-11 15:39:10 +00:00
#!/bin/sh
# This script wraps docker-php-ext-install, properly configuring the system.
#
2021-01-14 13:19:34 +00:00
# Copyright (c) Michele Locati, 2018-2021
2018-04-11 15:39:10 +00:00
#
2018-04-12 10:00:38 +00:00
# Source: https://github.com/mlocati/docker-php-extension-installer
#
# License: MIT - see https://github.com/mlocati/docker-php-extension-installer/blob/master/LICENSE
2018-04-11 15:39:10 +00:00
# Let's set a sane environment
set -o errexit
set -o nounset
2020-09-21 13:38:20 +00:00
if ! which docker-php-ext-configure >/dev/null || ! which docker-php-ext-enable >/dev/null || ! which docker-php-ext-install >/dev/null || ! which docker-php-source >/dev/null; then
printf 'The script %s is meant to be used with official Docker PHP Images - https://hub.docker.com/_/php\n' "$0" >&2
exit 1
fi
2021-01-14 16:05:23 +00:00
IPE_VERSION=master
if test "$IPE_VERSION" = master && test "${CI:-}" != true; then
cat <<EOF
#############################################################################################################
# #
# W A R N I N G ! ! ! #
# #
# You are using an unsupported method to get install-php-extensions! #
# #
# Please update the way you fetch it. Read the instrictions at #
# https://github.com/mlocati/docker-php-extension-installer#usage #
# #
# For example, if you get this script by fetching #
# https://raw.githubusercontent.com/mlocati/docker-php-extension-installer/master/install-php-extensions #
# replace it with #
# https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions #
# #
# Sleeping for a while so you get bored of this and act ;) #
# #
#############################################################################################################
EOF
sleep 10 || true
else
printf 'install-php-extensions v.%s\n' "$IPE_VERSION"
fi
2018-04-11 15:39:10 +00:00
# Reset the Internal Field Separator
2019-12-20 15:52:00 +00:00
resetIFS() {
2018-04-11 15:39:10 +00:00
IFS='
'
}
2020-02-28 10:09:15 +00:00
# Set these variables:
# - DISTRO containing distribution name (eg 'alpine', 'debian')
# - DISTO_VERSION containing distribution name and its version(eg 'alpine@3.10', 'debian@9')
setDistro() {
if ! test -r /etc/os-release; then
printf 'The file /etc/os-release is not readable\n' >&2
exit 1
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
fi
2020-02-28 10:09:15 +00:00
DISTRO="$(cat /etc/os-release | grep -E ^ID= | cut -d = -f 2)"
2020-09-18 18:02:07 +00:00
DISTRO_VERSION_NUMBER="$(cat /etc/os-release | grep -E ^VERSION_ID= | cut -d = -f 2 | cut -d '"' -f 2 | cut -d . -f 1,2)"
DISTRO_VERSION="$(printf '%s@%s' $DISTRO $DISTRO_VERSION_NUMBER)"
DISTRO_MAJMIN_VERSION="$(echo "$DISTRO_VERSION_NUMBER" | awk -F. '{print $1*100+$2}')"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
}
2021-01-13 08:53:34 +00:00
# Set:
# - PHP_MAJMIN_VERSION: Major-Minor version, format MMmm (example 800 for PHP 8.0.1)
# - PHP_MAJMINPAT_VERSION: Major-Minor-Patch version, format MMmmpp (example 80001 for PHP 8.0.1) variables containing integers value
setPHPVersionVariables() {
setPHPVersionVariables_textual="$(php-config --version)"
PHP_MAJMIN_VERSION=$(printf '%s' "$setPHPVersionVariables_textual" | awk -F. '{print $1*100+$2}')
PHP_MAJMINPAT_VERSION=$(printf '%s' "$setPHPVersionVariables_textual" | awk -F. '{print $1*10000+$2*100+$3}')
2018-04-11 15:39:10 +00:00
}
2021-01-14 13:47:26 +00:00
# Fix apt-get being very slow on Debian Jessie
# See https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1332440
fixMaxOpenFiles() {
fixMaxOpenFiles_cur=$(ulimit -n 2>/dev/null || echo 0)
if test "$fixMaxOpenFiles_cur" -gt 10000; then
ulimit -n 10000
fi
}
2020-12-10 13:56:31 +00:00
# Get the directory containing the compiled PHP extensions
#
# Output:
# The absolute path of the extensions dir
getPHPExtensionsDir() {
php -i | grep -E '^extension_dir' | head -n1 | tr -s '[:space:]*=>[:space:]*' '|' | cut -d'|' -f2
}
2020-10-18 17:06:39 +00:00
# Normalize the name of a PHP extension
#
# Arguments:
# $1: the name of the module to be normalized
#
# Output:
# The normalized module name
normalizePHPModuleName() {
normalizePHPModuleName_name="$1"
case "$normalizePHPModuleName_name" in
*A* | *B* | *C* | *D* | *E* | *F* | *G* | *H* | *I* | *J* | *K* | *L* | *M* | *N* | *O* | *P* | *Q* | *R* | *S* | *T* | *U* | *V* | *W* | *X* | *Y* | *Z*)
normalizePHPModuleName_name="$(LC_CTYPE=C printf '%s' "$normalizePHPModuleName_name" | tr '[:upper:]' '[:lower:]')"
;;
esac
case "$normalizePHPModuleName_name" in
2020-12-10 13:56:31 +00:00
ioncube | ioncube\ loader)
normalizePHPModuleName_name='ioncube_loader'
;;
2020-10-18 17:06:39 +00:00
pecl_http)
normalizePHPModuleName_name='http'
;;
zend\ opcache)
normalizePHPModuleName_name='opcache'
;;
*\ *)
printf '### WARNING Unrecognized module name: %s ###\n' "$1" >&2
;;
esac
printf '%s' "$normalizePHPModuleName_name"
}
2021-01-26 14:16:04 +00:00
# Get the PECL name of PHP extension
#
# Arguments:
# $1: the name of the extension
#
# Output:
# The PECL name of the extension
getPeclModuleName() {
normalizePHPModuleName_name="$1"
case "$normalizePHPModuleName_name" in
http)
normalizePHPModuleName_name=pecl_http
;;
esac
printf '%s' "$normalizePHPModuleName_name"
}
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
# Parse a module name (and optionally version) as received via command arguments, extracting the version and normalizing it
# Example:
# xdebug-2.9.8
#
# Arguments:
# $1: the name of the module to be normalized
#
# Set these variables:
# - PROCESSED_PHP_MODULE_ARGUMENT
#
# Optionally set these variables:
# - PHP_WANTEDMODULEVERSION_<...> (where <...> is the normalized module name)
#
# Output:
# Nothing
processPHPMuduleArgument() {
PROCESSED_PHP_MODULE_ARGUMENT="${1%%-*}"
if test -n "$PROCESSED_PHP_MODULE_ARGUMENT" && test "$PROCESSED_PHP_MODULE_ARGUMENT" != "$1"; then
processPHPMuduleArgument_version="${1#*-}"
else
processPHPMuduleArgument_version=''
fi
PROCESSED_PHP_MODULE_ARGUMENT="$(normalizePHPModuleName "$PROCESSED_PHP_MODULE_ARGUMENT")"
if test -n "$processPHPMuduleArgument_version"; then
if printf '%s' "$PROCESSED_PHP_MODULE_ARGUMENT" | grep -Eq '^[a-zA-Z0-9_]+$'; then
eval PHP_WANTEDMODULEVERSION_$PROCESSED_PHP_MODULE_ARGUMENT="$processPHPMuduleArgument_version"
2020-12-16 10:34:30 +00:00
elif printf '%s' "$PROCESSED_PHP_MODULE_ARGUMENT" | grep -Eq '^@[a-zA-Z0-9_]+$'; then
eval PHP_WANTEDMODULEVERSION__${PROCESSED_PHP_MODULE_ARGUMENT#@}="$processPHPMuduleArgument_version"
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
else
printf 'Unable to parse the following module name:\n%s\n' "$PROCESSED_PHP_MODULE_ARGUMENT" >&2
fi
fi
}
# Get the wanted PHP module version, as specified in the command line arguments.
#
# Arguments:
# $1: the name of the module to be normalized
#
# Output:
# The wanted version (if any)
getWantedPHPModuleVersion() {
if printf '%s' "$1" | grep -Eq '^[a-zA-Z0-9_]+$'; then
eval printf '%s' "\${PHP_WANTEDMODULEVERSION_$1:-}"
2020-12-16 10:34:30 +00:00
elif printf '%s' "$1" | grep -Eq '^@[a-zA-Z0-9_]+$'; then
eval printf '%s' "\${PHP_WANTEDMODULEVERSION__${1#@}:-}"
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
}
2020-10-18 16:40:43 +00:00
# Set these variables:
# - PHP_PREINSTALLED_MODULES the normalized list of PHP modules installed before running this script
setPHPPreinstalledModules() {
PHP_PREINSTALLED_MODULES=''
2018-04-11 15:39:10 +00:00
IFS='
'
2019-10-07 15:54:18 +00:00
for getPHPInstalledModules_module in $(php -m); do
2018-04-11 15:39:10 +00:00
getPHPInstalledModules_moduleNormalized=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
case "$getPHPInstalledModules_module" in
2019-12-20 15:52:00 +00:00
\[PHP\ Modules\]) ;;
2018-04-11 15:39:10 +00:00
\[Zend\ Modules\])
break
;;
*)
2020-10-18 17:06:39 +00:00
getPHPInstalledModules_moduleNormalized="$(normalizePHPModuleName "$getPHPInstalledModules_module")"
if ! stringInList "$getPHPInstalledModules_moduleNormalized" "$PHP_PREINSTALLED_MODULES"; then
PHP_PREINSTALLED_MODULES="$PHP_PREINSTALLED_MODULES $getPHPInstalledModules_moduleNormalized"
fi
2018-04-11 15:39:10 +00:00
;;
esac
done
2020-12-16 10:34:30 +00:00
if command -v composer >/dev/null; then
PHP_PREINSTALLED_MODULES="$PHP_PREINSTALLED_MODULES @composer"
fi
2018-04-11 15:39:10 +00:00
resetIFS
2020-10-18 16:40:43 +00:00
PHP_PREINSTALLED_MODULES="${PHP_PREINSTALLED_MODULES# }"
2018-04-11 15:39:10 +00:00
}
# Get the handles of the modules to be installed
#
# Arguments:
# $@: all module handles
2018-06-28 07:46:14 +00:00
#
# Set:
# PHP_MODULES_TO_INSTALL
#
2018-04-11 15:39:10 +00:00
# Output:
2018-06-28 07:46:14 +00:00
# Nothing
2019-12-20 15:52:00 +00:00
processCommandArguments() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
processCommandArguments_endArgs=0
2018-06-28 07:46:14 +00:00
PHP_MODULES_TO_INSTALL=''
2019-10-07 15:54:18 +00:00
while :; do
if test $# -lt 1; then
2018-04-11 15:39:10 +00:00
break
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
processCommandArguments_skip=0
if test $processCommandArguments_endArgs -eq 0; then
case "$1" in
2018-06-28 08:01:51 +00:00
--cleanup)
2019-12-20 14:55:26 +00:00
printf '### WARNING the %s option is deprecated (we always cleanup everything) ###\n' "$1" >&2
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
processCommandArguments_skip=1
2018-06-28 07:46:14 +00:00
;;
--)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
processCommandArguments_skip=1
processCommandArguments_endArgs=1
2018-06-28 07:46:14 +00:00
;;
-*)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
printf 'Unrecognized option: %s\n' "$1" >&2
2018-06-28 07:46:14 +00:00
exit 1
;;
esac
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if test $processCommandArguments_skip -eq 0; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
processPHPMuduleArgument "$1"
processCommandArguments_name="$PROCESSED_PHP_MODULE_ARGUMENT"
2019-12-24 11:53:48 +00:00
if stringInList "$processCommandArguments_name" "$PHP_MODULES_TO_INSTALL"; then
printf '### WARNING Duplicated module name specified: %s ###\n' "$processCommandArguments_name" >&2
2020-10-18 16:40:43 +00:00
elif stringInList "$processCommandArguments_name" "$PHP_PREINSTALLED_MODULES"; then
2019-12-24 11:53:48 +00:00
printf '### WARNING Module already installed: %s ###\n' "$processCommandArguments_name" >&2
2018-06-28 07:46:14 +00:00
else
2019-12-24 11:53:48 +00:00
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL $processCommandArguments_name"
2018-06-28 07:46:14 +00:00
fi
2018-04-11 15:39:10 +00:00
fi
shift
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL# }"
2018-04-11 15:39:10 +00:00
}
2020-10-18 13:20:16 +00:00
# Add a module that's required by another module
#
# Arguments:
# $1: module that requires another module
# $2: the required module
#
# Update:
# PHP_MODULES_TO_INSTALL
#
# Output:
# Nothing
checkRequiredModule() {
if ! stringInList "$1" "$PHP_MODULES_TO_INSTALL"; then
return
fi
2020-10-18 16:40:43 +00:00
if stringInList "$2" "$PHP_PREINSTALLED_MODULES"; then
2020-10-18 13:20:16 +00:00
return
fi
PHP_MODULES_TO_INSTALL="$(removeStringFromList "$1" "$PHP_MODULES_TO_INSTALL")"
if ! stringInList "$2" "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL $2"
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL# }"
fi
PHP_MODULES_TO_INSTALL="$PHP_MODULES_TO_INSTALL $1"
}
2019-10-11 14:01:21 +00:00
# Sort the modules to be installed, in order to fix dependencies
#
# Update:
# PHP_MODULES_TO_INSTALL
#
# Output:
# Nothing
2019-12-20 15:52:00 +00:00
sortModulesToInstall() {
2020-10-18 13:20:16 +00:00
# apcu_bc requires apcu
checkRequiredModule 'apcu_bc' 'apcu'
# http requires propro and raphf
checkRequiredModule 'http' 'propro'
checkRequiredModule 'http' 'raphf'
# Some module installation may use igbinary if available: move it before other modules
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if stringInList 'igbinary' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'igbinary' "$PHP_MODULES_TO_INSTALL")"
2020-10-18 13:20:16 +00:00
PHP_MODULES_TO_INSTALL="igbinary $PHP_MODULES_TO_INSTALL"
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }"
2019-10-11 14:01:21 +00:00
fi
2020-10-18 13:20:16 +00:00
# Some module installation may use msgpack if available: move it before other modules
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if stringInList 'msgpack' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'msgpack' "$PHP_MODULES_TO_INSTALL")"
2020-10-18 13:20:16 +00:00
PHP_MODULES_TO_INSTALL="msgpack $PHP_MODULES_TO_INSTALL"
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }"
2019-12-24 11:53:48 +00:00
fi
2020-12-11 18:16:46 +00:00
# Some module installation may use socket if available: move it before other modules
if stringInList 'socket' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList 'socket' "$PHP_MODULES_TO_INSTALL")"
PHP_MODULES_TO_INSTALL="socket $PHP_MODULES_TO_INSTALL"
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }"
fi
2020-12-16 10:34:30 +00:00
# In any case, first of all, we need to install composer
if stringInList '@composer' "$PHP_MODULES_TO_INSTALL"; then
PHP_MODULES_TO_INSTALL="$(removeStringFromList '@composer' "$PHP_MODULES_TO_INSTALL")"
PHP_MODULES_TO_INSTALL="@composer $PHP_MODULES_TO_INSTALL"
PHP_MODULES_TO_INSTALL="${PHP_MODULES_TO_INSTALL% }"
fi
2019-10-11 14:01:21 +00:00
}
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# Get the required APT/APK packages for a specific PHP version and for the list of module handles
2018-04-11 15:39:10 +00:00
#
# Arguments:
# $@: the PHP module handles
#
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# Set:
# PACKAGES_PERSISTENT
# PACKAGES_VOLATILE
2020-01-23 13:50:55 +00:00
# PACKAGES_PREVIOUS
2019-12-20 15:52:00 +00:00
buildRequiredPackageLists() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_persistent=''
buildRequiredPackageLists_volatile=''
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2020-02-15 20:40:54 +00:00
alpine)
apk update
;;
esac
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2019-12-23 09:31:24 +00:00
alpine@*)
2020-12-16 10:34:30 +00:00
if test $# -gt 1 || test "${1:-}" != '@composer'; then
2020-12-16 09:04:45 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS"
2020-12-16 10:34:30 +00:00
fi
2019-12-20 14:28:39 +00:00
if test -z "$(apk info 2>/dev/null | grep -E ^libssl)"; then
buildRequiredPackageLists_libssl='libssl1.0'
elif test -z "$(apk info 2>/dev/null | grep -E '^libressl.*-libtls')"; then
2020-02-14 13:38:07 +00:00
buildRequiredPackageLists_libssl=$(apk search -q libressl*-libtls)
2019-12-20 14:28:39 +00:00
else
buildRequiredPackageLists_libssl=''
fi
2019-12-19 15:17:29 +00:00
;;
2019-12-23 09:31:24 +00:00
debian@9)
2019-12-23 11:45:53 +00:00
buildRequiredPackageLists_libssldev='libssl1.0-dev'
2019-12-23 09:31:24 +00:00
;;
debian@*)
buildRequiredPackageLists_libssldev='libssl([0-9]+(\.[0-9]+)*)?-dev$'
2019-12-19 15:17:29 +00:00
;;
esac
2020-12-16 09:04:45 +00:00
if test $USE_PICKLE -gt 1; then
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git"
fi
2019-10-07 15:54:18 +00:00
while :; do
2020-07-27 12:30:14 +00:00
if test $# -lt 1; then
2018-04-11 15:39:10 +00:00
break
fi
2020-02-28 10:09:15 +00:00
case "$1@$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
amqp@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent rabbitmq-c"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile rabbitmq-c-dev"
2018-10-16 21:06:22 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
amqp@debian)
2019-12-20 14:01:47 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librabbitmq[0-9]"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librabbitmq-dev libssh-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
bz2@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libbz2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile bzip2-dev"
;;
bz2@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libbz2-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
cmark@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
;;
cmark@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake"
;;
2020-12-16 17:34:27 +00:00
dba@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent db"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile db-dev"
;;
dba@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libdb5.3-dev"
if test $PHP_MAJMIN_VERSION -le 505; then
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile patch"
fi
;;
2020-02-04 08:54:02 +00:00
decimal@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmpdec2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmpdec-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
enchant@alpine)
2020-09-18 18:02:07 +00:00
if test $DISTRO_MAJMIN_VERSION -ge 312; then
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent enchant2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile enchant2-dev"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent enchant"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile enchant-dev"
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
;;
enchant@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libenchant1c2a"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libenchant-dev"
;;
2020-02-17 12:29:17 +00:00
ffi@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libffi"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libffi-dev"
;;
ffi@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libffi-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
gd@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetype libjpeg-turbo libpng libxpm"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetype-dev libjpeg-turbo-dev libpng-dev libxpm-dev"
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libvpx"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libvpx-dev"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libwebp"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libwebp-dev"
fi
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
gd@debian)
2019-12-23 08:12:15 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfreetype6 libjpeg62-turbo libpng[0-9]+-[0-9]+$ libxpm4"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libfreetype6-dev libjpeg62-turbo-dev libpng-dev libxpm-dev"
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-23 08:12:15 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libvpx[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libvpx-dev"
2018-04-11 15:39:10 +00:00
else
2019-12-23 08:12:15 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libwebp[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libwebp-dev"
2018-04-11 15:39:10 +00:00
fi
;;
2021-01-17 13:43:09 +00:00
gearman@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ libuuid"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile boost-dev gperf libmemcached-dev libevent-dev util-linux-dev"
;;
gearman@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libgearman[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgearman-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
gettext@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libintl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gettext-dev"
2018-04-11 15:39:10 +00:00
;;
2020-01-07 10:24:42 +00:00
gmagick@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent graphicsmagick"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile graphicsmagick-dev libtool"
;;
gmagick@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libgraphicsmagick(-q16-)?[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgraphicsmagick1-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
gmp@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent gmp"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gmp-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
gmp@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgmp-dev"
2018-04-11 15:39:10 +00:00
;;
2020-12-14 16:44:19 +00:00
gnupg@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_volatile gpgme"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gpgme-dev"
;;
gnupg@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_volatile libgpgme[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libgpgme[0-9]*-dev"
;;
2019-12-16 13:47:29 +00:00
grpc@alpine)
2019-12-16 16:04:01 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++"
2020-02-15 20:37:12 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev linux-headers"
2019-12-16 13:47:29 +00:00
;;
grpc@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev"
;;
2019-12-24 11:53:48 +00:00
http@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libevent"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev curl-dev libevent-dev"
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-24 11:53:48 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libidn"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libidn-dev"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs libidn"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev libidn-dev"
fi
;;
http@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libcurl3-gnutls libevent[0-9\.\-]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev libgnutls28-dev libcurl4-gnutls-dev libevent-dev"
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2019-12-24 11:53:48 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libidn1[0-9+]-dev$"
else
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libicu[0-9]+$ libidn2-[0-9+]$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev libidn2-[0-9+]-dev$"
fi
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
imagick@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent imagemagick"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile imagemagick-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
imagick@debian)
2020-12-03 17:01:45 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmagickwand-6.q16-[0-9]+ libmagickcore-6.q16-[0-9]+-extra$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmagickwand-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
imap@alpine)
2019-12-20 14:28:39 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent c-client $buildRequiredPackageLists_libssl"
2019-12-19 13:03:33 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile krb5-dev imap-dev libressl-dev"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
;;
imap@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libc-client2007e"
2020-01-22 12:40:40 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libkrb5-dev"
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2020-01-22 12:40:40 +00:00
debian@9)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev comerr-dev krb5-multidev libc-client2007e libgssrpc4 libkadm5clnt-mit11 libkadm5srv-mit11 libkdb5-8 libpam0g-dev libssl-doc mlock"
;;
*)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libc-client-dev"
;;
esac
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
;;
2019-12-11 10:40:13 +00:00
interbase@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev ncurses-dev"
2019-12-11 10:40:13 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
interbase@debian)
2019-12-11 10:40:13 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfbclient2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util"
;;
2019-12-11 11:29:48 +00:00
intl@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
intl@debian)
2019-12-23 08:22:03 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libicu[0-9]+$"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev"
;;
2019-12-11 11:29:48 +00:00
ldap@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libldap"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile openldap-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
ldap@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libldap2-dev"
;;
2020-12-10 17:06:36 +00:00
maxminddb@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmaxminddb"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmaxminddb-dev"
;;
maxminddb@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmaxminddb[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmaxminddb-dev"
;;
2019-12-11 11:29:48 +00:00
mcrypt@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmcrypt"
2019-12-11 11:29:48 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmcrypt-dev"
;;
mcrypt@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmcrypt4"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmcrypt-dev"
;;
memcache@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev"
2019-12-11 11:29:48 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
memcache@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-11 11:29:48 +00:00
memcached@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmemcached-libs"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmemcached-dev zlib-dev"
2019-12-11 11:29:48 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
memcached@debian)
2019-12-11 11:29:48 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmemcachedutil2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmemcached-dev zlib1g-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-12 11:41:49 +00:00
mongo@alpine)
2019-12-20 14:28:39 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsasl $buildRequiredPackageLists_libssl"
2019-12-19 13:03:33 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libressl-dev cyrus-sasl-dev"
2019-12-12 11:41:49 +00:00
;;
mongo@debian)
2019-12-19 15:17:29 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev libsasl2-dev"
2019-12-12 11:41:49 +00:00
;;
mongodb@alpine)
2019-12-20 14:28:39 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs libsasl $buildRequiredPackageLists_libssl snappy"
2019-12-19 13:03:33 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev cyrus-sasl-dev snappy-dev libressl-dev zlib-dev"
2019-12-12 11:41:49 +00:00
;;
mongodb@debian)
2019-12-23 09:31:24 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsnappy[0-9]+(v[0-9]+)?$ libicu[0-9]+$"
2019-12-19 15:17:29 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev libsasl2-dev libsnappy-dev $buildRequiredPackageLists_libssldev zlib1g-dev"
2019-12-12 11:41:49 +00:00
;;
2020-11-25 20:52:49 +00:00
mosquitto@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent mosquitto-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile mosquitto-dev"
;;
mosquitto@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmosquitto1"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmosquitto-dev"
;;
2019-12-11 11:57:53 +00:00
mssql@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
mssql@debian)
2019-12-11 11:57:53 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsybdb5"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
2018-04-11 15:39:10 +00:00
;;
2020-02-16 17:28:30 +00:00
oauth@alpine)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-16 17:28:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile pcre-dev"
fi
;;
oauth@debian)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-16 17:28:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpcre3-dev"
fi
;;
2020-12-28 09:51:30 +00:00
oci8@alpine | pdo_oci@alpine)
2020-12-14 13:19:14 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libaio libc6-compat libnsl"
if test $DISTRO_MAJMIN_VERSION -le 307; then
# The unzip tool of Alpine 3.7 can't extract symlinks from ZIP archives: let's use bsdtar instead
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libarchive-tools"
fi
2020-12-11 14:04:08 +00:00
;;
2020-12-28 09:51:30 +00:00
oci8@debian | pdo_oci@debian)
2020-12-11 14:04:08 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libaio[0-9]*$"
2020-12-14 13:19:14 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unzip"
2020-12-11 14:04:08 +00:00
;;
2021-01-03 13:39:54 +00:00
odbc@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
;;
odbc@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libodbc1"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
;;
2019-12-11 13:23:15 +00:00
pdo_dblib@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
pdo_dblib@debian)
2019-12-11 13:23:15 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsybdb5"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-11 13:23:15 +00:00
pdo_firebird@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile icu-dev ncurses-dev"
2019-12-11 13:23:15 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
pdo_firebird@debian)
2019-12-11 13:23:15 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libfbclient2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile firebird-dev libib-util"
2018-04-11 15:39:10 +00:00
;;
2019-12-11 13:23:15 +00:00
pdo_odbc@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
pdo_odbc@debian)
2019-12-11 13:23:15 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libodbc1"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-11 13:23:15 +00:00
pdo_pgsql@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile postgresql-dev"
;;
pdo_pgsql@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libpq5"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpq-dev"
;;
2019-12-11 14:04:19 +00:00
pgsql@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile postgresql-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
pgsql@debian)
2019-12-11 14:04:19 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libpq5"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpq-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-11 14:04:19 +00:00
pspell@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent aspell-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile aspell-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
pspell@debian)
2019-12-11 14:04:19 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libaspell15"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpspell-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-18 14:13:56 +00:00
rdkafka@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librdkafka"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librdkafka-dev"
2019-12-18 14:13:56 +00:00
;;
rdkafka@debian)
2019-12-23 10:15:29 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librdkafka\+*[0-9]*$"
2019-12-18 14:13:56 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librdkafka-dev"
;;
2019-12-11 14:04:19 +00:00
recode@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent recode"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile recode-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
recode@debian)
2019-12-11 14:04:19 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librecode0"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librecode-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-23 17:09:22 +00:00
redis@alpine)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2019-12-23 17:09:22 +00:00
alpine@3.7)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent zstd"
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent zstd-libs"
;;
esac
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zstd-dev"
fi
;;
redis@debian)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -ge 700; then
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2019-12-23 17:09:22 +00:00
debian@8)
## There's no APT package for libzstd
;;
debian@9)
## libzstd is too old (available: 1.1.2, required: 1.3.0+)
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzstd[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libzstd-dev"
;;
esac
fi
;;
2021-01-03 14:05:52 +00:00
smbclient@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsmbclient"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile samba-dev"
;;
smbclient@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsmbclient"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libsmbclient-dev"
;;
2019-12-11 14:38:27 +00:00
snmp@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent net-snmp-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile net-snmp-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
snmp@debian)
2019-12-11 14:38:27 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent snmp"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libsnmp-dev"
;;
2021-01-03 13:39:54 +00:00
snuffleupagus@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent pcre"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile pcre-dev"
;;
snuffleupagus@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libpcre3-dev"
;;
2019-12-11 14:38:27 +00:00
soap@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
soap@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 15:39:10 +00:00
;;
2019-12-11 14:38:27 +00:00
solr@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev libxml2-dev"
2019-12-11 14:38:27 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
solr@debian)
2019-12-11 14:38:27 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libcurl3-gnutls"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libcurl4-gnutls-dev libxml2-dev"
2018-04-11 15:39:10 +00:00
;;
2021-01-20 09:53:51 +00:00
sqlsrv@alpine | pdo_sqlsrv@alpine)
2019-12-11 14:38:27 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ unixodbc"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2019-12-11 14:38:27 +00:00
;;
2021-01-20 09:53:51 +00:00
sqlsrv@debian | pdo_sqlsrv@debian)
2019-12-11 14:38:27 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent unixodbc"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile unixodbc-dev"
2021-01-20 09:53:51 +00:00
if ! isMicrosoftSqlServerODBCInstalled; then
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile gnupg apt-transport-https"
fi
2018-04-11 15:39:10 +00:00
;;
2019-12-11 14:38:27 +00:00
ssh2@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libssh2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssh2-dev"
2019-12-11 14:38:27 +00:00
;;
ssh2@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssh2-1-dev"
;;
2020-12-11 18:16:46 +00:00
swoole@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs libstdc++"
2021-01-13 08:53:34 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev postgresql-dev linux-headers"
2020-12-11 18:16:46 +00:00
case "$DISTRO_VERSION" in
alpine@3.7 | alpine@3.8)
# I can assure you I tried very hard to enable openssl in these Alpine versions...
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent $buildRequiredPackageLists_libssl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libressl-dev"
;;
esac
;;
swoole@debian)
2021-01-13 08:53:34 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libcurl3-gnutls libpq5"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev libcurl4-gnutls-dev libpq-dev"
2020-12-11 18:16:46 +00:00
;;
2019-12-11 14:58:47 +00:00
sybase_ct@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent freetds"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
sybase_ct@debian)
2019-12-11 14:58:47 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libct4"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile freetds-dev"
2018-04-11 15:39:10 +00:00
;;
2020-03-02 09:43:25 +00:00
tdlib@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libstdc++ $buildRequiredPackageLists_libssl"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git cmake gperf zlib-dev libressl-dev linux-headers readline-dev"
;;
tdlib@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile git cmake gperf zlib1g-dev $buildRequiredPackageLists_libssldev"
;;
2019-12-11 14:58:47 +00:00
tidy@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent tidyhtml-libs"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile tidyhtml-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
tidy@debian)
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libtidy5*"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libtidy-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
uuid@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libuuid"
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile util-linux-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
uuid@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile uuid-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
wddx@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
wddx@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 15:39:10 +00:00
;;
2021-01-03 13:39:54 +00:00
xlswriter@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib-dev"
;;
xlswriter@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile zlib1g-dev"
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
xmlrpc@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
xmlrpc@debian)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxml2-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
xsl@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libxslt"
2019-12-11 16:34:32 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxslt-dev libgcrypt-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
xsl@debian)
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libxslt1.1"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libxslt-dev"
2018-04-11 15:39:10 +00:00
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
yaml@alpine)
2019-12-19 13:02:02 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent yaml"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile yaml-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
yaml@debian)
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libyaml-0-2"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libyaml-dev"
2018-04-11 15:39:10 +00:00
;;
2021-01-05 14:16:27 +00:00
yar@alpine)
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev"
;;
yar@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libcurl3-gnutls"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libcurl4-gnutls-dev"
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
zip@alpine)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzip"
2019-12-19 13:03:33 +00:00
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake gnutls-dev libzip-dev libressl-dev zlib-dev"
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
;;
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
zip@debian)
2019-12-23 09:31:24 +00:00
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzip[0-9]$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile cmake gnutls-dev $buildRequiredPackageLists_libssldev libzip-dev libbz2-dev zlib1g-dev"
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2019-12-23 09:31:24 +00:00
debian@8)
# Debian Jessie doesn't seem to provide libmbedtls
;;
*)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmbedtls[0-9]*$"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmbedtls-dev"
;;
esac
2018-04-11 15:39:10 +00:00
;;
2020-12-07 15:25:42 +00:00
zookeeper@alpine)
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile apache-ant automake libtool openjdk8"
fi
;;
2020-07-27 14:50:21 +00:00
zookeeper@debian)
buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzookeeper-mt2"
buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libzookeeper-mt-dev"
;;
2018-04-11 15:39:10 +00:00
esac
2020-07-27 12:30:14 +00:00
shift
2018-04-11 15:39:10 +00:00
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
PACKAGES_PERSISTENT=''
PACKAGES_VOLATILE=''
2020-01-23 13:50:55 +00:00
PACKAGES_PREVIOUS=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if test -z "$buildRequiredPackageLists_persistent$buildRequiredPackageLists_volatile"; then
2019-12-23 10:50:42 +00:00
return
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
fi
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
debian)
2019-12-12 11:24:08 +00:00
DEBIAN_FRONTEND=noninteractive apt-get update -q
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
;;
esac
if test -n "$buildRequiredPackageLists_persistent"; then
PACKAGES_PERSISTENT="$(expandPackagesToBeInstalled $buildRequiredPackageLists_persistent)"
2019-12-23 11:40:28 +00:00
if test -s "$IPE_ERRFLAG_FILE"; then
2019-12-23 07:55:33 +00:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
fi
if test -n "$buildRequiredPackageLists_volatile"; then
2019-12-23 07:55:33 +00:00
buildRequiredPackageLists_packages="$(expandPackagesToBeInstalled $buildRequiredPackageLists_volatile)"
2019-12-23 11:40:28 +00:00
if test -s "$IPE_ERRFLAG_FILE"; then
2019-12-23 07:55:33 +00:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
resetIFS
2019-12-23 07:55:33 +00:00
for buildRequiredPackageLists_package in $buildRequiredPackageLists_packages; do
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if ! stringInList "$buildRequiredPackageLists_package" "$PACKAGES_PERSISTENT"; then
PACKAGES_VOLATILE="$PACKAGES_VOLATILE $buildRequiredPackageLists_package"
fi
done
PACKAGES_VOLATILE="${PACKAGES_VOLATILE# }"
fi
2020-01-23 13:50:55 +00:00
if test -n "$PACKAGES_PERSISTENT$PACKAGES_VOLATILE"; then
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2020-01-23 13:50:55 +00:00
debian)
PACKAGES_PREVIOUS="$(dpkg --get-selections | grep -E '\sinstall$' | awk '{ print $1 }')"
;;
esac
fi
2018-04-11 15:39:10 +00:00
}
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# Get the full list of APT/APK packages that will be installed, given the required packages
2018-06-28 07:46:14 +00:00
#
# Arguments:
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# $1: the list of required APT/APK packages
2018-06-28 07:46:14 +00:00
#
# Output:
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# Space-separated list of every APT/APK packages that will be installed
2019-12-20 15:52:00 +00:00
expandPackagesToBeInstalled() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
expandPackagesToBeInstalled_result=''
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
alpine)
2019-12-19 14:59:08 +00:00
expandPackagesToBeInstalled_log="$(apk add --simulate $@ 2>&1 || printf '\nERROR: apk failed\n')"
2019-12-19 13:04:35 +00:00
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_log" | grep -E '^ERROR:')"; then
2019-12-23 11:40:28 +00:00
printf 'FAILED TO LIST THE WHOLE PACKAGE LIST FOR\n' >&2
printf '%s ' "$@" >&2
printf '\n\nCOMMAND OUTPUT:\n%s\n' "$expandPackagesToBeInstalled_log" >&2
echo 'y' >"$IPE_ERRFLAG_FILE"
2019-12-19 13:04:35 +00:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
IFS='
2018-06-28 07:46:14 +00:00
'
2019-12-19 13:04:35 +00:00
for expandPackagesToBeInstalled_line in $expandPackagesToBeInstalled_log; do
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_line" | grep -E '^\([0-9]*/[0-9]*) Installing ')"; then
expandPackagesToBeInstalled_result="$expandPackagesToBeInstalled_result $(printf '%s' "$expandPackagesToBeInstalled_line" | cut -d ' ' -f 3)"
fi
2018-06-28 07:46:14 +00:00
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
resetIFS
;;
debian)
2019-12-19 14:59:08 +00:00
expandPackagesToBeInstalled_log="$(DEBIAN_FRONTEND=noninteractive apt-get install -sy $@ 2>&1 || printf '\nE: apt-get failed\n')"
2019-12-19 13:04:35 +00:00
if test -n "$(printf '%s' "$expandPackagesToBeInstalled_log" | grep -E '^E:')"; then
2019-12-23 11:40:28 +00:00
printf 'FAILED TO LIST THE WHOLE PACKAGE LIST FOR\n' >&2
printf '%s ' "$@" >&2
printf '\n\nCOMMAND OUTPUT:\n%s\n' "$expandPackagesToBeInstalled_log" >&2
echo 'y' >"$IPE_ERRFLAG_FILE"
2019-12-19 13:04:35 +00:00
exit 1
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
expandPackagesToBeInstalled_inNewPackages=0
IFS='
'
2019-12-19 13:04:35 +00:00
for expandPackagesToBeInstalled_line in $expandPackagesToBeInstalled_log; do
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if test $expandPackagesToBeInstalled_inNewPackages -eq 0; then
if test "$expandPackagesToBeInstalled_line" = 'The following NEW packages will be installed:'; then
expandPackagesToBeInstalled_inNewPackages=1
fi
elif test "$expandPackagesToBeInstalled_line" = "${expandPackagesToBeInstalled_line# }"; then
break
else
resetIFS
for expandPackagesToBeInstalled_newPackage in $expandPackagesToBeInstalled_line; do
expandPackagesToBeInstalled_result="$expandPackagesToBeInstalled_result $expandPackagesToBeInstalled_newPackage"
done
IFS='
'
fi
done
resetIFS
;;
esac
printf '%s' "${expandPackagesToBeInstalled_result# }"
}
2020-11-03 14:37:47 +00:00
# Retrieve the number of available cores (alternative to nproc if not available)
# Output:
# The number of processor cores available
getProcessorCount() {
if command -v nproc >/dev/null 2>&1; then
nproc
else
getProcessorCount_tmp=$(cat /proc/cpuinfo | grep -E '^processor\s*:\s*\d+$' | wc -l)
if test $getProcessorCount_tmp -ge 1; then
echo $getProcessorCount_tmp
else
echo 1
fi
fi
}
2020-11-10 15:54:39 +00:00
2020-12-14 15:43:43 +00:00
# Set these variables:
# - TARGET_TRIPLET the build target tripled (eg 'x86_64-linux-gnu', 'x86_64-alpine-linux-musl')
setTargetTriplet() {
TARGET_TRIPLET="$(gcc -print-multiarch 2>/dev/null || true)"
if test -z "$TARGET_TRIPLET"; then
TARGET_TRIPLET="$(gcc -dumpmachine)"
2020-11-10 15:54:39 +00:00
fi
}
Enable parallel compilation for many pecl extensions
Test: amqp, bcmath, bz2, calendar, exif, gd, gettext, grpc, imagick, intl, mysqli, opcache, pcntl, pdo_mysql, protobuf, redis, soap, sockets, tidy, xdebug, xsl, yaml, zip
2020-08-19 14:45:41 +00:00
# Retrieve the number of processors to be used when compiling an extension
#
# Arguments:
# $1: the handle of the PHP extension to be compiled
# Output:
# The number of processors to be used
getCompilationProcessorCount() {
case "$1" in
2021-01-26 14:41:48 +00:00
amqp | bcmath | bz2 | calendar | exif | gd | gettext | grpc | http | imagick | intl | mysqli | opcache | pcntl | pdo_mysql | protobuf | redis | soap | sockets | tidy | xdebug | xsl | yaml | zip)
2021-01-26 14:16:04 +00:00
# These extensions support parallel compilation
2020-11-03 14:37:47 +00:00
getProcessorCount
Enable parallel compilation for many pecl extensions
Test: amqp, bcmath, bz2, calendar, exif, gd, gettext, grpc, imagick, intl, mysqli, opcache, pcntl, pdo_mysql, protobuf, redis, soap, sockets, tidy, xdebug, xsl, yaml, zip
2020-08-19 14:45:41 +00:00
;;
*)
2021-01-26 14:16:04 +00:00
# We don't know - it's safer to disable parallel compilation
Enable parallel compilation for many pecl extensions
Test: amqp, bcmath, bz2, calendar, exif, gd, gettext, grpc, imagick, intl, mysqli, opcache, pcntl, pdo_mysql, protobuf, redis, soap, sockets, tidy, xdebug, xsl, yaml, zip
2020-08-19 14:45:41 +00:00
echo 1
;;
esac
}
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# Install the required APT/APK packages
#
# Arguments:
# $@: the list of APT/APK packages to be installed
2019-12-20 15:52:00 +00:00
installRequiredPackages() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
printf '### INSTALLING REQUIRED PACKAGES ###\n'
2019-12-19 15:06:42 +00:00
printf '# Packages to be kept after installation: %s\n' "$PACKAGES_PERSISTENT"
printf '# Packages to be used only for installation: %s\n' "$PACKAGES_VOLATILE"
2019-12-18 12:53:29 +00:00
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
alpine)
apk add $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
;;
debian)
2019-12-12 11:24:08 +00:00
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
;;
esac
2018-06-28 07:46:14 +00:00
}
2019-12-19 09:14:38 +00:00
# Get the version of an installed APT/APK package
#
# Arguments:
# $1: the name of the installed package
#
# Output:
# The numeric part of the package version, with from 1 to 3 numbers
#
# Example:
# 1
# 1.2
# 1.2.3
getInstalledPackageVersion() {
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2019-12-19 09:14:38 +00:00
alpine)
2019-12-20 15:52:00 +00:00
apk info "$1" | head -n1 | cut -c $((${#1} + 2))- | grep -o -E '^[0-9]+(\.[0-9]+){0,2}'
2019-12-19 09:14:38 +00:00
;;
debian)
dpkg-query --showformat='${Version}' --show "$1" 2>/dev/null | grep -o -E '^[0-9]+(\.[0-9]+){0,2}'
;;
esac
}
# Compare two versions
#
# Arguments:
# $1: the first version
# $2: the second version
#
# Output
# -1 if $1 is less than $2
# 0 if $1 is the same as $2
# 1 if $1 is greater than $2
compareVersions() {
compareVersions_v1="$1.0.0"
compareVersions_v2="$2.0.0"
2019-12-20 15:52:00 +00:00
compareVersions_vMin="$(printf '%s\n%s' "$compareVersions_v1" "$compareVersions_v2" | sort -t '.' -n -k1,1 -k2,2 -k3,3 | head -n 1)"
2019-12-19 09:14:38 +00:00
if test "$compareVersions_vMin" != "$compareVersions_v1"; then
echo '1'
elif test "$compareVersions_vMin" = "$compareVersions_v2"; then
echo '0'
else
echo '-1'
fi
}
2020-12-11 14:04:08 +00:00
# Install Oracle Instant Client & SDK
2020-12-28 09:51:30 +00:00
#
# Set:
# ORACLE_INSTANTCLIENT_LIBPATH
2020-12-11 14:04:08 +00:00
installOracleInstantClient() {
if test $(php -r 'echo PHP_INT_SIZE;') -eq 4; then
installOracleInstantClient_client=client
2020-12-14 13:19:14 +00:00
installOracleInstantClient_version='19.9'
installOracleInstantClient_ic=https://download.oracle.com/otn_software/linux/instantclient/199000/instantclient-basic-linux-$installOracleInstantClient_version.0.0.0dbru.zip
installOracleInstantClient_sdk=https://download.oracle.com/otn_software/linux/instantclient/199000/instantclient-sdk-linux-$installOracleInstantClient_version.0.0.0dbru.zip
2020-12-11 14:04:08 +00:00
else
installOracleInstantClient_client=client64
2020-12-14 13:19:14 +00:00
installOracleInstantClient_version='21.1'
installOracleInstantClient_ic=https://download.oracle.com/otn_software/linux/instantclient/211000/instantclient-basic-linux.x64-$installOracleInstantClient_version.0.0.0.zip
installOracleInstantClient_sdk=https://download.oracle.com/otn_software/linux/instantclient/211000/instantclient-sdk-linux.x64-$installOracleInstantClient_version.0.0.0.zip
2020-12-11 14:04:08 +00:00
fi
2020-12-28 09:51:30 +00:00
ORACLE_INSTANTCLIENT_LIBPATH=/usr/lib/oracle/$installOracleInstantClient_version/$installOracleInstantClient_client/lib
if ! test -e "$ORACLE_INSTANTCLIENT_LIBPATH"; then
2020-12-11 14:04:08 +00:00
printf 'Downloading Oracle Instant Client v%s... ' "$installOracleInstantClient_version"
installOracleInstantClient_src="$(getPackageSource $installOracleInstantClient_ic)"
2020-12-14 13:19:14 +00:00
mkdir -p "/usr/lib/oracle/$installOracleInstantClient_version/$installOracleInstantClient_client"
2020-12-28 09:51:30 +00:00
mv "$installOracleInstantClient_src" "$ORACLE_INSTANTCLIENT_LIBPATH"
2020-12-11 14:04:08 +00:00
echo 'done.'
fi
2020-12-28 09:51:30 +00:00
if ! test -e "$ORACLE_INSTANTCLIENT_LIBPATH/sdk"; then
2020-12-11 14:04:08 +00:00
printf 'Downloading Oracle Instant SDK v%s... ' "$installOracleInstantClient_version"
installOracleInstantClient_src="$(getPackageSource $installOracleInstantClient_sdk)"
2020-12-28 09:51:30 +00:00
ln -sf "$installOracleInstantClient_src/sdk" "$ORACLE_INSTANTCLIENT_LIBPATH/sdk"
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS '$ORACLE_INSTANTCLIENT_LIBPATH/sdk'"
2020-12-11 14:04:08 +00:00
echo 'done.'
fi
2020-12-14 13:19:14 +00:00
case "$DISTRO" in
alpine)
if ! test -e /usr/lib/libresolv.so.2 && test -e /lib/libc.so.6; then
ln -s /lib/libc.so.6 /usr/lib/libresolv.so.2
fi
2020-12-14 15:43:43 +00:00
installOracleInstantClient_ldconf=/etc/ld-musl-${TARGET_TRIPLET%-alpine-linux-musl}.path
2020-12-14 13:19:14 +00:00
if test -e "$installOracleInstantClient_ldconf"; then
2020-12-28 09:51:30 +00:00
if ! cat "$installOracleInstantClient_ldconf" | grep -q "$ORACLE_INSTANTCLIENT_LIBPATH"; then
cat "$ORACLE_INSTANTCLIENT_LIBPATH" | awk -v suffix=":$ORACLE_INSTANTCLIENT_LIBPATH" '{print NR==1 ? $0suffix : $0}' >"$ORACLE_INSTANTCLIENT_LIBPATH"
2020-12-14 13:19:14 +00:00
fi
else
if test $(php -r 'echo PHP_INT_SIZE;') -eq 4; then
2020-12-28 09:51:30 +00:00
echo "/lib:/usr/local/lib:/usr/lib:$ORACLE_INSTANTCLIENT_LIBPATH" >"$installOracleInstantClient_ldconf"
2020-12-14 13:19:14 +00:00
else
2020-12-28 09:51:30 +00:00
echo "/lib64:/lib:/usr/local/lib:/usr/lib:$ORACLE_INSTANTCLIENT_LIBPATH" >"$installOracleInstantClient_ldconf"
2020-12-14 13:19:14 +00:00
fi
fi
;;
debian)
if ! test -e /etc/ld.so.conf.d/oracle-instantclient.conf; then
2020-12-28 09:51:30 +00:00
echo "$ORACLE_INSTANTCLIENT_LIBPATH" >/etc/ld.so.conf.d/oracle-instantclient.conf
2020-12-14 13:19:14 +00:00
ldconfig
fi
;;
esac
2020-12-11 14:04:08 +00:00
}
2021-01-20 09:53:51 +00:00
# Check if the Microsoft SQL Server ODBC Driver is installed
#
# Return:
# 0 (true): if the string is in the list
# 1 (false): if the string is not in the list
isMicrosoftSqlServerODBCInstalled() {
test -d /opt/microsoft/msodbcsql*/
}
# Install the Microsoft SQL Server ODBC Driver
installMicrosoftSqlServerODBC() {
printf 'Installing the Microsoft SQL Server ODBC Driver\n'
case "$DISTRO" in
alpine)
# https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server#alpine17
rm -rf /tmp/src/msodbcsql.apk
curl -sSLf -o /tmp/src/msodbcsql.apk https://download.microsoft.com/download/e/4/e/e4e67866-dffd-428c-aac7-8d28ddafb39b/msodbcsql17_17.6.1.1-1_amd64.apk
printf '\n' | apk add --allow-untrusted /tmp/src/msodbcsql.apk
rm -rf /tmp/src/msodbcsql.apk
;;
debian)
# https://docs.microsoft.com/en-us/sql/connect/odbc/linux-mac/installing-the-microsoft-odbc-driver-for-sql-server#debian17
printf -- '- installing the Microsoft APT key\n'
curl -sSLf https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
if ! test -f /etc/apt/sources.list.d/mssql-release.list; then
printf -- '- adding the Microsoft APT source list\n'
curl -sSLf https://packages.microsoft.com/config/debian/$DISTRO_VERSION_NUMBER/prod.list >/etc/apt/sources.list.d/mssql-release.list
DEBIAN_FRONTEND=noninteractive apt-get -q update
fi
printf -- '- installing the APT package\n'
DEBIAN_FRONTEND=noninteractive ACCEPT_EULA=Y apt-get -qy install '^msodbcsql[0-9]+$'
;;
esac
}
2020-12-16 10:34:30 +00:00
# Install Composer
installComposer() {
installComposer_version="$(getWantedPHPModuleVersion @composer)"
if test -z "$installComposer_version"; then
installComposer_fullname=composer
installComposer_flags=''
else
installComposer_fullname="$(printf 'composer v%s' "$installComposer_version")"
if printf '%s' "$installComposer_version" | grep -Eq '^[0-9]+$'; then
installComposer_flags="--$installComposer_version"
else
installComposer_flags="--version=$installComposer_version"
fi
fi
printf '### INSTALLING %s ###\n' "$installComposer_fullname"
curl -sSLf https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer $installComposer_flags
}
2018-04-11 15:39:10 +00:00
# Install a bundled PHP module given its handle
#
# Arguments:
2020-07-27 12:30:14 +00:00
# $1: the handle of the PHP module
2018-06-28 07:46:14 +00:00
#
# Set:
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
# UNNEEDED_PACKAGE_LINKS
2018-06-28 07:46:14 +00:00
#
# Output:
# Nothing
2019-12-20 15:52:00 +00:00
installBundledModule() {
2020-07-27 12:30:14 +00:00
printf '### INSTALLING BUNDLED MODULE %s ###\n' "$1"
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test -n "$(getWantedPHPModuleVersion "$1")"; then
printf '### WARNING the module "%s" is bundled with PHP, you can NOT specify a version for it\n' "$1" >&2
fi
2020-07-27 12:30:14 +00:00
case "$1" in
2020-12-16 17:34:27 +00:00
dba)
if test -e /usr/lib/$TARGET_TRIPLET/libdb-5.3.so && ! test -e /usr/lib/libdb-5.3.so; then
ln -s /usr/lib/$TARGET_TRIPLET/libdb-5.3.so /usr/lib/
fi
if test $PHP_MAJMIN_VERSION -le 505; then
docker-php-source extract
patch /usr/src/php/ext/dba/config.m4 <<EOF
@@ -362,7 +362,7 @@
break
fi
done
- PHP_DBA_DB_CHECK(4, db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
+ PHP_DBA_DB_CHECK(4, db-5.3 db-5.1 db-5.0 db-4.8 db-4.7 db-4.6 db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)])
fi
PHP_DBA_STD_RESULT(db4,Berkeley DB4)
EOF
fi
docker-php-ext-configure dba --with-db4
;;
2018-04-11 15:39:10 +00:00
gd)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-vpx-dir
2020-07-27 12:30:14 +00:00
elif test $PHP_MAJMIN_VERSION -le 701; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --enable-gd-native-ttf --with-webp-dir
2020-07-27 12:30:14 +00:00
elif test $PHP_MAJMIN_VERSION -le 703; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
docker-php-ext-configure gd --with-gd --with-jpeg-dir --with-png-dir --with-zlib-dir --with-xpm-dir --with-freetype-dir --with-webp-dir
2019-12-06 16:12:05 +00:00
else
docker-php-ext-configure gd --enable-gd --with-webp --with-jpeg --with-xpm --with-freetype
2018-04-11 15:39:10 +00:00
fi
;;
gmp)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-01-31 15:35:43 +00:00
if ! test -f /usr/include/gmp.h; then
2020-12-14 15:52:00 +00:00
ln -s /usr/include/$TARGET_TRIPLET/gmp.h /usr/include/gmp.h
2020-01-31 15:35:43 +00:00
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/gmp.h"
fi
fi
2018-04-11 15:39:10 +00:00
;;
imap)
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2020-01-22 12:40:40 +00:00
debian@9)
installBundledModule_tmp="$(pwd)"
cd /tmp
apt-get download libc-client2007e-dev
dpkg -i --ignore-depends=libssl-dev libc-client2007e-dev*
rm libc-client2007e-dev*
cd "$installBundledModule_tmp"
;;
esac
2019-10-10 10:19:40 +00:00
PHP_OPENSSL=yes docker-php-ext-configure imap --with-kerberos --with-imap-ssl
2018-04-11 15:39:10 +00:00
;;
2019-12-20 15:52:00 +00:00
interbase | pdo_firebird)
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2019-12-11 10:40:13 +00:00
alpine)
if ! test -d /tmp/src/firebird; then
mv "$(getPackageSource https://github.com/FirebirdSQL/firebird/releases/download/R2_5_9/Firebird-2.5.9.27139-0.tar.bz2)" /tmp/src/firebird
cd /tmp/src/firebird
#Patch rwlock.h (this has been fixed in later release of firebird 3.x)
2019-12-19 09:37:03 +00:00
sed -i '194s/.*/#if 0/' src/common/classes/rwlock.h
2019-12-11 10:40:13 +00:00
./configure --with-system-icu
2019-12-11 12:57:45 +00:00
# -j option can't be used: make targets must be compiled sequentially
2019-12-11 11:57:53 +00:00
make -s btyacc_binary gpre_boot libfbstatic libfbclient
2019-12-11 10:40:13 +00:00
cp gen/firebird/lib/libfbclient.so /usr/lib/
ln -s /usr/lib/libfbclient.so /usr/lib/libfbclient.so.2
2019-12-24 08:19:56 +00:00
cd - >/dev/null
2019-12-11 10:40:13 +00:00
fi
2020-07-27 12:30:14 +00:00
CFLAGS='-I/tmp/src/firebird/src/jrd -I/tmp/src/firebird/src/include -I/tmp/src/firebird/src/include/gen' docker-php-ext-configure $1
2019-12-11 10:40:13 +00:00
;;
esac
;;
2018-04-11 15:39:10 +00:00
ldap)
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2019-12-23 08:45:57 +00:00
debian)
2020-12-14 15:43:43 +00:00
docker-php-ext-configure ldap --with-libdir=lib/$TARGET_TRIPLET
2019-12-23 08:45:57 +00:00
;;
esac
2018-04-11 15:39:10 +00:00
;;
2019-12-20 15:52:00 +00:00
mssql | pdo_dblib)
2020-12-09 08:41:56 +00:00
if ! test -f /usr/lib/libsybdb.so; then
2020-12-14 15:52:00 +00:00
ln -s /usr/lib/$TARGET_TRIPLET/libsybdb.so /usr/lib/libsybdb.so
2020-12-09 08:41:56 +00:00
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/lib/libsybdb.so"
2020-02-03 07:26:38 +00:00
fi
2018-04-11 15:39:10 +00:00
;;
odbc)
2020-12-09 09:56:20 +00:00
docker-php-source extract
cd /usr/src/php/ext/odbc
phpize
sed -ri 's@^ *test +"\$PHP_.*" *= *"no" *&& *PHP_.*=yes *$@#&@g' configure
./configure --with-unixODBC=shared,/usr
cd - >/dev/null
2018-04-11 15:39:10 +00:00
;;
2020-12-28 09:51:30 +00:00
oci8 | pdo_oci)
2020-12-11 14:04:08 +00:00
installOracleInstantClient
2020-12-28 09:51:30 +00:00
if test "$1" = oci8; then
docker-php-ext-configure "$1" "--with-oci8=instantclient,$ORACLE_INSTANTCLIENT_LIBPATH"
elif test "$1" = pdo_oci; then
docker-php-ext-configure "$1" "--with-pdo-oci=instantclient,$ORACLE_INSTANTCLIENT_LIBPATH"
fi
2020-12-11 14:04:08 +00:00
;;
2018-04-11 15:39:10 +00:00
pdo_odbc)
docker-php-ext-configure pdo_odbc --with-pdo-odbc=unixODBC,/usr
;;
2019-12-11 14:38:27 +00:00
snmp)
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2019-12-11 14:38:27 +00:00
alpine)
mkdir -p -m 0755 /var/lib/net-snmp/mib_indexes
;;
esac
;;
2018-04-11 15:39:10 +00:00
sybase_ct)
docker-php-ext-configure sybase_ct --with-sybase-ct=/usr
;;
2019-12-11 14:58:47 +00:00
tidy)
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2019-12-11 14:58:47 +00:00
alpine)
if ! test -f /usr/include/buffio.h; then
ln -s /usr/include/tidybuffio.h /usr/include/buffio.h
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/buffio.h"
fi
;;
esac
;;
2019-07-31 13:13:18 +00:00
zip)
2020-07-27 12:30:14 +00:00
if test $PHP_MAJMIN_VERSION -le 505; then
2020-01-31 15:35:43 +00:00
docker-php-ext-configure zip
2020-07-27 12:30:14 +00:00
elif test $PHP_MAJMIN_VERSION -le 703; then
2019-12-06 16:12:05 +00:00
docker-php-ext-configure zip --with-libzip
else
docker-php-ext-configure zip --with-zip
fi
2019-07-31 13:13:18 +00:00
;;
2018-04-11 15:39:10 +00:00
esac
2020-11-03 14:37:47 +00:00
docker-php-ext-install -j$(getProcessorCount) "$1"
2020-07-27 12:30:14 +00:00
case "$1" in
2020-01-22 12:40:40 +00:00
imap)
2020-02-28 10:09:15 +00:00
case "$DISTRO_VERSION" in
2020-01-22 12:40:40 +00:00
debian@9)
dpkg -r libc-client2007e-dev
;;
esac
;;
esac
2018-04-11 15:39:10 +00:00
}
# Fetch a tar.gz file, extract it and returns the path of the extracted folder.
#
# Arguments:
# $1: the URL of the file to be downloaded
#
# Output:
# The path of the extracted directory
2019-12-20 15:52:00 +00:00
getPackageSource() {
2018-04-11 15:39:10 +00:00
mkdir -p /tmp/src
getPackageSource_tempFile=$(mktemp -p /tmp/src)
2020-12-11 14:08:05 +00:00
curl -sSLf -o "$getPackageSource_tempFile" "$1"
2018-04-11 15:39:10 +00:00
getPackageSource_tempDir=$(mktemp -p /tmp/src -d)
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
cd "$getPackageSource_tempDir"
2020-12-14 13:19:14 +00:00
tar -xzf "$getPackageSource_tempFile" 2>/dev/null || tar -xf "$getPackageSource_tempFile" 2>/dev/null || (
if command -v bsdtar >/dev/null; then
bsdtar -xf "$getPackageSource_tempFile"
else
unzip -q "$getPackageSource_tempFile"
fi
)
2018-04-11 15:39:10 +00:00
cd - >/dev/null
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
unlink "$getPackageSource_tempFile"
2018-04-11 15:39:10 +00:00
getPackageSource_outDir=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
for getPackageSource_i in $(ls "$getPackageSource_tempDir"); do
if test -n "$getPackageSource_outDir" || test -f "$getPackageSource_tempDir/$getPackageSource_i"; then
2018-04-11 15:39:10 +00:00
getPackageSource_outDir=''
break
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
getPackageSource_outDir="$getPackageSource_tempDir/$getPackageSource_i"
2018-04-11 15:39:10 +00:00
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if test -n "$getPackageSource_outDir"; then
printf '%s' "$getPackageSource_outDir"
2018-04-11 15:39:10 +00:00
else
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
printf '%s' "$getPackageSource_tempDir"
2018-04-11 15:39:10 +00:00
fi
}
2020-12-17 09:16:03 +00:00
# Install a PECL/remote PHP module given its handle
2018-04-11 15:39:10 +00:00
#
# Arguments:
2020-07-27 10:19:04 +00:00
# $1: the handle of the PHP module
2020-12-17 09:16:03 +00:00
installRemoteModule() {
installRemoteModule_module="$1"
printf '### INSTALLING REMOTE MODULE %s ###\n' "$installRemoteModule_module"
installRemoteModule_version="$(getWantedPHPModuleVersion "$installRemoteModule_module")"
2020-10-18 19:35:09 +00:00
rm -rf "$CONFIGURE_FILE"
2020-12-17 09:16:03 +00:00
installRemoteModule_manuallyInstalled=0
installRemoteModule_cppflags=''
case "$installRemoteModule_module" in
2019-12-20 14:01:47 +00:00
amqp)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
2020-12-22 18:10:28 +00:00
if test $PHP_MAJMIN_VERSION -ge 800; then
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=df1241852b359cf12c346beaa68de202257efdf1
fi
installRemoteModule_src="$(getPackageSource https://codeload.github.com/php-amqp/php-amqp/tar.gz/$installRemoteModule_version)"
cd -- "$installRemoteModule_src"
phpize
./configure
make -j$(getProcessorCount)
make install
installRemoteModule_manuallyInstalled=1
elif test "$DISTRO_VERSION" = debian@8; then
2020-12-17 07:48:56 +00:00
# in Debian Jessie we have librammitmq version 0.5.2
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.9.3
2020-12-17 07:48:56 +00:00
elif test $PHP_MAJMIN_VERSION -le 505; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.9.4
2020-12-17 07:48:56 +00:00
fi
fi
2019-12-20 14:01:47 +00:00
;;
2019-10-10 09:51:13 +00:00
apcu)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=4.0.11
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-10-10 09:51:13 +00:00
fi
;;
2020-12-17 08:27:44 +00:00
cmark)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
2020-12-17 08:27:44 +00:00
if test $PHP_MAJMIN_VERSION -le 701; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.1.0
2020-12-17 08:27:44 +00:00
fi
fi
if ! test -e /usr/local/lib/libcmark.so && ! test -e /usr/lib/libcmark.so && ! test -e /usr/lib64/libcmark.so && ! test -e /lib/libcmark.so; then
cd "$(getPackageSource https://github.com/commonmark/cmark/archive/0.29.0.tar.gz)"
make -s -j$(getProcessorCount) cmake_build
make -s -j$(getProcessorCount) install
cd - >/dev/null
ldconfig || true
fi
;;
2020-02-04 08:54:02 +00:00
decimal)
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2020-02-04 08:54:02 +00:00
alpine)
2020-12-17 09:16:03 +00:00
installRemoteModule_src="$(getPackageSource https://codeload.github.com/bematech/libmpdec/tar.gz/master)"
cd -- "$installRemoteModule_src"
2020-02-04 08:54:02 +00:00
./configure CFLAGS='-w'
2020-11-03 14:37:47 +00:00
make -j$(getProcessorCount)
2020-02-04 08:54:02 +00:00
make install
cd - >/dev/null
;;
esac
;;
2021-01-17 13:43:09 +00:00
gearman)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=1.1.2
fi
fi
case "$DISTRO" in
alpine)
if ! test -e /usr/local/include/libgearman/gearman.h || ! test -e /usr/local/lib/libgearman.so; then
installRemoteModule_src="$(getPackageSource https://github.com/gearman/gearmand/releases/download/1.1.19.1/gearmand-1.1.19.1.tar.gz)"
cd -- "$installRemoteModule_src"
./configure
make -j$(getProcessorCount) install-binPROGRAMS
make -j$(getProcessorCount) install-nobase_includeHEADERS
cd - >/dev/null
fi
;;
esac
;;
2020-01-07 10:24:42 +00:00
gmagick)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.1.7RC3
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_version=beta
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-01-07 10:24:42 +00:00
fi
;;
2020-12-03 16:04:54 +00:00
grpc)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
2020-12-03 16:04:54 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.33.1
2020-12-03 16:04:54 +00:00
fi
fi
2021-01-26 08:53:18 +00:00
if test -z "$installRemoteModule_version" || test "$installRemoteModule_version" = 1.35.0; then
case "$DISTRO_VERSION" in
alpine@3.13)
installRemoteModule_cppflags='-Wno-maybe-uninitialized'
;;
esac
fi
2020-12-03 16:04:54 +00:00
;;
2019-12-24 11:53:48 +00:00
http)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.6.0
2021-01-17 14:48:53 +00:00
elif test $PHP_MAJMIN_VERSION -le 704; then
installRemoteModule_version=3.2.4
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
fi
if test $PHP_MAJMIN_VERSION -ge 700; then
2019-12-24 11:53:48 +00:00
if ! test -e /usr/local/lib/libidnkit.so; then
2020-12-17 09:16:03 +00:00
installRemoteModule_src="$(getPackageSource https://jprs.co.jp/idn/idnkit-2.3.tar.bz2)"
cd -- "$installRemoteModule_src"
2019-12-24 11:53:48 +00:00
./configure
2020-11-03 14:37:47 +00:00
make -j$(getProcessorCount) install
2019-12-24 11:53:48 +00:00
cd - >/dev/null
fi
fi
;;
2020-06-15 15:17:15 +00:00
igbinary)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.0.8
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-06-15 15:17:15 +00:00
fi
;;
2020-12-17 15:56:23 +00:00
imagick)
if test $PHP_MAJMIN_VERSION -ge 800; then
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=132a11fd26675db9eb9f0e9a3e2887c161875206
fi
if test "${installRemoteModule_version%.*}" = "$installRemoteModule_version"; then
installRemoteModule_displayVersion="$installRemoteModule_version"
else
installRemoteModule_displayVersion="git--master-$installRemoteModule_version"
fi
installRemoteModule_src="$(getPackageSource https://codeload.github.com/Imagick/imagick/tar.gz/$installRemoteModule_version)"
cd -- "$installRemoteModule_src"
sed -Ei "s/^([ \t]*#define[ \t]+PHP_IMAGICK_VERSION[ \t]+\")@PACKAGE_VERSION@(\")/\1git--master-$installRemoteModule_displayVersion\2/" php_imagick.h
phpize
./configure
make -j$(getProcessorCount)
make install
installRemoteModule_manuallyInstalled=1
fi
;;
2020-12-10 13:56:31 +00:00
ioncube_loader)
2020-12-17 09:16:03 +00:00
installRemoteModule_src='https://downloads.ioncube.com/loader_downloads/'
2020-12-10 13:56:31 +00:00
if test $(php -r 'echo PHP_INT_SIZE;') -eq 4; then
2020-12-17 09:16:03 +00:00
installRemoteModule_src="${installRemoteModule_src}ioncube_loaders_lin_x86.tar.gz"
2020-12-10 13:56:31 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_src="${installRemoteModule_src}ioncube_loaders_lin_x86-64.tar.gz"
2020-12-10 13:56:31 +00:00
fi
printf 'Downloading ionCube Loader... '
2020-12-17 09:16:03 +00:00
installRemoteModule_src="$(getPackageSource $installRemoteModule_src)"
2020-12-10 13:56:31 +00:00
echo 'done.'
2020-12-17 09:16:03 +00:00
installRemoteModule_so=$(php -r "printf('ioncube_loader_lin_%s.%s%s.so', PHP_MAJOR_VERSION, PHP_MINOR_VERSION, ZEND_THREAD_SAFE ? '_ts' : '');")
cp "$installRemoteModule_src/$installRemoteModule_so" "$(getPHPExtensionsDir)/$installRemoteModule_module.so"
installRemoteModule_manuallyInstalled=1
2020-12-10 13:56:31 +00:00
;;
2021-01-03 13:39:54 +00:00
mailparse)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2021-01-03 13:39:54 +00:00
installRemoteModule_version=2.1.6
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-12-19 16:07:13 +00:00
fi
;;
2021-01-03 13:39:54 +00:00
memcache)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2021-01-03 13:39:54 +00:00
installRemoteModule_version=2.2.7
elif test $PHP_MAJMIN_VERSION -lt 800; then
installRemoteModule_version=4.0.5.2
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-12-23 16:38:09 +00:00
fi
;;
2018-04-11 15:39:10 +00:00
memcached)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.2.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
fi
2020-10-18 19:35:09 +00:00
# Set the path to libmemcached install prefix
addConfigureOption 'with-libmemcached-dir' 'no'
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '3.0.0') -ge 0; then
2020-10-18 19:35:09 +00:00
# Set the path to ZLIB install prefix
addConfigureOption 'with-zlib-dir' 'no'
# Use system FastLZ library
addConfigureOption 'with-system-fastlz' 'no'
# Enable memcached igbinary serializer support
if php --ri igbinary >/dev/null 2>/dev/null; then
addConfigureOption 'enable-memcached-igbinary' 'yes'
else
addConfigureOption 'enable-memcached-igbinary' 'no'
fi
# Enable memcached msgpack serializer support
if php --ri msgpack >/dev/null 2>/dev/null; then
addConfigureOption 'enable-memcached-msgpack' 'yes'
else
addConfigureOption 'enable-memcached-msgpack' 'no'
fi
# Enable memcached json serializer support
addConfigureOption 'enable-memcached-json' 'yes'
# Enable memcached protocol support
addConfigureOption 'enable-memcached-protocol' 'no' # https://github.com/php-memcached-dev/php-memcached/issues/418#issuecomment-449587972
# Enable memcached sasl support
addConfigureOption 'enable-memcached-sasl' 'yes'
# Enable memcached session handler support
addConfigureOption 'enable-memcached-session' 'yes'
2018-04-11 15:39:10 +00:00
fi
;;
2019-12-12 11:41:49 +00:00
mongo)
2021-01-13 08:53:34 +00:00
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '1.5.0') -ge 0; then
# Build with Cyrus SASL (MongoDB Enterprise Authentication) support?
addConfigureOption '-with-mongo-sasl' 'yes'
fi
2019-12-12 11:41:49 +00:00
;;
2020-02-03 07:26:38 +00:00
mongodb)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 505; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.5.5
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.7.5
2020-12-07 12:23:32 +00:00
elif test $PHP_MAJMIN_VERSION -le 800; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.9.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-02-03 07:26:38 +00:00
fi
;;
2020-11-25 20:52:49 +00:00
mosquitto)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=0.4.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-11-25 20:52:49 +00:00
;;
2019-10-11 13:22:43 +00:00
msgpack)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.5.7
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-10-11 13:22:43 +00:00
fi
;;
2020-02-16 17:28:30 +00:00
oauth)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.2.3
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-02-16 17:28:30 +00:00
fi
;;
2019-12-17 08:34:54 +00:00
opencensus)
2020-07-27 10:19:04 +00:00
if test $PHP_MAJMIN_VERSION -le 702; then
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
installRemoteModule_version=alpha
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-12-17 10:14:04 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_manuallyInstalled=1
if test -z "$installRemoteModule_version"; then
installRemoteModule_src="$(getPackageSource https://pecl.php.net/get/opencensus)"
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_src="$(getPackageSource https://pecl.php.net/get/opencensus-$installRemoteModule_version)"
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-12-17 09:16:03 +00:00
cd "$installRemoteModule_src"/opencensus-*
2019-12-17 10:14:04 +00:00
find . -name '*.c' -type f -exec sed -i 's/\bZVAL_DESTRUCTOR\b/zval_dtor/g' {} +
phpize
./configure
make install
2019-12-24 08:19:56 +00:00
cd - >/dev/null
2019-12-17 10:14:04 +00:00
fi
2019-12-17 08:34:54 +00:00
;;
2019-10-11 06:12:46 +00:00
parallel)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 701; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.8.3
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-10-11 06:12:46 +00:00
fi
;;
2019-08-21 10:44:24 +00:00
pcov)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 701; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.9.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-08-21 10:44:24 +00:00
fi
;;
2019-10-07 16:27:02 +00:00
pdo_sqlsrv | sqlsrv)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
# https://docs.microsoft.com/it-it/sql/connect/php/system-requirements-for-the-php-sql-driver?view=sql-server-2017
2021-01-16 20:01:03 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=3.0.1
elif test $PHP_MAJMIN_VERSION -le 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=5.3.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 701; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=5.6.1
2021-01-16 20:01:03 +00:00
elif test $PHP_MAJMIN_VERSION -le 702; then
installRemoteModule_version=5.8.1
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-10-07 16:27:02 +00:00
fi
2021-01-20 09:53:51 +00:00
if ! isMicrosoftSqlServerODBCInstalled; then
installMicrosoftSqlServerODBC
fi
2019-10-07 16:27:02 +00:00
;;
2019-12-24 09:33:31 +00:00
propro)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.0.2
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-12-24 09:33:31 +00:00
fi
;;
2020-08-18 08:02:00 +00:00
protobuf)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=3.12.4
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_version=3.13.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-08-18 08:02:00 +00:00
fi
;;
2018-04-11 15:39:10 +00:00
pthreads)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.0.10
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2018-04-11 15:39:10 +00:00
fi
2019-12-18 14:13:56 +00:00
;;
2019-12-24 09:20:45 +00:00
raphf)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.1.2
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-12-24 09:20:45 +00:00
fi
;;
2019-12-18 14:13:56 +00:00
rdkafka)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
2021-01-14 13:19:34 +00:00
installRemoteModule_version1=''
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 505; then
2021-01-14 13:19:34 +00:00
installRemoteModule_version1=3.0.5
elif test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version1=4.1.2
fi
installRemoteModule_version2=''
case "$DISTRO" in
alpine)
installRemoteModule_tmp='librdkafka'
;;
debian)
installRemoteModule_tmp='librdkafka*'
;;
esac
if test -n "$installRemoteModule_tmp"; then
installRemoteModule_tmp="$(getInstalledPackageVersion "$installRemoteModule_tmp")"
if test -n "$installRemoteModule_tmp" && test $(compareVersions "$installRemoteModule_tmp" '0.11.0') -lt 0; then
installRemoteModule_version2=3.1.3
2019-12-19 09:14:38 +00:00
fi
fi
2021-01-14 13:19:34 +00:00
if test -z "$installRemoteModule_version1" || test -z "$installRemoteModule_version2"; then
installRemoteModule_version="$installRemoteModule_version1$installRemoteModule_version2"
elif test $(compareVersions "$installRemoteModule_version1" "$installRemoteModule_version2") -le 0; then
installRemoteModule_version="$installRemoteModule_version1"
else
installRemoteModule_version="$installRemoteModule_version2"
fi
2019-12-19 09:14:38 +00:00
fi
2018-04-11 15:39:10 +00:00
;;
2019-10-10 15:00:42 +00:00
redis)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=4.3.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
fi
2020-12-02 17:21:43 +00:00
# Enable igbinary serializer support?
if php --ri igbinary >/dev/null 2>/dev/null; then
addConfigureOption 'enable-redis-igbinary' 'yes'
2019-12-23 17:09:22 +00:00
else
2020-12-02 17:21:43 +00:00
addConfigureOption 'enable-redis-igbinary' 'no'
fi
# Enable lzf compression support?
addConfigureOption 'enable-redis-lzf' 'yes'
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" '5.0.0') -ge 0; then
2020-12-14 15:43:43 +00:00
if ! test -e /usr/include/zstd.h || ! test -e /usr/lib/libzstd.so -o -e "/usr/lib/$TARGET_TRIPLET/libzstd.so"; then
2020-12-17 09:16:03 +00:00
installRemoteModule_zstdVersion=1.4.4
installRemoteModule_zstdVersionMajor=$(echo $installRemoteModule_zstdVersion | cut -d. -f1)
2020-12-02 17:21:43 +00:00
rm -rf /tmp/src/zstd
2021-01-16 09:50:35 +00:00
mv "$(getPackageSource https://github.com/facebook/zstd/releases/download/v$installRemoteModule_zstdVersion/zstd-$installRemoteModule_zstdVersion.tar.gz)" /tmp/src/zstd
2020-12-02 17:21:43 +00:00
cd /tmp/src/zstd
make V=0 -j$(getProcessorCount) lib
2020-12-17 09:16:03 +00:00
cp -f lib/libzstd.so "/usr/lib/$TARGET_TRIPLET/libzstd.so.$installRemoteModule_zstdVersion"
ln -sf "/usr/lib/$TARGET_TRIPLET/libzstd.so.$installRemoteModule_zstdVersion" "/usr/lib/$TARGET_TRIPLET/libzstd.so.$installRemoteModule_zstdVersionMajor"
ln -sf "/usr/lib/$TARGET_TRIPLET/libzstd.so.$installRemoteModule_zstdVersion" "/usr/lib/$TARGET_TRIPLET/libzstd.so"
2020-12-02 17:21:43 +00:00
ln -sf /tmp/src/zstd/lib/zstd.h /usr/include/zstd.h
UNNEEDED_PACKAGE_LINKS="$UNNEEDED_PACKAGE_LINKS /usr/include/zstd.h"
cd - >/dev/null
2020-09-21 13:06:43 +00:00
fi
2020-12-02 17:21:43 +00:00
# Enable zstd compression support?
addConfigureOption 'enable-redis-zstd' 'yes'
2019-10-10 15:00:42 +00:00
fi
;;
2020-12-17 09:02:43 +00:00
snuffleupagus)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
2021-01-02 19:32:28 +00:00
installRemoteModule_version=0.7.0
2020-12-17 09:02:43 +00:00
fi
2020-12-30 14:31:36 +00:00
installRemoteModule_src="$(getPackageSource https://codeload.github.com/jvoisin/snuffleupagus/tar.gz/v$installRemoteModule_version)"
2020-12-17 09:16:03 +00:00
cd "$installRemoteModule_src/src"
2020-12-17 09:02:43 +00:00
phpize
./configure --enable-snuffleupagus
make -j$(getProcessorCount) install
cd - >/dev/null
2020-12-17 09:16:03 +00:00
cp -a "$installRemoteModule_src/config/default.rules" "$PHP_INI_DIR/conf.d/snuffleupagus.rules"
installRemoteModule_manuallyInstalled=1
2020-12-17 09:02:43 +00:00
;;
2019-10-10 15:16:58 +00:00
solr)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.4.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2019-10-10 15:16:58 +00:00
fi
;;
2018-04-11 15:39:10 +00:00
ssh2)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.13
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.2
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2018-04-11 15:39:10 +00:00
fi
;;
2020-12-11 18:16:46 +00:00
swoole)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
2020-12-11 18:16:46 +00:00
if test $PHP_MAJMIN_VERSION -le 502; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.6.10
2020-12-11 18:16:46 +00:00
elif test $PHP_MAJMIN_VERSION -le 504; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.0.4
2020-12-11 18:16:46 +00:00
elif test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.0.11
2020-12-11 18:16:46 +00:00
elif test $PHP_MAJMIN_VERSION -le 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=4.3.6
2021-01-10 12:31:36 +00:00
elif test $PHP_MAJMIN_VERSION -le 701; then
installRemoteModule_version=4.5.10
2020-12-11 18:16:46 +00:00
fi
fi
if php --ri sockets >/dev/null 2>/dev/null; then
2020-12-17 09:16:03 +00:00
installRemoteModule_sockets=yes
2020-12-11 18:16:46 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule_sockets=no
2020-12-11 18:16:46 +00:00
fi
case "$DISTRO_VERSION" in
alpine@3.7 | alpine@3.8)
# I can assure you I tried very hard to enable openssl in these Alpine versions...
2020-12-17 09:16:03 +00:00
installRemoteModule_openssl=no
2020-12-11 18:16:46 +00:00
;;
*)
2020-12-17 09:16:03 +00:00
installRemoteModule_openssl=yes
2020-12-11 18:16:46 +00:00
;;
esac
2021-01-13 08:53:34 +00:00
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 4.6.1) -ge 0; then
# enable sockets supports?
addConfigureOption enable-sockets $installRemoteModule_sockets
# enable openssl support?
addConfigureOption enable-openssl $installRemoteModule_openssl
# enable http2 support?
addConfigureOption enable-http2 yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable json support?
addConfigureOption enable-swoole-json yes
# enable curl support?
if test $PHP_MAJMINPAT_VERSION -ne 80000; then
addConfigureOption enable-swoole-curl yes
else
# https://github.com/swoole/swoole-src/issues/3977#issuecomment-754755521
addConfigureOption enable-swoole-curl no
fi
elif test $(compareVersions "$installRemoteModule_version" 4.4.0) -ge 0; then
2020-12-11 18:16:46 +00:00
# enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
2020-12-17 09:16:03 +00:00
elif test $(compareVersions "$installRemoteModule_version" 4.2.11) -ge 0; then
2020-12-11 18:16:46 +00:00
#enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable postgresql coroutine client support?
addConfigureOption enable-coroutine-postgresql yes
2020-12-17 09:16:03 +00:00
elif test $(compareVersions "$installRemoteModule_version" 4.2.7) -ge 0; then
2020-12-11 18:16:46 +00:00
#enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable postgresql coroutine client support?
addConfigureOption enable-coroutine-postgresql yes
# enable kernel debug/trace log? (it will degrade performance)
addConfigureOption enable-debug-log no
2020-12-17 09:16:03 +00:00
elif test $(compareVersions "$installRemoteModule_version" 4.2.6) -ge 0; then
2020-12-11 18:16:46 +00:00
# enable debug/trace log support?
addConfigureOption enable-debug-log no
#enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable postgresql coroutine client support?
addConfigureOption enable-coroutine-postgresql yes
2020-12-17 09:16:03 +00:00
elif test $(compareVersions "$installRemoteModule_version" 4.2.0) -ge 0; then
2020-12-11 18:16:46 +00:00
# enable debug/trace log support?
addConfigureOption enable-debug-log no
#enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable async-redis support?
addConfigureOption enable-async-redis yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable postgresql coroutine client support?
addConfigureOption enable-coroutine-postgresql yes
2020-12-17 09:16:03 +00:00
elif test $(compareVersions "$installRemoteModule_version" 2.1.2) -ge 0; then
2020-12-11 18:16:46 +00:00
# enable debug/trace log support?
addConfigureOption enable-swoole-debug no
#enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable async-redis support?
addConfigureOption enable-async-redis yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
# enable postgresql coroutine client support?
addConfigureOption enable-coroutine-postgresql yes
2020-12-17 09:16:03 +00:00
elif test $(compareVersions "$installRemoteModule_version" 1.10.4) -ge 0 && test $(compareVersions "$installRemoteModule_version" 1.10.5) -le 0; then
2020-12-11 18:16:46 +00:00
# enable debug/trace log support?
addConfigureOption enable-swoole-debug no
#enable sockets supports?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-sockets $installRemoteModule_sockets
2020-12-11 18:16:46 +00:00
# enable openssl support?
2020-12-17 09:16:03 +00:00
addConfigureOption enable-openssl $installRemoteModule_openssl
2020-12-11 18:16:46 +00:00
# enable http2 support?
addConfigureOption enable-http2 yes
# enable async-redis support?
addConfigureOption enable-async-redis yes
# enable mysqlnd support?
addConfigureOption enable-mysqlnd yes
fi
;;
2020-03-02 09:43:25 +00:00
tdlib)
if ! test -f /usr/lib/libphpcpp.so || ! test -f /usr/include/phpcpp.h; then
2020-03-03 11:09:28 +00:00
if test $PHP_MAJMIN_VERSION -le 701; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/v2.1.4)"
elif test $PHP_MAJMIN_VERSION -le 703; then
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/v2.2.0)"
else
cd "$(getPackageSource https://codeload.github.com/CopernicaMarketingSoftware/PHP-CPP/tar.gz/444d1f90cf6b7f3cb5178fa0d0b5ab441b0389d0)"
fi
2020-11-03 14:37:47 +00:00
make -j$(getProcessorCount)
2020-03-02 09:43:25 +00:00
make install
cd - >/dev/null
fi
2020-12-17 09:16:03 +00:00
installRemoteModule_tmp="$(mktemp -p /tmp/src -d)"
git clone --depth=1 --recurse-submodules https://github.com/yaroslavche/phptdlib.git "$installRemoteModule_tmp"
mkdir "$installRemoteModule_tmp/build"
cd "$installRemoteModule_tmp/build"
2020-03-02 09:43:25 +00:00
cmake -D USE_SHARED_PHPCPP:BOOL=ON ..
make
make install
rm "$PHP_INI_DIR/conf.d/tdlib.ini"
2020-12-17 09:16:03 +00:00
installRemoteModule_manuallyInstalled=1
2020-03-02 09:43:25 +00:00
;;
2021-01-03 13:39:54 +00:00
uopz)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -lt 700; then
installRemoteModule_version=2.0.7
elif test $PHP_MAJMIN_VERSION -lt 701; then
installRemoteModule_version=5.0.2
fi
fi
;;
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
uuid)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.0.5
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
Continue implementing Alpine support
Test: cmark, tidy, uopz, uuid, wddx, xdebug, xmlrpc, xsl, yaml, zip, -STOP-
2019-12-11 16:11:55 +00:00
fi
;;
2018-04-11 15:39:10 +00:00
xdebug)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 500; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.0.5
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 503; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.2.7
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 504; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.4.1
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.5.5
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.6.1
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -le 701; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.9.8
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
fi
2018-04-11 15:39:10 +00:00
;;
2020-04-30 07:02:29 +00:00
xhprof)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -le 506; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.9.4
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-04-30 07:02:29 +00:00
fi
;;
2021-01-02 19:53:03 +00:00
xlswriter)
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 1.2.7) -ge 0; then
# enable reader supports?
addConfigureOption enable-reader yes
fi
;;
2018-04-11 15:39:10 +00:00
yaml)
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=1.3.1
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -lt 701; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=2.0.4
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2018-04-11 15:39:10 +00:00
fi
;;
2021-01-05 14:16:27 +00:00
yar)
if test -z "$installRemoteModule_version"; then
if test $PHP_MAJMIN_VERSION -le 506; then
installRemoteModule_version=1.2.5
fi
fi
if test -z "$installRemoteModule_version" || test $(compareVersions "$installRemoteModule_version" 1.2.4) -ge 0; then
# Enable Msgpack Supports
if php --ri msgpack >/dev/null 2>/dev/null; then
addConfigureOption enable-msgpack yes
else
addConfigureOption enable-msgpack no
fi
fi
;;
2020-07-27 14:50:21 +00:00
zookeeper)
case "$DISTRO" in
alpine)
if ! test -f /usr/local/include/zookeeper/zookeeper.h; then
2020-12-17 09:16:03 +00:00
installRemoteModule_tmp="$(curl -sSLf https://downloads.apache.org/zookeeper/stable | sed -E 's/["<>]/\n/g' | grep -E '^(apache-)?zookeeper-[0-9]+\.[0-9]+\.[0-9]+\.(tar\.gz|tgz)$' | head -n1)"
if test -z "$installRemoteModule_tmp"; then
2020-12-07 15:25:42 +00:00
echo 'Failed to detect the zookeeper library URL' >&2
exit 1
fi
2020-12-17 09:16:03 +00:00
installRemoteModule_src="$(getPackageSource https://downloads.apache.org/zookeeper/stable/$installRemoteModule_tmp)"
cd -- "$installRemoteModule_src"
2020-12-07 15:25:42 +00:00
ant compile_jute
cd - >/dev/null
2020-12-17 09:16:03 +00:00
cd -- "$installRemoteModule_src/zookeeper-client/zookeeper-client-c"
2020-12-07 15:25:42 +00:00
autoreconf -if
2020-07-27 14:50:21 +00:00
./configure --without-cppunit
2020-11-03 14:37:47 +00:00
make -j$(getProcessorCount) CFLAGS='-Wno-stringop-truncation -Wno-format-overflow'
2020-07-27 14:50:21 +00:00
make install
cd - >/dev/null
fi
;;
esac
2020-12-17 09:16:03 +00:00
if test -z "$installRemoteModule_version"; then
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
if test $PHP_MAJMIN_VERSION -lt 700; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.5.0
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
elif test $PHP_MAJMIN_VERSION -gt 702; then
2020-12-17 09:16:03 +00:00
installRemoteModule_version=0.7.2
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
fi
2020-07-27 14:50:21 +00:00
fi
;;
2018-04-11 15:39:10 +00:00
esac
2020-12-17 09:16:03 +00:00
if test $installRemoteModule_manuallyInstalled -eq 0; then
if test -n "$installRemoteModule_version"; then
printf ' (installing version %s)\n' "$installRemoteModule_version"
2019-12-17 10:14:04 +00:00
fi
2020-12-17 09:16:03 +00:00
installPeclPackage "$installRemoteModule_module" "$installRemoteModule_version" "$installRemoteModule_cppflags"
2018-04-11 15:39:10 +00:00
fi
2020-12-17 09:16:03 +00:00
case "$installRemoteModule_module" in
2020-05-24 16:40:31 +00:00
apcu_bc)
# apcu_bc must be loaded after apcu
2020-12-17 09:16:03 +00:00
docker-php-ext-enable --ini-name "xx-php-ext-$installRemoteModule_module.ini" apc
2020-05-24 16:40:31 +00:00
;;
2020-12-10 13:56:31 +00:00
ioncube_loader)
# On PHP 5.5, docker-php-ext-enable fails to detect that ionCube Loader is a Zend Extension
if test $PHP_MAJMIN_VERSION -le 505; then
2020-12-17 09:16:03 +00:00
printf 'zend_extension=%s/%s.so\n' "$(getPHPExtensionsDir)" "$installRemoteModule_module" >"$PHP_INI_DIR/conf.d/docker-php-ext-$installRemoteModule_module.ini"
2020-12-10 13:56:31 +00:00
else
2020-12-17 09:16:03 +00:00
docker-php-ext-enable "$installRemoteModule_module"
2020-12-10 13:56:31 +00:00
fi
;;
2021-01-26 14:16:04 +00:00
http | memcached)
# http must be loaded after raphf and propro, memcached must be loaded after msgpack
2020-12-17 09:16:03 +00:00
docker-php-ext-enable --ini-name "xx-php-ext-$installRemoteModule_module.ini" "$installRemoteModule_module"
2019-12-24 11:53:48 +00:00
;;
2020-12-17 09:02:43 +00:00
snuffleupagus)
2020-12-17 09:16:03 +00:00
docker-php-ext-enable "$installRemoteModule_module"
2020-12-17 09:02:43 +00:00
printf 'sp.configuration_file=%s\n' "$PHP_INI_DIR/conf.d/snuffleupagus.rules" >>"$PHP_INI_DIR/conf.d/docker-php-ext-snuffleupagus.ini"
;;
2019-12-24 11:53:48 +00:00
*)
2020-12-17 09:16:03 +00:00
docker-php-ext-enable "$installRemoteModule_module"
2019-12-24 11:53:48 +00:00
;;
esac
2018-04-11 15:39:10 +00:00
}
2020-10-18 19:35:09 +00:00
# Configure the PECL package installed
#
# Updates:
# PHP_MODULES_TO_INSTALL
# Sets:
# USE_PICKLE
configureInstaller() {
USE_PICKLE=0
2020-09-18 11:05:53 +00:00
for PHP_MODULE_TO_INSTALL in $PHP_MODULES_TO_INSTALL; do
2020-12-16 10:34:30 +00:00
if test "${PHP_MODULE_TO_INSTALL#@}" != "$PHP_MODULE_TO_INSTALL"; then
continue
fi
2020-12-22 18:10:28 +00:00
if test "$PHP_MODULE_TO_INSTALL" = 'amqp' && test $PHP_MAJMIN_VERSION -ge 800; then
continue
fi
2020-12-17 15:56:23 +00:00
if test "$PHP_MODULE_TO_INSTALL" = 'imagick' && test $PHP_MAJMIN_VERSION -ge 800; then
continue
fi
2020-09-18 11:05:53 +00:00
if ! stringInList "$PHP_MODULE_TO_INSTALL" "$BUNDLED_MODULES"; then
if test $PHP_MAJMIN_VERSION -lt 800; then
pecl channel-update pecl.php.net || true
return
fi
2021-01-25 17:21:19 +00:00
if false && anyStringInList '' "$PHP_MODULES_TO_INSTALL"; then
2020-12-16 09:04:45 +00:00
USE_PICKLE=2
else
curl -sSLf https://github.com/FriendsOfPHP/pickle/releases/latest/download/pickle.phar -o /tmp/pickle
chmod +x /tmp/pickle
USE_PICKLE=1
fi
2020-09-18 11:05:53 +00:00
return
fi
done
}
2020-12-16 09:04:45 +00:00
buildPickle() {
printf '### BUILDING PICKLE ###\n'
buildPickle_tempDir="$(mktemp -p /tmp/src -d)"
cd -- "$buildPickle_tempDir"
printf 'Downloading... '
git clone --quiet --depth 1 https://github.com/FriendsOfPHP/pickle.git .
git tag 0.7.0
printf 'done.\n'
printf 'Installing composer... '
curl -sSLf https://getcomposer.org/installer | php -- --quiet --install-dir=. --filename=composer --1
printf 'done.\n'
printf 'Installing composer dependencies... '
2021-01-14 14:29:26 +00:00
./composer install --no-dev --no-progress --no-suggest --optimize-autoloader --ignore-platform-reqs --quiet --no-cache
2020-12-16 09:04:45 +00:00
printf 'done.\n'
printf 'Building... '
php -d phar.readonly=0 box.phar build
mv pickle.phar /tmp/pickle
printf 'done.\n'
cd - >/dev/null
}
2020-10-18 19:35:09 +00:00
# Add a configure option for the pecl/pickle install command
#
# Arguments:
# $1: the option name
# $2: the option value
addConfigureOption() {
if test $USE_PICKLE -eq 0; then
printf -- '%s\n' "$2" >>"$CONFIGURE_FILE"
else
printf -- '--%s=%s\n' "$1" "$2" >>"$CONFIGURE_FILE"
fi
}
# Actually installs a PECL package
#
# Arguments:
# $1: the package to be installed
Let users install a specific PHP module version
Test: amqp,apcu,gmagick,http,pecl_http,igbinary,memcache,mailparse,memcached,mongodb,mosquitto,msgpack,oauth,opencensus,parallel,pcov,pdo_sqlsrv,sqlsrv,propro,protobuf,pthreads,raphf,rdkafka,redis,solr,ssh2,uuid,xdebug,uopz,xhprof,yaml
2020-12-02 17:19:24 +00:00
# $2: the package version to be installed (optional)
2020-12-11 18:16:46 +00:00
# $3: the value of the CPPFLAGS variable
2020-10-18 19:35:09 +00:00
installPeclPackage() {
if ! test -f "$CONFIGURE_FILE"; then
printf '\n' >"$CONFIGURE_FILE"
fi
2021-01-26 14:16:04 +00:00
installPeclPackage_name="$(getPeclModuleName "$1")"
2020-10-18 19:35:09 +00:00
if test $USE_PICKLE -eq 0; then
2020-12-16 09:04:45 +00:00
if test -z "${2:-}"; then
2021-01-26 14:16:04 +00:00
installPeclPackage_fullname="$installPeclPackage_name"
2020-12-16 09:04:45 +00:00
else
2021-01-26 14:16:04 +00:00
installPeclPackage_fullname="$installPeclPackage_name-$2"
2020-12-16 09:04:45 +00:00
fi
2020-12-11 18:16:46 +00:00
cat "$CONFIGURE_FILE" | MAKE="make -j$(getCompilationProcessorCount $1)" CPPFLAGS="${3:-}" pecl install "$installPeclPackage_fullname"
2020-10-18 19:35:09 +00:00
else
2020-12-16 09:04:45 +00:00
if test -z "${2:-}"; then
2021-01-26 14:16:04 +00:00
installPeclPackage_fullname="$installPeclPackage_name"
2020-12-16 09:04:45 +00:00
else
2021-01-26 14:16:04 +00:00
installPeclPackage_fullname="$installPeclPackage_name@$2"
2020-12-16 09:04:45 +00:00
fi
2021-01-25 17:21:19 +00:00
MAKE="make -j$(getCompilationProcessorCount $1)" CPPFLAGS="${3:-}" /tmp/pickle install --tmp-dir=/tmp/pickle.tmp --no-interaction --version-override='' --with-configure-options "$CONFIGURE_FILE" -- "$installPeclPackage_fullname"
2020-10-18 19:35:09 +00:00
fi
}
2018-04-11 15:39:10 +00:00
# Check if a string is in a list of space-separated string
#
# Arguments:
# $1: the string to be checked
# $2: the string list
#
# Return:
# 0 (true): if the string is in the list
# 1 (false): if the string is not in the list
2019-12-20 15:52:00 +00:00
stringInList() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
for stringInList_listItem in $2; do
if test "$1" = "$stringInList_listItem"; then
2018-04-11 15:39:10 +00:00
return 0
fi
done
return 1
}
2020-12-16 09:04:45 +00:00
# Check if at least one item in a list is in another list
#
# Arguments:
# $1: the space-separated list of items to be searched
# $2: the space-separated list of reference items
#
# Return:
# 0 (true): at least one of the items in $1 is in $2
# 1 (false): otherwise
anyStringInList() {
2020-12-16 12:13:35 +00:00
for anyStringInList_item in $1; do
if stringInList "$anyStringInList_item" "$2"; then
2020-12-16 09:04:45 +00:00
return 0
fi
done
return 1
}
2019-10-11 14:01:21 +00:00
# Remove a word from a space-separated list
#
# Arguments:
# $1: the word to be removed
# $2: the string list
#
# Output:
# The list without the word
2019-12-20 15:52:00 +00:00
removeStringFromList() {
2019-10-11 14:01:21 +00:00
removeStringFromList_result=''
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
for removeStringFromList_listItem in $2; do
if test "$1" != "$removeStringFromList_listItem"; then
2019-10-11 14:01:21 +00:00
if test -z "$removeStringFromList_result"; then
removeStringFromList_result="$removeStringFromList_listItem"
else
removeStringFromList_result="$removeStringFromList_result $removeStringFromList_listItem"
fi
fi
done
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
printf '%s' "$removeStringFromList_result"
}
# Cleanup everything at the end of the execution
2019-12-20 15:52:00 +00:00
cleanup() {
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
if test -n "$UNNEEDED_PACKAGE_LINKS"; then
printf '### REMOVING UNNEEDED PACKAGE LINKS ###\n'
for cleanup_link in $UNNEEDED_PACKAGE_LINKS; do
if test -L "$cleanup_link"; then
rm -f "$cleanup_link"
fi
done
fi
if test -n "$PACKAGES_VOLATILE"; then
printf '### REMOVING UNNEEDED PACKAGES ###\n'
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
alpine)
apk del --purge $PACKAGES_VOLATILE
;;
debian)
DEBIAN_FRONTEND=noninteractive apt-get remove --purge -y $PACKAGES_VOLATILE
;;
esac
fi
2020-01-23 13:50:55 +00:00
if test -n "$PACKAGES_PREVIOUS"; then
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
2020-01-23 13:50:55 +00:00
debian)
printf '### RESTORING PREVIOUSLY INSTALLED PACKAGES ###\n'
2020-02-15 19:37:40 +00:00
DEBIAN_FRONTEND=noninteractive apt-get install --no-upgrade -qqy $PACKAGES_PREVIOUS
2020-01-23 13:50:55 +00:00
;;
esac
fi
2020-02-28 10:09:15 +00:00
case "$DISTRO" in
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
alpine)
rm -rf /var/cache/apk/*
;;
debian)
rm -rf /var/lib/apt/lists/*
;;
esac
docker-php-source delete
rm -rf /tmp/pear
rm -rf /tmp/src
2020-09-18 11:05:53 +00:00
rm -rf /tmp/pickle
2020-10-18 19:35:09 +00:00
rm -rf /tmp/pickle.tmp
rm -rf "$CONFIGURE_FILE"
2019-10-11 14:01:21 +00:00
}
2018-04-11 15:39:10 +00:00
resetIFS
2019-12-23 07:55:33 +00:00
mkdir -p /tmp/src
2020-10-18 19:35:09 +00:00
mkdir -p /tmp/pickle.tmp
2019-12-23 11:40:28 +00:00
IPE_ERRFLAG_FILE="$(mktemp -p /tmp/src)"
2020-10-18 19:35:09 +00:00
CONFIGURE_FILE=/tmp/configure-options
2020-02-28 10:09:15 +00:00
setDistro
2021-01-14 13:47:26 +00:00
case "$DISTRO_VERSION" in
debian@8)
fixMaxOpenFiles || true
;;
esac
2021-01-13 08:53:34 +00:00
setPHPVersionVariables
2020-10-18 16:40:43 +00:00
setPHPPreinstalledModules
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
case "$PHP_MAJMIN_VERSION" in
2020-09-18 11:05:53 +00:00
505 | 506 | 700 | 701 | 702 | 703 | 704 | 800) ;;
2018-04-11 15:39:10 +00:00
*)
2019-12-20 15:52:00 +00:00
printf "### ERROR: Unsupported PHP version: %s.%s ###\n" $((PHP_MAJMIN_VERSION / 100)) $((PHP_MAJMIN_VERSION % 100))
;;
2018-04-11 15:39:10 +00:00
esac
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
UNNEEDED_PACKAGE_LINKS=''
processCommandArguments "$@"
if test -z "$PHP_MODULES_TO_INSTALL"; then
exit 0
fi
2019-10-11 14:01:21 +00:00
sortModulesToInstall
2020-09-18 11:05:53 +00:00
docker-php-source extract
BUNDLED_MODULES="$(find /usr/src/php/ext -mindepth 2 -maxdepth 2 -type f -name 'config.m4' | xargs -n1 dirname | xargs -n1 basename | xargs)"
2020-10-18 19:35:09 +00:00
configureInstaller
2020-09-18 11:05:53 +00:00
2020-07-27 12:30:14 +00:00
buildRequiredPackageLists $PHP_MODULES_TO_INSTALL
2019-12-23 10:50:42 +00:00
if test -n "$PACKAGES_PERSISTENT$PACKAGES_VOLATILE"; then
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
installRequiredPackages
fi
2020-12-16 10:34:30 +00:00
if test "$PHP_MODULES_TO_INSTALL" != '@composer'; then
setTargetTriplet
fi
2020-12-16 09:04:45 +00:00
if test $USE_PICKLE -gt 1; then
buildPickle
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
for PHP_MODULE_TO_INSTALL in $PHP_MODULES_TO_INSTALL; do
2020-12-16 10:34:30 +00:00
if test "$PHP_MODULE_TO_INSTALL" = '@composer'; then
installComposer
elif stringInList "$PHP_MODULE_TO_INSTALL" "$BUNDLED_MODULES"; then
2020-07-27 12:30:14 +00:00
installBundledModule "$PHP_MODULE_TO_INSTALL"
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
else
2020-12-17 09:16:03 +00:00
installRemoteModule "$PHP_MODULE_TO_INSTALL"
2018-06-28 07:46:14 +00:00
fi
Continue implementing Alpine support
Test: amqp, apcu, bcmath, bz2, calendar, cmark, dba, enchant, exif, gd, gettext, gmp, igbinary, imagick, imap
2019-12-10 08:06:30 +00:00
done
cleanup