diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:45:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2021-02-07 11:45:55 +0000 |
commit | a8220ab2d293bb7f4b014b79d16b2fb05090fa93 (patch) | |
tree | 77f0a30f016c0925cf7ee9292e644bba183c2774 /packaging/bundle-judy.sh | |
parent | Adding upstream version 1.19.0. (diff) | |
download | netdata-a8220ab2d293bb7f4b014b79d16b2fb05090fa93.tar.xz netdata-a8220ab2d293bb7f4b014b79d16b2fb05090fa93.zip |
Adding upstream version 1.29.0.upstream/1.29.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'packaging/bundle-judy.sh')
-rwxr-xr-x | packaging/bundle-judy.sh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/packaging/bundle-judy.sh b/packaging/bundle-judy.sh new file mode 100755 index 000000000..f4e583970 --- /dev/null +++ b/packaging/bundle-judy.sh @@ -0,0 +1,23 @@ +#!/bin/sh + +JUDY_TARBALL="v$(cat "${1}/packaging/judy.version").tar.gz" +JUDY_BUILD_PATH="${1}/externaldeps/libJudy/libjudy-$(cat "${1}/packaging/judy.version")" + +mkdir -p "${1}/externaldeps/libJudy" || exit 1 +curl -sSL --connect-timeout 10 --retry 3 "https://github.com/netdata/libjudy/archive/${JUDY_TARBALL}" > "${JUDY_TARBALL}" || exit 1 +sha256sum -c "${1}/packaging/judy.checksums" || exit 1 +tar -xzf "${JUDY_TARBALL}" -C "${1}/externaldeps/libJudy" || exit 1 +OLDPWD="${PWD}" +cd "${JUDY_BUILD_PATH}" || exit 1 +libtoolize --force --copy || exit 1 +aclocal || exit 1 +autoheader || exit 1 +automake --add-missing --force --copy --include-deps || exit 1 +autoconf || exit 1 +./configure || exit 1 +make -C src || exit 1 +ar -r src/libJudy.a src/Judy*/*.o || exit 1 +cd "${OLDPWD}" || exit 1 + +cp -a "${JUDY_BUILD_PATH}/src/libJudy.a" "${1}/externaldeps/libJudy" || exit 1 +cp -a "${JUDY_BUILD_PATH}/src/Judy.h" "${1}/externaldeps/libJudy" || exit 1 |