install-alpine-packages.sh 993 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/usr/bin/env sh
  2. #
  3. # Installation script for the alpine host
  4. # to prepare the static binary
  5. #
  6. # Copyright: SPDX-License-Identifier: GPL-3.0-or-later
  7. #
  8. # Author: Paul Emm. Katsoulakis <paul@netdata.cloud>
  9. # Packaging update
  10. apk update
  11. # Add required APK packages
  12. apk add --no-cache \
  13. bash \
  14. wget \
  15. curl \
  16. ncurses \
  17. git \
  18. netcat-openbsd \
  19. alpine-sdk \
  20. autoconf \
  21. automake \
  22. gcc \
  23. make \
  24. libtool \
  25. pkgconfig \
  26. util-linux-dev \
  27. openssl-dev \
  28. gnutls-dev \
  29. zlib-dev \
  30. libmnl-dev \
  31. libnetfilter_acct-dev \
  32. libuv-dev \
  33. lz4-dev \
  34. openssl-dev \
  35. || exit 1
  36. # Judy doesnt seem to be available on the repositories, download manually and install it
  37. export JUDY_VER="1.0.5"
  38. wget -O /judy.tar.gz http://downloads.sourceforge.net/project/judy/judy/Judy-${JUDY_VER}/Judy-${JUDY_VER}.tar.gz
  39. cd /
  40. tar -xf judy.tar.gz
  41. rm judy.tar.gz
  42. cd /judy-${JUDY_VER}
  43. CFLAGS="-O2 -s" CXXFLAGS="-O2 -s" ./configure
  44. make
  45. make install;