mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-24 02:19:53 +00:00
Add a spec file to build esxboot-xcat
Former-commit-id: 7abf09e83a4b3ef766a6f735b819746bbd99ec45
This commit is contained in:
parent
b363ffd24d
commit
7ea92d982e
51
esxboot/esxboot-xcat.spec
Normal file
51
esxboot/esxboot-xcat.spec
Normal file
@ -0,0 +1,51 @@
|
||||
Name: esxboot-xcat
|
||||
Version: 1.0.0
|
||||
Release: 1
|
||||
Summary: xCAT patched variant of vmware's boot loader
|
||||
|
||||
Group: System Environment/Kernel
|
||||
License: GPL
|
||||
URL: http://www.vmware.com/download/open_source.html
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
||||
BuildArch: noarch
|
||||
|
||||
%define Distribution %(rpm -q -qf /etc/redhat-release --qf '%%{name}' | cut -d"-" -f 1)
|
||||
%define os_version %(rpm -q --qf '%%{version}' %{Distribution}-release)
|
||||
%define os_release %(rpm -q --qf '%%{release}' %{Distribution}-release | cut -d"." -f 1)
|
||||
|
||||
|
||||
Source0: efiboot.tgz
|
||||
Patch: esxboot-xcat.patch
|
||||
|
||||
%description
|
||||
The xCAT Network Boot Agent is a slightly modified version of gPXE. It provides enhanced boot features for any UNDI compliant x86 host. This includes iSCSI, http/ftp downloads, and gPXE script based booting.
|
||||
|
||||
%prep
|
||||
|
||||
%setup -n efiboot
|
||||
%patch -p1
|
||||
|
||||
%build
|
||||
|
||||
rm -rf %{buildroot}
|
||||
|
||||
./configure
|
||||
make -f Makefile.main BUILDENV=uefi64
|
||||
|
||||
|
||||
%install
|
||||
|
||||
mkdir -p %{buildroot}/tftpboot/xcat
|
||||
cp build/uefi64/esxboot/esxboot_x64.efi %{buildroot}/tftpboot/xcat/esxboot-x64.efi
|
||||
|
||||
|
||||
%post
|
||||
|
||||
%preun
|
||||
|
||||
%clean
|
||||
%{__rm} -rf %{buildroot}
|
||||
|
||||
%files
|
||||
/tftpboot/xcat/esxboot-x64.efi
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user