Tree changes for relocation capability
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@107 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6ebf6c0890
commit
072e9d80fe
@ -8,7 +8,7 @@ Source: xCAT-client-2.0.tar.gz
|
||||
Packager: IBM Corp.
|
||||
Vendor: IBM Corp.
|
||||
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
|
||||
Prefix: %{_prefix}
|
||||
Prefix: /usr
|
||||
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-root
|
||||
|
||||
# AIX will build with an arch of "ppc"
|
||||
@ -28,56 +28,56 @@ xCAT-client provides the fundamental xCAT commands (chtab, chnode, rpower, etc)
|
||||
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/sbin
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/xcat/scripts
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/bin
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/sbin
|
||||
mkdir -p $RPM_BUILD_ROOT/%{prefix}/share/xcat/scripts
|
||||
|
||||
cp usr/bin/* $RPM_BUILD_ROOT/usr/bin
|
||||
chmod 755 $RPM_BUILD_ROOT/usr/bin/*
|
||||
cp usr/sbin/* $RPM_BUILD_ROOT/usr/sbin
|
||||
chmod 755 $RPM_BUILD_ROOT/usr/sbin/*
|
||||
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/*
|
||||
|
||||
#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
|
||||
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rpower
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rscan
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/sbin/makedhcp
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/sbin/makehosts
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/sbin/nodeset
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/sbin/makeconservercf
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rbeacon
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rvitals
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rinv
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rspreset
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rsetboot
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rbootseq
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/reventlog
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/nodels
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/nodech
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/noderm
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rnetboot
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/getmacs
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/mkvm
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/rmvm
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/lsvm
|
||||
ln -sf /usr/bin/xcatclient $RPM_BUILD_ROOT/usr/bin/chvm
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/sbin/tabdump
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/sbin/makedns
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/bin/gettab
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/sbin/nodeadd
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/sbin/makenetworks
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/sbin/copycds
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/bin/regnotif
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/bin/unregnotif
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/bin/startmon
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/bin/stopmon
|
||||
ln -sf /usr/bin/xcatclientnnr $RPM_BUILD_ROOT/usr/bin/updatemon
|
||||
ln -sf /usr/bin/xcatDBcmds $RPM_BUILD_ROOT/usr/bin/mkdef
|
||||
ln -sf /usr/bin/xcatDBcmds $RPM_BUILD_ROOT/usr/bin/chdef
|
||||
ln -sf /usr/bin/xcatDBcmds $RPM_BUILD_ROOT/usr/bin/lsdef
|
||||
ln -sf /usr/bin/xcatDBcmds $RPM_BUILD_ROOT/usr/bin/rmdef
|
||||
ln -sf /usr/bin/xdsh $RPM_BUILD_ROOT/usr/bin/xdcp
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rpower
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rscan
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makedhcp
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makehosts
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/nodeset
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/sbin/makeconservercf
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rbeacon
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rvitals
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rinv
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rspreset
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rsetboot
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rbootseq
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/reventlog
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodels
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/nodech
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/noderm
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rnetboot
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/getmacs
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/mkvm
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/rmvm
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/lsvm
|
||||
ln -sf %{prefix}/bin/xcatclient $RPM_BUILD_ROOT/%{prefix}/bin/chvm
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/tabdump
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/makedns
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/gettab
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/nodeadd
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/makenetworks
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/sbin/copycds
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/regnotif
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/unregnotif
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/startmon
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/stopmon
|
||||
ln -sf %{prefix}/bin/xcatclientnnr $RPM_BUILD_ROOT/%{prefix}/bin/updatemon
|
||||
ln -sf %{prefix}/bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/mkdef
|
||||
ln -sf %{prefix}/bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/chdef
|
||||
ln -sf %{prefix}/bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/lsdef
|
||||
ln -sf %{prefix}/bin/xcatDBcmds $RPM_BUILD_ROOT/%{prefix}/bin/rmdef
|
||||
ln -sf %{prefix}/bin/xdsh $RPM_BUILD_ROOT/%{prefix}/bin/xdcp
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -86,9 +86,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%defattr(-,root,root)
|
||||
%doc README
|
||||
%doc LICENSE.html
|
||||
/usr/bin/*
|
||||
/usr/sbin/*
|
||||
#/usr/share/xcat/scripts/setup-local-client.sh
|
||||
%{prefix}
|
||||
|
||||
%changelog
|
||||
* Wed May 2 2007 - Norm Nott <nott@us.ibm.com>
|
||||
|
Loading…
Reference in New Issue
Block a user