Make xCAT rpm to install all files in /install/winpostscripts/* for Windows support
This commit is contained in:
parent
5021289a86
commit
50686d34c7
1
makerpm
1
makerpm
@ -75,6 +75,7 @@ function makexcat {
|
||||
tar --exclude .svn --exclude upflag -czf $RPMROOT/SOURCES/postscripts.tar.gz postscripts LICENSE.html
|
||||
tar --exclude .svn -czf $RPMROOT/SOURCES/prescripts.tar.gz prescripts
|
||||
tar --exclude .svn -czf $RPMROOT/SOURCES/templates.tar.gz templates
|
||||
tar --exclude .svn -czf $RPMROOT/SOURCES/winpostscripts.tar.gz winpostscripts
|
||||
cp xcat.conf $RPMROOT/SOURCES
|
||||
cp xCATMN $RPMROOT/SOURCES
|
||||
cd - >/dev/null
|
||||
|
@ -17,6 +17,7 @@ Source5: xCATMN
|
||||
|
||||
%ifos linux
|
||||
Source4: prescripts.tar.gz
|
||||
Source6: winpostscripts.tar.gz
|
||||
%endif
|
||||
|
||||
Provides: xCAT = %{version}
|
||||
@ -73,6 +74,7 @@ hardware management and software management.
|
||||
%ifos linux
|
||||
tar zxf %{SOURCE2}
|
||||
tar zxf %{SOURCE4}
|
||||
tar zxf %{SOURCE6}
|
||||
%else
|
||||
rm -rf postscripts
|
||||
cp %{SOURCE2} /opt/freeware/src/packages/BUILD
|
||||
@ -132,6 +134,7 @@ cd $RPM_BUILD_ROOT/install
|
||||
%ifos linux
|
||||
tar zxf %{SOURCE2}
|
||||
tar zxf %{SOURCE4}
|
||||
tar zxf %{SOURCE6}
|
||||
%else
|
||||
cp %{SOURCE2} $RPM_BUILD_ROOT/install
|
||||
gunzip -f postscripts.tar.gz
|
||||
@ -189,6 +192,7 @@ exit 0
|
||||
/etc/xCATMN
|
||||
/install/postscripts
|
||||
/install/prescripts
|
||||
/install/winpostscripts
|
||||
%defattr(-,root,root)
|
||||
|
||||
%postun
|
||||
|
Loading…
Reference in New Issue
Block a user