From 56393d436e040eaf455473ef881bb487d5fa30a9 Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Thu, 15 Jul 2021 09:47:39 +0200 Subject: [PATCH] Add support for stomp --- data/supported-extensions | 1 + install-php-extensions | 19 +++++++++++++++++++ scripts/tests/stomp | 13 +++++++++++++ 3 files changed, 33 insertions(+) create mode 100755 scripts/tests/stomp diff --git a/data/supported-extensions b/data/supported-extensions index f2ecd81..8580097 100644 --- a/data/supported-extensions +++ b/data/supported-extensions @@ -82,6 +82,7 @@ sockets 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 solr 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 sqlsrv 7.0 7.1 7.2 7.3 7.4 8.0 8.1 ssh2 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 +stomp 5.5 5.6 7.0 7.1 7.2 7.3 7.4 swoole 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 sybase_ct 5.5 5.6 sysvmsg 5.5 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 diff --git a/install-php-extensions b/install-php-extensions index 9d15381..2d28bea 100755 --- a/install-php-extensions +++ b/install-php-extensions @@ -851,6 +851,13 @@ buildRequiredPackageLists() { ssh2@debian) buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile libssh2-1-dev" ;; + stomp@alpine) + buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent $buildRequiredPackageLists_libssl" + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev" + ;; + stomp@debian) + buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile $buildRequiredPackageLists_libssldev" + ;; swoole@alpine) buildRequiredPackageLists_persistent="$buildRequiredPackageLists_persistent postgresql-libs libstdc++ $buildRequiredPackageLists_libssl" buildRequiredPackageLists_volatile="$buildRequiredPackageLists_volatile curl-dev postgresql-dev linux-headers $buildRequiredPackageLists_libssldev" @@ -2047,6 +2054,18 @@ installRemoteModule() { fi fi ;; + stomp) + if test -z "$installRemoteModule_version"; then + if test $PHP_MAJMIN_VERSION -le 506; then + installRemoteModule_version=1.0.9 + fi + fi + if test "$DISTRO" = debian; then + addConfigureOption with-openssl-dir yes + else + addConfigureOption with-openssl-dir /usr + fi + ;; swoole) if test -z "$installRemoteModule_version"; then if test $PHP_MAJMIN_VERSION -le 502; then diff --git a/scripts/tests/stomp b/scripts/tests/stomp new file mode 100755 index 0000000..19d36c1 --- /dev/null +++ b/scripts/tests/stomp @@ -0,0 +1,13 @@ +#!/bin/sh + +set -o errexit +set -o nounset + +rc=0 +if test -z "$(php --ri stomp | grep 'SSL Support => enabled')"; then + echo 'stomp has not been compiled with SSL support' >&2 + rc=1 +else + echo 'stomp has been compiled with SSL support' +fi +exit $rc