2008-02-12 14:32:03 +00:00
|
|
|
Summary: Metapackage for a common, default xCAT service node setup
|
|
|
|
Name: xCATsn
|
|
|
|
Version: 2.0
|
|
|
|
Release: snap%(date +"%Y%m%d%H%M")
|
|
|
|
License: EPL
|
|
|
|
Group: Applications/System
|
|
|
|
Vendor: IBM Corp.
|
|
|
|
Packager: IBM Corp.
|
|
|
|
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
|
|
|
Prefix: /opt/xcat
|
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
|
|
|
#BuildArch: noarch
|
|
|
|
Source1: xcat.conf
|
|
|
|
Provides: xCATsn = %{version}
|
2008-03-19 13:44:11 +00:00
|
|
|
Requires: xCAT-server xCAT-client perl-xCAT perl-XML-Parser
|
2008-02-12 14:32:03 +00:00
|
|
|
|
|
|
|
%ifos linux
|
2008-03-19 13:24:47 +00:00
|
|
|
Requires: atftp dhcp httpd nfs-utils expect conserver fping bind perl-DBD-Pg postgresql-server postgresql syslinux
|
2008-02-12 14:32:03 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%ifarch i386 i586 i686 x86 x86_64
|
|
|
|
Requires: xCAT-nbroot-oss-x86_64 xCAT-nbroot-core-x86_64 xCAT-nbkernel-x86_64
|
|
|
|
Requires: ipmitool >= 1.8.9
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
xCATsn is a service node management package intended for at-scale management,
|
|
|
|
including hardware management and software management.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d/
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/
|
|
|
|
cd -
|
|
|
|
cp %{SOURCE1} $RPM_BUILD_ROOT/etc/httpd/conf.d/xcat.conf
|
|
|
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT
|
|
|
|
cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
if [ "$1" = "1" ]; then #Only if installing for the first time..
|
2008-05-16 11:11:59 +00:00
|
|
|
# so conserver will start
|
|
|
|
mkdir -p /var/log/consoles
|
2008-02-12 14:32:03 +00:00
|
|
|
|
2008-02-18 13:11:05 +00:00
|
|
|
# makes it a service node
|
|
|
|
touch /etc/xCATSN
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Start the xcatd daemon
|
2008-02-12 14:32:03 +00:00
|
|
|
|
|
|
|
XCATROOT=$RPM_INSTALL_PREFIX0 /etc/init.d/xcatd start
|
|
|
|
chkconfig httpd on
|
2008-02-27 13:15:26 +00:00
|
|
|
/etc/rc.d/init.d/httpd stop
|
|
|
|
/etc/rc.d/init.d/httpd start
|
2008-02-12 14:32:03 +00:00
|
|
|
echo "xCATsn is now installed"
|
|
|
|
fi
|
|
|
|
|
|
|
|
%clean
|
|
|
|
|
|
|
|
%files
|
|
|
|
%{prefix}
|
|
|
|
/etc/httpd/conf.d/xcat.conf
|
|
|
|
%defattr(-,root,root)
|