2008-06-02 13:02:07 +00:00
|
|
|
%define version 2.1
|
2008-04-02 14:46:10 +00:00
|
|
|
%ifarch i386 i586 i686 x86
|
2007-10-26 22:44:33 +00:00
|
|
|
%define tarch x86
|
|
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
|
|
%define tarch x86_64
|
|
|
|
%endif
|
|
|
|
%ifarch ppc ppc64
|
|
|
|
%define tarch ppc64
|
|
|
|
%endif
|
|
|
|
BuildArch: noarch
|
|
|
|
%define name xCAT-nbroot-core-%{tarch}
|
|
|
|
Release: snap%(date +"%Y%m%d%H%M")
|
2008-06-26 18:42:36 +00:00
|
|
|
Epoch: 4
|
2007-10-26 22:44:33 +00:00
|
|
|
AutoReq: false
|
2008-01-29 21:22:34 +00:00
|
|
|
Prefix: /opt/xcat
|
2007-10-26 22:44:33 +00:00
|
|
|
AutoProv: false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Group: System/Utilities
|
|
|
|
License: EPL
|
|
|
|
Vendor: IBM Corp.
|
|
|
|
Summary: xCAT-nbroot-coreprovides opensource components of the netboot image
|
|
|
|
URL: http://xcat.org
|
|
|
|
Source1: xcat-nbrootoverlay.tar.gz
|
|
|
|
|
|
|
|
Buildroot: %{_localstatedir}/tmp/xCAT-nbroot-core
|
|
|
|
Packager: IBM Corp.
|
|
|
|
|
|
|
|
%Description
|
|
|
|
xcat-nbroot-core provides the xCAT scripts for the mini-root environment
|
|
|
|
All files included are as they were downloadable on 4/7/2007
|
|
|
|
%Prep
|
|
|
|
|
|
|
|
|
|
|
|
%Build
|
|
|
|
|
|
|
|
%Install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2008-01-29 21:22:34 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/%{tarch}/nbroot
|
|
|
|
cd $RPM_BUILD_ROOT/%{prefix}/share/xcat/netboot/%{tarch}/nbroot
|
2007-10-26 22:44:33 +00:00
|
|
|
tar zxvf %{SOURCE1}
|
2008-01-13 16:56:23 +00:00
|
|
|
chmod 755 etc/init.d/S40network bin/getdestiny bin/getdestiny.awk bin/getipmi bin/getipmi.awk
|
2007-10-26 22:44:33 +00:00
|
|
|
cd -
|
|
|
|
|
|
|
|
|
2008-04-25 14:03:55 +00:00
|
|
|
%post
|
2008-05-21 20:33:25 +00:00
|
|
|
if [ "$1" == "2" ]; then #only on upgrade, as on install it's probably not going to work...
|
|
|
|
if [ -f "/proc/cmdline" ]; then # prevent running it during install into chroot image
|
|
|
|
. /etc/profile.d/xcat.sh
|
|
|
|
mknb %{tarch}
|
|
|
|
fi
|
2008-04-25 14:03:55 +00:00
|
|
|
fi
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
%Files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc LICENSE.html
|
|
|
|
/
|