diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:45:59 +0000 |
commit | 19fcec84d8d7d21e796c7624e521b60d28ee21ed (patch) | |
tree | 42d26aa27d1e3f7c0b8bd3fd14e7d7082f5008dc /src/spdk/test/common/config/pkgdep/yum | |
parent | Initial commit. (diff) | |
download | ceph-upstream.tar.xz ceph-upstream.zip |
Adding upstream version 16.2.11+ds.upstream/16.2.11+dsupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/spdk/test/common/config/pkgdep/yum')
-rw-r--r-- | src/spdk/test/common/config/pkgdep/yum | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/src/spdk/test/common/config/pkgdep/yum b/src/spdk/test/common/config/pkgdep/yum new file mode 100644 index 000000000..32e89bc15 --- /dev/null +++ b/src/spdk/test/common/config/pkgdep/yum @@ -0,0 +1,67 @@ +package_manager=yum + +upgrade() { + sudo "$package_manager" upgrade -y +} + +install() { + (($#)) || return 0 + + sudo "$package_manager" install -y "$@" +} + +packages=( + pciutils + valgrind + jq + nvme-cli + gdb + fio + librbd-devel + kernel-devel + gflags-devel + libasan + libubsan + autoconf + automake + libtool + libmount-devel + iscsi-initiator-utils + isns-utils-devel pmempool + perl-open + glib2-devel + pixman-devel + astyle-devel + elfutils + elfutils-libelf-devel + flex + bison + targetcli + perl-Switch + librdmacm-utils + libibverbs-utils + gdisk + socat + sshfs + sshpass + python3-pandas + rpm-build + iptables + clang-analyzer + bc + kernel-modules-extra + systemd-devel + python3 + wget +) + +pre_install() { + if [[ $ID == centos ]] && (( VERSION_ID == 8 )); then + "$package_manager" update -y --refresh + fi + + install nbd || { + wget -O nbd.rpm https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/n/nbd-3.14-2.el7.x86_64.rpm + install nbd.rpm + } +} |