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

61 lines
1.4 KiB
RPMSpec
Raw Normal View History

2009-07-08 14:07:11 +00:00
Name: xnba-undi
Version: 0.9.7
2009-07-08 14:07:11 +00:00
Release: 5
Summary: xCAT Network Boot Agent for x86 PXE hosts
Obsoletes: gpxe-xcat
Obsoletes: gpxe-undi
Group: System Environment/Kernel
License: GPL
URL: http://etherboot.org/wiki/index.php
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: gpxe-0.9.7.tar.gz
Patch0: gpxe-0.9.7-branding.patch
Patch1: gpxe-0.9.7-registeriscsionpxe.patch
2009-07-08 14:07:11 +00:00
Patch2: gpxe-0.9.7-config.patch
Patch3: gpxe-0.9.7-ignorepackets.patch
%description
2009-07-08 14:07:11 +00:00
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 gpxe-%{version}
%patch -p1
%patch1 -p1
%patch2 -p1
2009-07-08 14:07:11 +00:00
%patch3 -p1
%build
rm -rf %{buildroot}
cd src
make bin/undionly.kpxe
%install
2009-07-08 14:07:11 +00:00
mkdir -p %{buildroot}/tftpboot/xcat
#Rename to avoid conflicting with potential vanilla undionly.kpxe that user may be using
cp src/bin/undionly.kpxe %{buildroot}/tftpboot/xcat/xnba.kpxe
%post
%preun
%clean
%{__rm} -rf %{buildroot}
%files
2009-07-08 14:07:11 +00:00
/tftpboot/xcat/xnba.kpxe
%changelog