Add support for zookeeper
parent
bf7d0bd764
commit
f3b4e640f8
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue