From 0851987c3b64874d5a2cdba12d72dbedefefbb8e Mon Sep 17 00:00:00 2001 From: daniceexi Date: Tue, 17 Dec 2013 02:23:38 -0500 Subject: [PATCH] Make xCAT rpm to install all files in /install/winpostscripts/* for Windows support --- makerpm | 1 + xCAT/xCAT.spec | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/makerpm b/makerpm index 695e0859d..e5f184614 100755 --- a/makerpm +++ b/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 diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index ec8b3458e..8fc716e71 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -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