From 31b6fbfab8b441eac278efb9b6fc0def6402fabe Mon Sep 17 00:00:00 2001 From: memotype Date: Wed, 9 Jul 2008 14:10:24 +0000 Subject: [PATCH] oops, didn't completely fix the xCAT.spec file... git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1856 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT/xCAT.spec | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/xCAT/xCAT.spec b/xCAT/xCAT.spec index 94b80638f..443a3d12c 100644 --- a/xCAT/xCAT.spec +++ b/xCAT/xCAT.spec @@ -43,12 +43,6 @@ tar -xf postscripts.tar %build %install -if [ -e /etc/SuSE-release ]; then - apachedir=$RPM_BUILD_ROOT/etc/apache2/conf.d -else - apachedir=$RPM_BUILD_ROOT/etc/httpd/conf.d -fi - mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d mkdir -p $RPM_BUILD_ROOT/install/postscripts @@ -92,10 +86,11 @@ $RPM_INSTALL_PREFIX0/sbin/xcatconfig %else . /etc/profile.d/xcat.sh -if grep -i suse /etc/issue >/dev/null 2>&1; then +# ugly hack so we can have 1 RPM support both sles and rhel +if [ -e /etc/SuSE-release ]; then apachename=apache2 else - apachedir=httpd + apachename=httpd fi if [ ! -d /var/ftp/install ]; then @@ -221,6 +216,7 @@ fi %files %{prefix} +# one for sles, one for rhel. yes, it's ugly... /etc/httpd/conf.d/xcat.conf /etc/apache2/conf.d/xcat.conf /install/postscripts