mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 17:43:14 +00:00
7f044c45de
This reverts commit ea6155b2a1
.
This rpm is built under centos7 for maximum C compatibility
of the addon utility. For now move the dependency back
to lenovo-confluent
60 lines
1.4 KiB
Cheetah
60 lines
1.4 KiB
Cheetah
Name: confluent_osdeploy-x86_64
|
|
Version: #VERSION#
|
|
Release: 1
|
|
Summary: OS Deployment support for confluent
|
|
|
|
License: Apache2
|
|
URL: http://hpc.lenovo.com/
|
|
Source0: confluent_osdeploy.tar.xz
|
|
BuildArch: noarch
|
|
Requires: confluent_ipxe mtools
|
|
BuildRoot: /tmp
|
|
|
|
%description
|
|
This contains support utilities for enabling deployment of x86_64 architecture systems
|
|
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%prep
|
|
%setup -n confluent_osdeploy
|
|
|
|
%build
|
|
mkdir -p opt/confluent/bin
|
|
cd utils
|
|
make all
|
|
cp copernicus clortho autocons ../opt/confluent/bin
|
|
cd ..
|
|
for os in rhvh4 el8 suse15 ubuntu20.04; do
|
|
mkdir ${os}out
|
|
cd ${os}out
|
|
cp -a ../opt .
|
|
cp -a ../${os}/initramfs/* .
|
|
cp -a ../common/* .
|
|
find . | cpio -H newc -o > ../addons.cpio
|
|
mv ../addons.cpio .
|
|
cd ..
|
|
done
|
|
mkdir esxi7out
|
|
cd esxi7out
|
|
cp -a ../opt .
|
|
cp -a ../esxi7/initramfs/* .
|
|
cp -a ../common/* .
|
|
chmod +x bin/* opt/confluent/bin/*
|
|
tar zcvf ../addons.tgz *
|
|
mv ../addons.tgz .
|
|
cd ..
|
|
cp -a esxi7out esxi6out
|
|
cp -a esxi7 esxi6
|
|
|
|
%install
|
|
for os in rhvh4 el8 suse15 ubuntu20.04 esxi6 esxi7; do
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
|
mkdir -p %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
|
cp ${os}out/addons.* %{buildroot}/opt/confluent/lib/osdeploy/$os/initramfs
|
|
cp -a $os/profiles/* %{buildroot}/opt/confluent/lib/osdeploy/$os/profiles
|
|
done
|
|
|
|
%files
|
|
/opt/confluent/lib/osdeploy
|