for defect 3138248,
add one checkpoint to check whether dhcp-server is installed on SuSE or not, which doesn't affect RedHat. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8678 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -64,6 +64,21 @@ tar -xf postscripts.tar
 | 
			
		||||
 | 
			
		||||
%build
 | 
			
		||||
 | 
			
		||||
%pre
 | 
			
		||||
if [ -e "/etc/SuSE-release" ]; then
 | 
			
		||||
    # In SuSE, dhcp-server provides the dhcp server, which is different from the RedHat.
 | 
			
		||||
    # When building the package, we cannot add "dhcp-server" into the "Requires", because RedHat doesn't 
 | 
			
		||||
    # have such one package.
 | 
			
		||||
    # so there's only one solution, Yes, it looks ugly.
 | 
			
		||||
    rpm -q dhcp-server >/dev/null
 | 
			
		||||
    if [ $? != 0 ]; then
 | 
			
		||||
        echo ""
 | 
			
		||||
        echo "!! On SuSE, the dhcp-server package should be installed before installing xCAT !!"
 | 
			
		||||
        exit -1;
 | 
			
		||||
    fi
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
%install
 | 
			
		||||
mkdir -p $RPM_BUILD_ROOT/etc/apache2/conf.d
 | 
			
		||||
mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user