2010-11-12 16:03:31 +00:00
|
|
|
Name: xnba-undi
|
2010-11-12 20:29:34 +00:00
|
|
|
Version: 1.0.2
|
2011-08-19 18:02:38 +00:00
|
|
|
Release: 4
|
2010-11-12 16:03:31 +00:00
|
|
|
Summary: xCAT Network Boot Agent for x86 PXE hosts
|
|
|
|
Obsoletes: gpxe-undi
|
|
|
|
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
License: GPL
|
2010-11-12 20:29:34 +00:00
|
|
|
URL: http://ipxe.org
|
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)
|
|
|
|
|
|
|
|
|
2011-08-19 18:02:38 +00:00
|
|
|
Source0: xnba-%{version}.tar.bz2
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2011-08-19 18:02:38 +00:00
|
|
|
%setup -n xnba-%{version}
|
2010-11-12 16:03:31 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
cd src
|
|
|
|
make bin/undionly.kkpxe
|
2011-08-19 18:02:38 +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
|
2011-08-19 18:02:38 +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
|