From f3b4e640f822a223021a2b86c0fe2552313b4f76 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Mon, 27 Jul 2020 16:50:21 +0200 Subject: [PATCH] Add support for zookeeper --- data/supported-extensions | 1 + install-php-extensions | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/data/supported-extensions b/data/supported-extensions index 006cc0c..fedce51 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -78,3 +78,4 @@ xmlrpc 5.5 5.6 7.0 7.1 7.2 7.3 7.4 xsl 5.5 5.6 7.0 7.1 7.2 7.3 7.4 yaml 5.5 5.6 7.0 7.1 7.2 7.3 7.4 zip 5.5 5.6 7.0 7.1 7.2 7.3 7.4 +zookeeper 5.5 5.6 7.0 7.1 7.2 7.3 7.4 diff --git a/install-php-extensions b/install-php-extensions index 6babddd..40178c2 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -651,6 +651,15 @@ buildRequiredPackageLists() { ;; esac ;; + zookeeper@alpine) + if ! test -f /usr/local/include/zookeeper/zookeeper.h; then + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile automake libtool libressl-dev apache-ant openjdk8" + fi + ;; + zookeeper@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent libzookeeper-mt2" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libzookeeper-mt-dev" + ;; esac shift done @@ -1303,6 +1312,28 @@ installPECLModule() { installPECLModule_actual="$1-2.0.4" fi ;; + zookeeper) + case "$DISTRO" in + alpine) + if ! test -f /usr/local/include/zookeeper/zookeeper.h; then + installPECLModule_src="$(getPackageSource https://downloads.apache.org/zookeeper/zookeeper-3.4.14/zookeeper-3.4.14.tar.gz)" + cd -- "$installPECLModule_src" + ant ivy-retrieve compile_jute + cd - >/dev/null + cd -- "$installPECLModule_src/zookeeper-client/zookeeper-client-c" + ./configure --without-cppunit + make -j$(nproc) + make install + cd - >/dev/null + fi + ;; + esac + if test $PHP_MAJMIN_VERSION -lt 700; then + installPECLModule_actual="$1-0.5.0" + elif test $PHP_MAJMIN_VERSION -gt 702; then + installPECLModule_actual="$1-0.7.2" + fi + ;; esac if test $installPECLModule_manuallyInstalled -eq 0; then if test "$1" != "$installPECLModule_actual"; then