2007-10-26 22:44:33 +00:00
|
|
|
Summary: Core executables and data of the xCAT management project
|
|
|
|
Name: xCAT-client
|
2009-01-28 15:42:14 +00:00
|
|
|
Version: %(cat Version)
|
2007-10-26 22:44:33 +00:00
|
|
|
Release: snap%(date +"%Y%m%d%H%M")
|
2012-06-15 16:59:08 +00:00
|
|
|
Epoch: 4
|
2007-10-26 22:44:33 +00:00
|
|
|
License: EPL
|
|
|
|
Group: Applications/System
|
2009-01-28 15:42:14 +00:00
|
|
|
Source: xCAT-client-%(cat Version).tar.gz
|
2007-10-26 22:44:33 +00:00
|
|
|
Packager: IBM Corp.
|
|
|
|
Vendor: IBM Corp.
|
|
|
|
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
2007-12-11 19:15:28 +00:00
|
|
|
Prefix: /opt/xcat
|
2007-10-26 22:44:33 +00:00
|
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
2012-06-15 14:17:07 +00:00
|
|
|
%define fsm %(if [ "$fsm" = "1" ];then echo 1; else echo 0; fi)
|
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
# AIX will build with an arch of "ppc"
|
|
|
|
%ifos linux
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
|
|
|
|
2010-11-24 16:49:34 +00:00
|
|
|
Provides: xCAT-client = %{epoch}:%{version}
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2012-03-20 15:49:33 +00:00
|
|
|
Requires: perl-xCAT >= %{epoch}:%(cat Version)
|
|
|
|
|
2009-07-22 13:59:21 +00:00
|
|
|
# fping or nmap is needed by pping (in case xCAT-client is installed by itself on a remote client)
|
2009-03-21 13:54:13 +00:00
|
|
|
%ifos linux
|
2012-10-25 09:12:25 +00:00
|
|
|
Requires: nmap perl-XML-Simple perl-XML-Parser
|
2009-07-16 14:39:11 +00:00
|
|
|
%else
|
|
|
|
Requires: expat
|
2009-03-21 13:54:13 +00:00
|
|
|
%endif
|
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
%description
|
2009-07-22 13:59:21 +00:00
|
|
|
xCAT-client provides the xCAT commands (chtab, chnode, rpower, etc) helpful in administrating systems at scale, with particular attention paid to large HPC clusters.
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2008-08-04 14:25:15 +00:00
|
|
|
%prep
|
2009-01-28 15:42:14 +00:00
|
|
|
%setup -q -n xCAT-client
|
2007-10-26 22:44:33 +00:00
|
|
|
%build
|
2008-02-27 19:52:07 +00:00
|
|
|
# This phase is done in (for RH): /usr/src/redhat/BUILD/xCAT-client-2.0
|
|
|
|
# All of the tarball source has been unpacked there and is in the same file structure
|
|
|
|
# as it is in svn.
|
|
|
|
|
2008-03-17 13:34:40 +00:00
|
|
|
# Convert pods to man pages and html pages
|
|
|
|
./xpod2man
|
2008-02-25 13:41:10 +00:00
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
%install
|
2008-02-27 19:52:07 +00:00
|
|
|
# The install phase puts all of the files in the paths they should be in when the rpm is
|
|
|
|
# installed on a system. The RPM_BUILD_ROOT is a simulated root file system and usually
|
|
|
|
# has a value like: /var/tmp/xCAT-client-2.0-snap200802270932-root
|
2007-10-26 22:44:33 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2007-11-30 15:38:30 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/sbin
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/scripts
|
2009-10-06 14:31:57 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/tools
|
2007-12-05 18:17:28 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man1
|
2008-02-07 19:09:44 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man3
|
2007-12-05 18:17:28 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man5
|
2008-03-14 21:03:11 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/man/man8
|
2007-12-11 19:15:28 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-client
|
2008-03-17 13:34:40 +00:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man1
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man3
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man5
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/doc/man8
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2009-01-09 19:58:57 +00:00
|
|
|
%ifos linux
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/rvid
|
2008-12-09 15:54:08 +00:00
|
|
|
cp share/xcat/rvid/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/rvid/
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{prefix}/share/xcat/rvid/*
|
2009-01-09 19:58:57 +00:00
|
|
|
%endif
|
|
|
|
|
2007-11-30 15:38:30 +00:00
|
|
|
cp bin/* $RPM_BUILD_ROOT/%{prefix}/bin
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{prefix}/bin/*
|
|
|
|
cp sbin/* $RPM_BUILD_ROOT/%{prefix}/sbin
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{prefix}/sbin/*
|
2008-02-27 19:52:07 +00:00
|
|
|
|
2008-03-17 13:34:40 +00:00
|
|
|
# These were built dynamically in the build phase
|
2007-12-05 18:17:28 +00:00
|
|
|
cp share/man/man1/* $RPM_BUILD_ROOT/%{prefix}/share/man/man1
|
|
|
|
chmod 444 $RPM_BUILD_ROOT/%{prefix}/share/man/man1/*
|
2008-02-07 19:09:44 +00:00
|
|
|
cp share/man/man3/* $RPM_BUILD_ROOT/%{prefix}/share/man/man3
|
|
|
|
chmod 444 $RPM_BUILD_ROOT/%{prefix}/share/man/man3/*
|
2007-12-05 18:17:28 +00:00
|
|
|
cp share/man/man5/* $RPM_BUILD_ROOT/%{prefix}/share/man/man5
|
|
|
|
chmod 444 $RPM_BUILD_ROOT/%{prefix}/share/man/man5/*
|
2008-03-14 21:03:11 +00:00
|
|
|
cp share/man/man8/* $RPM_BUILD_ROOT/%{prefix}/share/man/man8
|
|
|
|
chmod 444 $RPM_BUILD_ROOT/%{prefix}/share/man/man8/*
|
2008-02-27 19:52:07 +00:00
|
|
|
|
2008-03-17 13:34:40 +00:00
|
|
|
# %ifos linux
|
|
|
|
# cp share/doc/xCAT2.0.odt $RPM_BUILD_ROOT/%{prefix}/share/doc
|
|
|
|
# cp share/doc/xCAT2.0.pdf $RPM_BUILD_ROOT/%{prefix}/share/doc
|
|
|
|
# %else
|
|
|
|
# cp share/doc/xCAT2onAIX.odt $RPM_BUILD_ROOT/%{prefix}/share/doc
|
|
|
|
# cp share/doc/xCAT2onAIX.pdf $RPM_BUILD_ROOT/%{prefix}/share/doc
|
|
|
|
# %endif
|
2012-06-15 14:17:07 +00:00
|
|
|
%if %fsm
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{prefix}/bin/*setup
|
2012-06-15 14:17:13 +00:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{prefix}/bin/xdcp
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{prefix}/bin/xdsh
|
2012-06-15 14:17:07 +00:00
|
|
|
%else
|
2008-03-17 13:34:40 +00:00
|
|
|
cp -r share/doc/* $RPM_BUILD_ROOT/%{prefix}/share/doc
|
|
|
|
chmod 755 $RPM_BUILD_ROOT/%{prefix}/share/doc/*
|
|
|
|
# These were built dynamically during the build phase
|
|
|
|
# cp share/doc/man1/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man1
|
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man1/*
|
|
|
|
# cp share/doc/man3/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man3
|
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man3/*
|
|
|
|
# cp share/doc/man5/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man5
|
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man5/*
|
|
|
|
# cp share/doc/man8/* $RPM_BUILD_ROOT/%{prefix}/share/doc/man8
|
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/man8/*
|
2007-12-11 19:15:28 +00:00
|
|
|
cp LICENSE.html $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-client
|
|
|
|
chmod 644 $RPM_BUILD_ROOT/%{prefix}/share/doc/packages/xCAT-client/*
|
2012-06-15 14:17:07 +00:00
|
|
|
%endif
|
2007-10-26 22:44:33 +00:00
|
|
|
|
2009-10-06 14:31:57 +00:00
|
|
|
cp share/xcat/tools/* $RPM_BUILD_ROOT/%{prefix}/share/xcat/tools
|
2007-10-26 22:44:33 +00:00
|
|
|
#cp usr/share/xcat/scripts/setup-local-client.sh $RPM_BUILD_ROOT/usr/share/xcat/scripts/setup-local-client.sh
|
|
|
|
#chmod 755 $RPM_BUILD_ROOT/usr/share/xcat/scripts/setup-local-client.sh
|
|
|
|
|
2008-02-27 19:52:07 +00:00
|
|
|
# These links get made in the RPM_BUILD_ROOT/prefix area
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rpower
|
|
|
|
ln -sf xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rscan
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makedhcp
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makehosts
|
2009-04-30 13:45:23 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makeknownhosts
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/nodeset
|
2008-02-04 16:55:14 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/setupiscsidev
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makeconservercf
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rbeacon
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rvitals
|
2008-02-26 00:15:08 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodestat
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rinv
|
2009-01-06 11:13:06 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rflash
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rspreset
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rsetboot
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rbootseq
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/reventlog
|
2010-02-22 20:50:18 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rmhypervisor
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodels
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodech
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/noderm
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rnetboot
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/getmacs
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/mkvm
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rmvm
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/lsvm
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/chvm
|
2008-01-18 16:47:26 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/tabgrep
|
2009-09-21 11:30:05 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/renergy
|
2009-12-17 21:08:27 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/litetree
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/litefile
|
2010-08-18 03:22:35 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/lslite
|
2011-12-27 03:46:19 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/lstree
|
2010-05-17 11:55:44 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/lsflexnode
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rmflexnode
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/mkflexnode
|
2011-03-21 09:29:15 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lsslp
|
2011-03-17 15:55:44 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/imgcapture
|
2011-03-25 06:43:28 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/swapnodes
|
2009-09-30 18:33:56 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodegrpch
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/tabdump
|
2010-04-05 11:41:29 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/tabprune
|
2011-09-07 15:23:35 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/tabch
|
2008-02-01 16:23:20 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/packimage
|
2010-09-14 08:22:36 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/rmimage
|
2010-03-17 14:04:01 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makedns
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/gettab
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/nodeadd
|
2010-09-16 02:05:28 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/xcatsetup
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/makenetworks
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/copycds
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/regnotif
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/unregnotif
|
2008-03-21 20:32:41 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/monstart
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/monstop
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/monls
|
2008-08-01 17:37:13 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/moncfg
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/mondecfg
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/monadd
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/monrm
|
2009-06-30 02:25:58 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/monshow
|
2008-10-20 17:11:33 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/sinv
|
2008-10-22 15:56:46 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/rollupdate
|
2010-11-01 13:24:34 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/runrollupdate
|
2009-06-15 11:23:10 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/webrun
|
2009-12-17 21:08:27 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/ilitefile
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/liteimg
|
2010-01-05 05:19:26 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/gennr
|
2010-04-08 22:25:32 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/imgexport
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/imgimport
|
2008-09-24 17:03:25 +00:00
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/mkdsklsnode
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/rmdsklsnode
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/mknimimage
|
2010-06-17 13:11:42 +00:00
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/chkosimage
|
2008-09-24 17:03:25 +00:00
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/rmnimimage
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/nimnodeset
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/nimnodecust
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/mkdef
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/chdef
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/lsdef
|
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/rmdef
|
2007-12-12 19:21:54 +00:00
|
|
|
ln -sf ../bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/xcat2nim
|
2007-11-30 16:20:53 +00:00
|
|
|
ln -sf ../bin/xdsh $RPM_BUILD_ROOT/%{prefix}/bin/xdcp
|
2008-08-04 14:25:15 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/mknb
|
2009-08-04 20:28:03 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/mkhwconn
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rmhwconn
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/lshwconn
|
2012-08-15 11:38:01 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/xCATWorld
|
2010-10-13 14:01:11 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/makeroutes
|
2010-06-28 21:25:56 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/snmove
|
2010-10-27 15:33:05 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lsxcatd
|
2012-08-03 08:48:26 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/slpdiscover
|
2012-08-20 14:03:30 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/cfghost
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/cfgve
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lsve
|
2012-08-31 03:31:39 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/rmosdistro
|
2013-04-07 06:35:15 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lskit
|
2012-09-24 15:03:58 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/addkit
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/rmkit
|
2013-04-07 06:35:15 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lskitcomp
|
2012-10-21 08:42:09 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/addkitcomp
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/rmkitcomp
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/chkkitcomp
|
2013-04-07 06:35:15 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lskitdeployparam
|
2012-09-25 20:53:24 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/lskmodules
|
2012-11-01 09:19:19 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodeimport
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodediscoverstart
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodediscoverstop
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodediscoverls
|
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodediscoverstatus
|
2013-05-16 08:25:42 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodediscoverdef
|
2012-11-01 09:19:19 +00:00
|
|
|
ln -sf ../bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/nodeaddunmged
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodepurge
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodechprofile
|
2013-01-25 08:55:14 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/noderegenips
|
2012-11-01 09:19:19 +00:00
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/noderefresh
|
|
|
|
ln -sf ../bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodechmac
|
2012-08-30 09:37:17 +00:00
|
|
|
|
2009-05-26 17:19:47 +00:00
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
%clean
|
2008-02-27 19:52:07 +00:00
|
|
|
# This step does not happen until *after* the %files packaging below
|
2007-10-26 22:44:33 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-12-11 19:15:28 +00:00
|
|
|
#%doc LICENSE.html
|
2008-02-27 19:52:07 +00:00
|
|
|
# Just package everything that has been copied into RPM_BUILD_ROOT
|
2007-11-30 15:38:30 +00:00
|
|
|
%{prefix}
|
2007-10-26 22:44:33 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-06-15 03:47:11 +00:00
|
|
|
* Thu Jun 14 2012 - Brian Elliott Finley <bfinley@us.ibm.com>
|
|
|
|
- Use "-f" when removing /etc/profile.d/xcat.* on erase. If the file is
|
|
|
|
already removed, then with out "-f", the package fails to erase.
|
|
|
|
|
2007-10-26 22:44:33 +00:00
|
|
|
* Wed May 2 2007 - Norm Nott <nott@us.ibm.com>
|
|
|
|
- Made changes to make this work on AIX
|
|
|
|
|
|
|
|
* Tue Feb 20 2007 Jarrod Johnson <jbjohnso@us.ibm.com>
|
|
|
|
- Start core rpm for 1.3 work
|
|
|
|
|
2012-05-04 17:16:42 +00:00
|
|
|
%pre
|
|
|
|
# only need to check on AIX
|
|
|
|
%ifnos linux
|
|
|
|
if [ -x /usr/sbin/emgr ]; then # Check for emgr cmd
|
|
|
|
/usr/sbin/emgr -l 2>&1 | grep -i xCAT # Test for any xcat ifixes - msg and exit if found
|
|
|
|
if [ $? = 0 ]; then
|
|
|
|
echo "Error: One or more xCAT emgr ifixes are installed. You must use the /usr/sbin/emgr command to uninstall each xCAT emgr ifix prior to RPM installation."
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
2008-02-25 13:41:10 +00:00
|
|
|
%post
|
2007-12-11 19:15:28 +00:00
|
|
|
%ifos linux
|
2009-05-26 17:19:47 +00:00
|
|
|
cat << EOF > /etc/profile.d/xcat.sh
|
|
|
|
XCATROOT=$RPM_INSTALL_PREFIX0
|
2013-03-12 13:26:09 +00:00
|
|
|
PATH=\$XCATROOT/bin:\$XCATROOT/sbin:\$XCATROOT/share/xcat/tools:\$PATH
|
2011-10-18 08:39:41 +00:00
|
|
|
MANPATH=\$XCATROOT/share/man:\$MANPATH
|
2008-05-21 16:22:09 +00:00
|
|
|
export XCATROOT PATH MANPATH
|
2009-05-26 17:19:47 +00:00
|
|
|
export PERL_BADLANG=0
|
|
|
|
EOF
|
2007-12-11 19:15:28 +00:00
|
|
|
|
2009-05-26 17:19:47 +00:00
|
|
|
cat << EOF > /etc/profile.d/xcat.csh
|
|
|
|
setenv XCATROOT "$RPM_INSTALL_PREFIX0"
|
2013-03-12 13:26:09 +00:00
|
|
|
setenv PATH \${XCATROOT}/bin:\${XCATROOT}/sbin:\${XCATROOT}/share/xcat/tools:\${PATH}
|
2009-05-26 17:19:47 +00:00
|
|
|
if !(\$?MANPATH) then
|
|
|
|
setenv MANPATH \${XCATROOT}/share/man:
|
|
|
|
else
|
2011-10-18 08:52:13 +00:00
|
|
|
setenv MANPATH \${XCATROOT}/share/man:\${MANPATH}
|
2009-05-26 17:19:47 +00:00
|
|
|
endif
|
|
|
|
setenv PERL_BADLANG 0
|
|
|
|
EOF
|
2007-12-11 19:15:28 +00:00
|
|
|
chmod 755 /etc/profile.d/xcat.*
|
2008-01-14 16:53:45 +00:00
|
|
|
|
|
|
|
%else
|
2010-01-21 13:35:17 +00:00
|
|
|
if ! egrep PERL5LIB /etc/environment > /dev/null 2>&1 ; then
|
2009-08-03 14:30:23 +00:00
|
|
|
echo "
|
|
|
|
# xCAT Perl setup
|
2009-08-03 15:16:04 +00:00
|
|
|
PERL5LIB=/usr/opt/perl5/lib/5.8.2:/usr/opt/perl5/lib/5.8.2/aix-thread-multi:/usr/opt/perl5/lib/site_perl/5.8.2:/usr/opt/perl5/lib/site_perl/5.8.2/aix-thread-multi " >>/etc/environment
|
2009-04-22 16:57:35 +00:00
|
|
|
fi
|
2010-03-29 17:54:12 +00:00
|
|
|
|
2012-03-21 09:16:13 +00:00
|
|
|
if ! egrep XCATROOT /etc/environment > /dev/null 2>&1 ; then
|
|
|
|
echo "
|
|
|
|
# xCAT setup
|
|
|
|
XCATROOT=$RPM_INSTALL_PREFIX0
|
2013-03-12 13:26:09 +00:00
|
|
|
PATH=\$XCATROOT/bin:\$XCATROOT/sbin:\$XCATROOT/share/xcat/tools:$PATH
|
2012-03-21 09:16:13 +00:00
|
|
|
MANPATH=\$XCATROOT/share/man:\$MANPATH
|
|
|
|
" >> /etc/environment
|
|
|
|
fi
|
|
|
|
|
2010-03-29 17:54:12 +00:00
|
|
|
if ! egrep XCATROOT /etc/profile > /dev/null 2>&1 ; then
|
|
|
|
echo "
|
|
|
|
# xCAT setup
|
|
|
|
XCATROOT=$RPM_INSTALL_PREFIX0
|
2013-03-12 13:26:09 +00:00
|
|
|
PATH=\$XCATROOT/bin:\$XCATROOT/sbin:\$XCATROOT/share/xcat/tools:$PATH
|
2011-10-18 08:52:13 +00:00
|
|
|
MANPATH=\$XCATROOT/share/man:\$MANPATH
|
2010-03-29 17:54:12 +00:00
|
|
|
export XCATROOT PATH MANPATH
|
|
|
|
" >>/etc/profile
|
|
|
|
fi
|
2007-12-11 19:15:28 +00:00
|
|
|
%endif
|
2010-12-20 02:56:35 +00:00
|
|
|
exit 0
|
2007-12-11 19:15:28 +00:00
|
|
|
|
|
|
|
%preun
|
|
|
|
%ifos linux
|
|
|
|
if [ $1 == 0 ]; then #This means only on -e
|
2012-06-15 03:47:11 +00:00
|
|
|
rm -f /etc/profile.d/xcat.*
|
2007-12-11 19:15:28 +00:00
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|