2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

Merge pull request #1941 from pdlun92/coral-rpm

Add skeleton files for xCAT-csm rpm
This commit is contained in:
Victor Hu
2016-10-18 17:07:59 -04:00
committed by GitHub
8 changed files with 61 additions and 2 deletions

View File

@ -67,7 +67,7 @@ if [ -z "$UP" ]; then
fi
# These are the rpms that should be built for each kind of xcat build
ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe"
ALLBUILD="perl-xCAT xCAT-client xCAT-server xCAT-test xCAT-buildkit xCAT xCATsn xCAT-genesis-scripts xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe xCAT-csm"
ZVMBUILD="perl-xCAT xCAT-server xCAT-UI"
ZVMLINK="xCAT-client xCAT xCATsn"
# xCAT and xCATsn have PCM specific configuration - conserver-xcat, syslinux-xcat
@ -299,7 +299,7 @@ if [ "$OSNAME" = "AIX" ]; then
fi
# Build the rest of the noarch rpms
for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe; do
for rpmname in xCAT-client xCAT-server xCAT-IBMhpc xCAT-rmc xCAT-UI xCAT-test xCAT-buildkit xCAT-SoftLayer xCAT-vlan xCAT-confluent xCAT-probe xCAT-csm; do
if [[ " $EMBEDBUILD " != *\ $rpmname\ * ]]; then continue; fi
if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-buildkit" ]; then continue; fi # do not build xCAT-buildkit on aix
if [ "$OSNAME" = "AIX" -a "$rpmname" = "xCAT-SoftLayer" ]; then continue; fi # do not build xCAT-softlayer on aix

View File

@ -0,0 +1 @@
#csm compute

View File

@ -0,0 +1 @@
#csm launch

View File

@ -0,0 +1 @@
#csm login

View File

@ -0,0 +1 @@
#csm service

View File

@ -0,0 +1 @@
#csm workload manager

View File

@ -0,0 +1 @@
#example postscript for CSM

53
xCAT-csm/xCAT-csm.spec Normal file
View File

@ -0,0 +1,53 @@
Summary: Packages for installation of CSM nodes
Name: xCAT-csm
Version: %{?version:%{version}}%{!?version:%(cat Version)}
Release: %{?release:%{release}}%{!?release:snap%(date +"%Y%m%d%H%M")}
Epoch: 4
License: IBM
Group: Applications/System
Source: xCAT-csm-%{version}.tar.gz
Packager: IBM Corp.
Vendor: IBM Corp.
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Prefix: /opt/xcat
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
%ifos linux
BuildArch: noarch
%endif
Provides: xCAT-csm = %{epoch}:%{version}
Requires: xCAT
%description
xCAT-csm provides Packages for installation of CSM nodes
%prep
%setup -q -n xCAT-csm
%build
%install
rm -rf %{buildroot}
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
mkdir -p $RPM_BUILD_ROOT/install/postscripts/csm/
cp csm* $RPM_BUILD_ROOT/%{prefix}/share/xcat/install/rh/
cp install/postscripts/* $RPM_BUILD_ROOT/install/postscripts/csm/
%clean
# This step does not happen until *after* the %files packaging below
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{prefix}
/install/postscripts
%doc
%changelog