install-dependencies 885 B

123456789101112131415161718192021222324252627282930
  1. #!/bin/sh -ex
  2. case "${DISTRO}" in
  3. debian:*|ubuntu:*)
  4. export DEBIAN_FRONTEND=noninteractive
  5. apt clean
  6. apt update
  7. apt -y install gcc meson pkg-config libjose-dev jose libhttp-parser-dev \
  8. systemd gcovr curl socat
  9. ;;
  10. fedora:*)
  11. echo 'max_parallel_downloads=10' >> /etc/dnf/dnf.conf
  12. dnf -y clean all
  13. dnf -y --setopt=deltarpm=0 update
  14. dnf -y install gcc meson pkgconfig libjose-devel jose http-parser-devel \
  15. systemd gcovr curl socat
  16. ;;
  17. centos:*)
  18. yum -y clean all
  19. yum -y --setopt=deltarpm=0 update
  20. yum install -y yum-utils epel-release
  21. yum config-manager -y --set-enabled PowerTools \
  22. || yum config-manager -y --set-enabled powertools || :
  23. yum -y install meson socat
  24. yum-builddep -y tang
  25. ;;
  26. esac
  27. # vim: set ts=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: