mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-23 10:01:46 +00:00
1bcb32e9c7
Former-commit-id: b579e4c6cf0f00281d2f0e1f64851fa97258b4a4
55 lines
1.3 KiB
RPMSpec
55 lines
1.3 KiB
RPMSpec
Name: xnba-undi
|
|
Version: 1.0.3
|
|
Release: 7
|
|
Summary: xCAT Network Boot Agent for x86 PXE hosts
|
|
Obsoletes: gpxe-undi
|
|
|
|
Group: System Environment/Kernel
|
|
License: GPL
|
|
URL: https://ipxe.org/vendor/xcat/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)
|
|
|
|
|
|
Source0: xnba-%{version}-7.tar.bz2
|
|
|
|
%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 xnba-1.0.3-7
|
|
|
|
%build
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
cd src
|
|
make bin/undionly.kkpxe
|
|
make bin-x86_64-efi/snponly.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/snponly.efi %{buildroot}/tftpboot/xcat/xnba.efi
|
|
|
|
|
|
%post
|
|
|
|
%preun
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%files
|
|
/tftpboot/xcat/xnba.kpxe
|
|
/tftpboot/xcat/xnba.efi
|
|
%changelog
|