From 82bd7ea934914cc4f53799739dd97ea9388cf113 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 12 Dec 2019 12:41:49 +0100 Subject: [PATCH] Add support for mongo/mongodb extensions --- data/supported-extensions | 2 ++ install-php-extensions | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 8d24e12..7d51fde 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -19,6 +19,8 @@ ldap 5.6 7.0 7.1 7.2 7.3 7.4 mcrypt 5.6 7.0 7.1 7.2 7.3 7.4 memcache 5.6 memcached 5.6 7.0 7.1 7.2 7.3 7.4 +mongo 5.6 +mongodb 5.6 7.0 7.1 7.2 7.3 7.4 msgpack 5.6 7.0 7.1 7.2 7.3 7.4 mssql 5.6 mysql 5.6 diff --git a/install-php-extensions b/install-php-extensions index 62c7f1c..32cb7cc 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -317,6 +317,24 @@ buildRequiredPackageLists () { buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libmemcachedutil2" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libmemcached-dev zlib1g-dev" ;; + mongo@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsasl libssl1.0" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS openssl-dev cyrus-sasl-dev" + ;; + mongo@debian) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssl-dev libsasl2-dev" + ;; + mongodb@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent icu-libs libsasl snappy" + if test -z "$(apk info | grep -E ^libssl)"; then + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libssl1.0" + fi + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS icu-dev cyrus-sasl-dev snappy-dev openssl-dev zlib-dev" + ;; + mongodb@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libsnappy1v5" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libicu-dev libsasl2-dev libsnappy-dev libssl-dev zlib1g-dev" + ;; msgpack@alpine) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS" ;; @@ -814,6 +832,11 @@ installPECLModule () { installPECLModule_stdin="${installPECLModule_stdin}yes\n" fi ;; + mongo) + installPECLModule_stdin='' + # --with-mongo-sasl (default: no) Build with Cyrus SASL (MongoDB Enterprise Authentication) support? + installPECLModule_stdin="${installPECLModule_stdin}yes\n" + ;; msgpack) if test $1 -le 506; then installPECLModule_actual="$2-0.5.7"