From cc316409b0fcbdef9bd08202c7ef3cab3425425c Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sat, 6 Mar 2021 02:48:36 +0530 Subject: [PATCH] Use GitHub releases for libcouchbase 2 on linux --- src/scripts/ext/couchbase.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/scripts/ext/couchbase.sh b/src/scripts/ext/couchbase.sh index a3321fe5..94d9030e 100644 --- a/src/scripts/ext/couchbase.sh +++ b/src/scripts/ext/couchbase.sh @@ -2,16 +2,20 @@ add_couchbase_libs() { if [ "$(uname -s)" = "Linux" ]; then if [[ ${version:?} =~ 5.[3-6]|7.[0-1] ]]; then - trunk="http://packages.couchbase.com/ubuntu" - list="deb $trunk ${DISTRIB_CODENAME:?} ${DISTRIB_CODENAME:?}/main" + release="2.10.9" + trunk="https://github.com/couchbase/libcouchbase/releases/download" + package="libcouchbase-${release}_ubuntu${DISTRIB_RELEASE/./}_${DISTRIB_CODENAME}_amd64.tar" + get -q -n /tmp/libcouchbase.tar "$trunk/$release/$package" + sudo tar -xf /tmp/libcouchbase.tar -C /tmp + install_packages libev4 + sudo dpkg -i /tmp/libcouchbase-*/*.deb else trunk="http://packages.couchbase.com/clients/c/repos/deb" list="deb $trunk/ubuntu${DISTRIB_RELEASE/./} ${DISTRIB_CODENAME:?} ${DISTRIB_CODENAME:?}/main" + get -s -n "" "$trunk/couchbase.key" | sudo apt-key add + echo "$list" | sudo tee /etc/apt/sources.list.d/couchbase.list + sudo apt-get update fi - add_pecl - get -s -n "" "$trunk/couchbase.key" | sudo apt-key add - echo "$list" | sudo tee /etc/apt/sources.list.d/couchbase.list - sudo apt-get update ${apt_install:?} libcouchbase-dev else if [[ ${version:?} =~ 5.[3-6]|7.[0-1] ]]; then