mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-25 02:50:10 +00:00
74 lines
1.7 KiB
RPMSpec
74 lines
1.7 KiB
RPMSpec
|
Name: xnba-undi
|
||
|
Version: 1.0.1
|
||
|
Release: 2
|
||
|
Summary: xCAT Network Boot Agent for x86 PXE hosts
|
||
|
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-%{version}.tar.bz2
|
||
|
Patch0: gpxe-0.9.7-branding.patch
|
||
|
Patch1: gpxe-1.0.0-registeriscsionpxe.patch
|
||
|
Patch2: gpxe-1.0.0-config.patch
|
||
|
Patch3: gpxe-0.9.7-ignorepackets.patch
|
||
|
Patch4: gpxe-0.9.7-kvmworkaround.patch
|
||
|
Patch5: gpxe-1.0.0-hdboot.patch
|
||
|
Patch6: gpxe-1.0.1-xnbauserclass.patch
|
||
|
Patch7: gpxe-0.9.7-undinet.patch
|
||
|
Patch8: gpxe-1.0.0-cmdlinesize.patch
|
||
|
Patch9: gpxe-1.0.0-expandfilename.patch
|
||
|
Patch10: gpxe-1.0.0-hyphenatedmachyp.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 gpxe-%{version}
|
||
|
%patch -p1
|
||
|
%patch1 -p1
|
||
|
%patch2 -p1
|
||
|
%patch3 -p1
|
||
|
%patch4 -p1
|
||
|
%patch5 -p1
|
||
|
%patch6 -p1
|
||
|
%patch7 -p1
|
||
|
%patch8 -p1
|
||
|
%patch9 -p1
|
||
|
%patch10 -p1
|
||
|
|
||
|
%build
|
||
|
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
cd src
|
||
|
make bin/undionly.kkpxe
|
||
|
|
||
|
|
||
|
%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
|
||
|
|
||
|
|
||
|
%post
|
||
|
|
||
|
%preun
|
||
|
|
||
|
%clean
|
||
|
%{__rm} -rf %{buildroot}
|
||
|
|
||
|
%files
|
||
|
/tftpboot/xcat/xnba.kpxe
|
||
|
%changelog
|