install-dependencies 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 iproute2
  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 iproute
  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 iproute
  24. yum-builddep -y tang
  25. ;;
  26. *centos:stream*)
  27. dnf -y clean all
  28. dnf -y --setopt=deltarpm=0 update
  29. dnf install -y dnf-plugins-core epel-release
  30. dnf config-manager -y --set-enabled powertools \
  31. || dnf config-manager -y --set-enabled crb || :
  32. dnf -y install meson socat iproute
  33. dnf builddep -y tang --allowerasing --skip-broken --nobest
  34. ;;
  35. esac
  36. # vim: set ts=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: