Add support for zookeeper

pull/153/head
Michele Locati 2020-07-27 16:50:21 +02:00
parent bf7d0bd764
commit f3b4e640f8
No known key found for this signature in database
GPG Key ID: 98B7CE2E7234E28B
2 changed files with 32 additions and 0 deletions

View File

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

View File

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