2010-11-12 16:03:31 +00:00
|
|
|
Name: xnba-undi
|
2021-09-23 18:00:03 +00:00
|
|
|
Version: 1.21.1
|
2021-06-08 19:36:26 +00:00
|
|
|
Release: 1
|
2010-11-12 16:03:31 +00:00
|
|
|
Summary: xCAT Network Boot Agent for x86 PXE hosts
|
|
|
|
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
License: GPL
|
2020-11-10 21:02:09 +00:00
|
|
|
URL: https://ipxe.org/ipxe.git
|
2010-11-12 16:03:31 +00:00
|
|
|
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)
|
|
|
|
|
|
|
|
|
2021-09-23 18:00:03 +00:00
|
|
|
Source: xnba-1.21.1.tar.bz2
|
2020-11-10 21:02:09 +00:00
|
|
|
Patch1: ipxe-branding.patch
|
|
|
|
Patch2: ipxe-machyp.patch
|
|
|
|
Patch3: ipxe-xnbaclass.patch
|
|
|
|
Patch4: ipxe-dhcp.patch
|
2021-06-08 19:57:11 +00:00
|
|
|
Patch5: ipxe-verbump.patch
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
%description
|
2020-11-10 21:02:09 +00:00
|
|
|
The xCAT Network Boot Agent is a slightly modified version of iPXE. It provides enhanced boot features for any UNDI compliant x86 host. This includes iSCSI, http/ftp downloads, and iPXE script based booting.
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
2021-09-23 18:00:03 +00:00
|
|
|
%setup -n xnba-1.21.1
|
2020-11-10 21:02:09 +00:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
2021-06-08 19:36:26 +00:00
|
|
|
%patch5 -p1
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
cd src
|
|
|
|
make bin/undionly.kkpxe
|
2021-06-08 19:36:26 +00:00
|
|
|
make bin-x86_64-efi/snponly.efi
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/tftpboot/xcat
|
|
|
|
#Rename to avoid conflicting with potential vanilla undionly.kpxe that user may be using
|
|
|
|
cp src/bin/undionly.kkpxe %{buildroot}/tftpboot/xcat/xnba.kpxe
|
2021-06-08 19:36:26 +00:00
|
|
|
cp src/bin-x86_64-efi/snponly.efi %{buildroot}/tftpboot/xcat/xnba.efi
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
/tftpboot/xcat/xnba.kpxe
|
2011-08-19 18:02:38 +00:00
|
|
|
/tftpboot/xcat/xnba.efi
|
2010-11-12 16:03:31 +00:00
|
|
|
%changelog
|