Merge pull request #57 from mlocati/mongo

Add support for mongo/mongodb extensions
pull/59/head
Michele Locati 2019-12-12 12:55:31 +01:00 committed by GitHub
commit 7556b02b82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 3 deletions

View File

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

View File

@ -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"
;;
@ -528,8 +546,8 @@ buildRequiredPackageLists () {
apk update
;;
debian)
DEBIAN_FRONTEND=noninteractive apt-get update
DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y
DEBIAN_FRONTEND=noninteractive apt-get update -q
DEBIAN_FRONTEND=noninteractive apt-get autoremove --purge -y -q
;;
esac
if test -n "$buildRequiredPackageLists_persistent"; then
@ -603,7 +621,7 @@ installRequiredPackages () {
apk add $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
;;
debian)
DEBIAN_FRONTEND=noninteractive apt-get install -y $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
DEBIAN_FRONTEND=noninteractive apt-get install -qq -y $PACKAGES_PERSISTENT $PACKAGES_VOLATILE
;;
esac
}
@ -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"