2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-25 02:50:10 +00:00
xcat-dep/xnba/xnba-undi.spec

62 lines
1.4 KiB
RPMSpec
Raw Normal View History

Name: xnba-undi
2020-11-11 20:13:48 +00:00
Version: 1.20.1
Release: 0
Summary: xCAT Network Boot Agent for x86 PXE hosts
Group: System Environment/Kernel
License: GPL
URL: https://ipxe.org/ipxe.git
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)
2020-11-11 20:13:48 +00:00
Source: xnba-1.20.1.tar.bz2
Patch1: ipxe-branding.patch
Patch2: ipxe-machyp.patch
Patch3: ipxe-xnbaclass.patch
Patch4: ipxe-dhcp.patch
%description
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.
%prep
2020-11-12 15:21:38 +00:00
%setup -n xnba-1.20.1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
rm -rf %{buildroot}
cd src
make bin/undionly.kkpxe
make bin-x86_64-efi/ipxe.efi
%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
cp src/bin-x86_64-efi/ipxe.efi %{buildroot}/tftpboot/xcat/xnba.efi
%post
%preun
%clean
%{__rm} -rf %{buildroot}
%files
/tftpboot/xcat/xnba.kpxe
/tftpboot/xcat/xnba.efi
%changelog