From 8201d060ab4aefa352a655d3fc0d546f11f9514a Mon Sep 17 00:00:00 2001 From: Minh-Quan TRAN Date: Wed, 18 Dec 2019 15:13:56 +0100 Subject: [PATCH] add kafka extension --- install-php-extensions | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/install-php-extensions b/install-php-extensions index c59bf88..50206dd 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -431,6 +431,14 @@ buildRequiredPackageLists () { pthreads@alpine) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $PHPIZE_DEPS" ;; + rdkafka@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librdkafka" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librdkafka-dev" + ;; + rdkafka@debian) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent librdkafka++1" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile librdkafka-dev" + ;; recode@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent recode" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile recode-dev" @@ -893,6 +901,11 @@ installPECLModule () { installPECLModule_actual="$2-2.0.10" fi ;; + rdkafka) + if test ! -z "$(apt-cache show librdkafka++1 | grep -E '^Version: 0.9')"; then + installPECLModule_actual="$2-3.1.3" + fi + ;; redis) if test $1 -le 506; then installPECLModule_actual="$2-4.3.0"