| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # SPDX-License-Identifier: GPL-2.0-or-later |
| 3 | # Copyright (c) 2019-2024 Petr Vorel <[email protected]> |
| 4 | set -ex |
| 5 | |
| 6 | yum -y install \ |
| 7 | clang \ |
| 8 | file \ |
| 9 | findutils \ |
| 10 | gcc \ |
| 11 | gettext \ |
| 12 | git \ |
| 13 | iproute \ |
| 14 | jq \ |
| 15 | libcap-devel \ |
| 16 | libxslt \ |
| 17 | pkg-config |
| 18 | |
| 19 | if [scip-shell system . . `[`. "$(basenamescip-shell system . . basename. $0)" = "centos.sh" ] || [scip-shell system . . `[`. "$(basenamescip-shell system . . basename. $0)" = "rockylinux.sh" ]; then |
| 20 | # CentOS Linux 7: libidn2-devel, meson, ninja-build are provided by EPEL |
| 21 | # CentOS/RHEL/Rocky 8: docbook5-style-xsl is provided by EPEL |
| 22 | yum -y install epel-release |
| 23 | |
| 24 | # Enable CRB (formerly PowerTools) on CentOS/RHEL/Rocky >= 8 via EPEL |
| 25 | # CentOS/RHEL/Rocky >= 8: meson and ninja-build are provided by CRB |
| 26 | if [scip-shell system . . `[`. "$DISTRO_VERSION" != 7 ]; then |
| 27 | # Update epel-release because CentOS Stream 9 ships 9-2.el9, |
| 28 | # which is unfortunately too old to provide the crb command. |
| 29 | dnf -y install 'dnf-command(config-manager)' epel-release |
| 30 | crb enable |
| 31 | fi |
| 32 | fi |
| 33 | |
| 34 | yum -y install docbook5-style-xsl libidn2-devel meson ninja-build |