From f80a248eda3990bb7788e80d102cc5f831551ee5 Mon Sep 17 00:00:00 2001 From: Stefan Dinescu Date: Tue, 3 Mar 2020 09:09:54 +0000 Subject: [PATCH] Integrate the Netapp Trident installer in build The Netapp Trident installer comes in the form of a tarball. That tarball includes an example folder, an extras folder and the tridentctl installer itself. From this tarball all we need is the installer itself, so we only include it into an RPM to be installed. Change-Id: I91c6be915b097c934569469c9e0a7a16ab3e8177 Story: 2007391 Task: 38986 Signed-off-by: Stefan Dinescu --- centos_pkg_dirs | 1 + centos_tarball-dl.lst | 1 + .../trident-installer/centos/build_srpm.data | 2 ++ .../centos/trident-installer.spec | 33 +++++++++++++++++++ 4 files changed, 37 insertions(+) create mode 100644 storage-drivers/trident-installer/centos/build_srpm.data create mode 100644 storage-drivers/trident-installer/centos/trident-installer.spec diff --git a/centos_pkg_dirs b/centos_pkg_dirs index 1b8048144..d1e403842 100644 --- a/centos_pkg_dirs +++ b/centos_pkg_dirs @@ -51,6 +51,7 @@ config/puppet-modules/openstack/puppet-oslo-11.3.0 base/systemd storage-drivers/python-3parclient storage-drivers/python-lefthandclient +storage-drivers/trident-installer security/tboot networking/mellanox/libibverbs kernel/kernel-modules/mlnx-ofa_kernel diff --git a/centos_tarball-dl.lst b/centos_tarball-dl.lst index c5fcd76b6..23adb7830 100644 --- a/centos_tarball-dl.lst +++ b/centos_tarball-dl.lst @@ -72,6 +72,7 @@ spdk-f474ce6930f0a44360e1cc4ecd606d2348481c4c.tar.gz#spdk#https://api.github.com spectre-meltdown-checker-0.37+-5cc77741.tar.gz#spectre-meltdown-checker#https://github.com/speed47/spectre-meltdown-checker/tarball/5cc77741af1d2f52140aa9f89339f56b6c4b6783#http## swtpm-0.1.0-253eac5.tar.gz#swtpm-0.1.0#https://github.com/stefanberger/swtpm/tarball/1303be7d03294fb02204cb8242f366cbf0da076d#http## !tpm-kmod-e6aef069.tar.gz#tpm#http://git.infradead.org/users/jjs/linux-tpmdd.git/snapshot/e6aef069b6e97790cb127d5eeb86ae9ff0b7b0e3.tar.gz#http_script#post-dl-script/tpm-kmod.sh +trident-installer-20.01.0.tar.gz#trident-installer-20.01.0#https://github.com/NetApp/trident/releases/download/v20.01.0/trident-installer-20.01.0.tar.gz#https## !tss2-930.tar.gz#tss2-930#https://git.code.sf.net/p/ibmtpm20tss/tss#git#v930# xxHash-1f40c6511fa8dd9d2e337ca8c9bc18b3e87663c9.tar.gz#xxHash#https://api.github.com/repos/ceph/xxHash/tarball/1f40c6511fa8dd9d2e337ca8c9bc18b3e87663c9#https## zstd-f4340f46b2387bc8de7d5320c0b83bb1499933ad.tar.gz#zstd#https://api.github.com/repos/facebook/zstd/tarball/f4340f46b2387bc8de7d5320c0b83bb1499933ad#https## diff --git a/storage-drivers/trident-installer/centos/build_srpm.data b/storage-drivers/trident-installer/centos/build_srpm.data new file mode 100644 index 000000000..4be25090d --- /dev/null +++ b/storage-drivers/trident-installer/centos/build_srpm.data @@ -0,0 +1,2 @@ +COPY_LIST="$CGCS_BASE/downloads/trident-installer-20.01.0.tar.gz" +TIS_PATCH_VER=1 diff --git a/storage-drivers/trident-installer/centos/trident-installer.spec b/storage-drivers/trident-installer/centos/trident-installer.spec new file mode 100644 index 000000000..8d390cb76 --- /dev/null +++ b/storage-drivers/trident-installer/centos/trident-installer.spec @@ -0,0 +1,33 @@ +Summary: trident-installer +Name: trident-installer +Version: 20.01.0 +Release: 0%{?_tis_dist}.%{tis_patch_ver} +License: GPLv2 and GPLv2+ and LGPLv2+ and Public Domain and BSD +Group: base +Packager: Wind River +URL: https://github.com/NetApp/trident/releases/download/v20.01.0/trident-installer-20.01.0.tar.gz +Source0: %{name}-%{version}.tar.gz + +Requires: nfs-utils + +%description +Netapp Trident-installer +https://netapp-trident.readthedocs.io/en/stable-v20.01/introduction.html + +%define debug_package %{nil} + +%prep +%setup -q + +%build + +%install +mkdir -p %{buildroot}/%{_bindir} +install -m 755 tridentctl %{buildroot}/%{_bindir}/tridentctl + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_bindir}/tridentctl