2009-07-08 14:36:54 +00:00
|
|
|
Name: xnba-kvm
|
2010-02-06 19:36:13 +00:00
|
|
|
Version: 1.0.0
|
2010-01-26 20:23:39 +00:00
|
|
|
Release: 1
|
|
|
|
Summary: xNBA loader for virtual guests
|
|
|
|
Obsoletes: etherboot-zroms-kvm
|
|
|
|
Provides: etherboot-zroms-kvm
|
2009-04-13 14:29:39 +00:00
|
|
|
|
|
|
|
Group: System Environment/Kernel
|
|
|
|
License: GPL
|
|
|
|
URL: http://etherboot.org/wiki/index.php
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
|
2009-07-20 13:54:47 +00:00
|
|
|
Obsoletes: gpxe-kvm
|
2009-04-13 14:29:39 +00:00
|
|
|
|
|
|
|
ExclusiveArch: i386 x86_64
|
|
|
|
|
|
|
|
|
|
|
|
%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)
|
|
|
|
|
|
|
|
|
2010-01-26 20:23:39 +00:00
|
|
|
Source0: gpxe-%{version}.tar.bz2
|
2009-06-23 16:16:34 +00:00
|
|
|
Patch0: gpxe-0.9.7-branding.patch
|
2010-01-26 20:23:39 +00:00
|
|
|
Patch1: gpxe-0.9.9-registeriscsionpxe.patch
|
2010-02-06 19:36:13 +00:00
|
|
|
Patch2: gpxe-1.0.0-config.patch
|
2009-07-20 13:54:47 +00:00
|
|
|
Patch3: gpxe-0.9.7-ignorepackets.patch
|
|
|
|
Patch4: gpxe-0.9.7-kvmworkaround.patch
|
2010-02-06 19:36:13 +00:00
|
|
|
Patch5: gpxe-1.0.0-hdboot.patch
|
2009-08-22 00:01:46 +00:00
|
|
|
Patch6: gpxe-0.9.7-xnbauserclass.patch
|
2010-01-26 20:23:39 +00:00
|
|
|
Patch7: gpxe-0.9.7-undinet.patch
|
2010-02-06 19:36:13 +00:00
|
|
|
Patch8: gpxe-1.0.0-int18boot.patch
|
|
|
|
Patch9: gpxe-1.0.0-exittohd.patch
|
2009-04-13 14:29:39 +00:00
|
|
|
|
|
|
|
%description
|
2010-01-26 20:23:39 +00:00
|
|
|
The xNBA network bootloader provides network boot capability for virtual machines with e1000 and virtio network devices. This includes iSCSI and PXE with tftp or ftp image download capability. It is a modified variant of gPXE
|
2009-04-13 14:29:39 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%setup -n gpxe-%{version}
|
|
|
|
%patch -p1
|
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2009-07-20 13:54:47 +00:00
|
|
|
%patch3 -p1
|
|
|
|
%patch4 -p1
|
|
|
|
%patch5 -p1
|
2009-08-22 00:01:46 +00:00
|
|
|
%patch6 -p1
|
2010-01-26 20:23:39 +00:00
|
|
|
%patch7 -p1
|
|
|
|
%patch8 -p1
|
|
|
|
%patch9 -p1
|
2009-04-13 14:29:39 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
cd src
|
|
|
|
make bin/e1000.rom
|
|
|
|
make bin/virtio-net.rom
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}/usr/share/qemu/
|
2010-01-26 20:23:39 +00:00
|
|
|
mkdir -p %{buildroot}/usr/share/etherboot
|
|
|
|
cp src/bin/e1000.rom %{buildroot}/usr/share/etherboot/e1000-82542.zrom
|
|
|
|
cp src/bin/virtio-net.rom %{buildroot}/usr/share/etherboot/virtio-net.zrom
|
|
|
|
ln -sf ../etherboot/e1000-82542.zrom %{buildroot}/usr/share/qemu/pxe-e1000.bin
|
|
|
|
ln -sf ../etherboot/virtio-net.zrom %{buildroot}/usr/share/qemu/pxe-virtio.bin
|
2009-04-13 14:29:39 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
/usr
|
|
|
|
%changelog
|