(file) Return to tog-pegasus.spec CVS log (file) (dir) Up to [Pegasus] / pegasus / rpm

Diff for /pegasus/rpm/tog-pegasus.spec between version 1.20.2.36 and 1.20.2.39

version 1.20.2.36, 2005/12/15 08:01:51 version 1.20.2.39, 2006/10/10 18:06:17
Line 39 
Line 39 
 %define srcRelease 1 %define srcRelease 1
 Summary: OpenPegasus WBEM Services for Linux Summary: OpenPegasus WBEM Services for Linux
 Name: tog-pegasus Name: tog-pegasus
 Version: 2.4.3  Version: 2.4.4
 Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}} Release: 1%{?LINUX_VERSION:.%{LINUX_VERSION}}
 Group: Systems Management/Base Group: Systems Management/Base
 Copyright: Open Group Pegasus Open Source Copyright: Open Group Pegasus Open Source
Line 714 
Line 714 
 echo "L                      = Reading" >> %PEGASUS_CONFIG_DIR/ssl.cnf echo "L                      = Reading" >> %PEGASUS_CONFIG_DIR/ssl.cnf
 echo "O                      = The Open Group" >> %PEGASUS_CONFIG_DIR/ssl.cnf echo "O                      = The Open Group" >> %PEGASUS_CONFIG_DIR/ssl.cnf
 echo "OU                     = The OpenPegasus Project" >> %PEGASUS_CONFIG_DIR/ssl.cnf echo "OU                     = The OpenPegasus Project" >> %PEGASUS_CONFIG_DIR/ssl.cnf
 echo "CN                     = `host \`hostname\`|cut -d\" \" -f1`" >> %PEGASUS_CONFIG_DIR/ssl.cnf  DN=`hostname`;
   if [ -z "$DN" ] || [ "$DN" = "(none)" ]; then
           DN='localhost.localdomain';
   fi;
   FQDN=`{ host -W1 $DN 2>/dev/null || echo "$DN has address "; } |\
           grep 'has address' | head -1 | sed 's/\ .*$//'`;
   if [ -z "$FQDN" ] ; then
       FQDN="$DN";
   fi;
   # cannot use 'hostname --fqdn' because this can hang indefinitely
   echo "CN                     = $FQDN"  >> %PEGASUS_CONFIG_DIR/ssl.cnf
 chmod 400 %PEGASUS_CONFIG_DIR/ssl.cnf chmod 400 %PEGASUS_CONFIG_DIR/ssl.cnf
 chown root %PEGASUS_CONFIG_DIR/ssl.cnf chown root %PEGASUS_CONFIG_DIR/ssl.cnf
 chgrp root %PEGASUS_CONFIG_DIR/ssl.cnf chgrp root %PEGASUS_CONFIG_DIR/ssl.cnf
Line 799 
Line 809 
 fi fi
  
 %preun devel %preun devel
   if [ $1 -eq 0 ]; then
      # Check if the cimserver is running
      rm -f %PEGASUS_SBIN_DIR/RPM_CIMSERVER_STARTED
      isRunning=`ps -el | grep cimserver | grep -v "grep cimserver"`
      if [ ! "$isRunning" ]; then
           %PEGASUS_SBIN_DIR/cimserver
           touch %PEGASUS_SBIN_DIR/RPM_CIMSERVER_STARTED
      fi
 make --directory  %PEGASUS_SAMPLES_DIR -s clean make --directory  %PEGASUS_SAMPLES_DIR -s clean
 make --directory  %PEGASUS_SAMPLES_DIR/Providers/Load deregisterproviders     make --directory  %PEGASUS_SAMPLES_DIR/Providers/Load -i deregisterproviders
      if [ -f %PEGASUS_SBIN_DIR/RPM_CIMSERVER_STARTED ]
      then
           rm %PEGASUS_SBIN_DIR/RPM_CIMSERVER_STARTED
           %PEGASUS_SBIN_DIR/cimserver -s
      fi
   fi
  
 %if %{PEGASUS_BUILD_TEST_RPM} %if %{PEGASUS_BUILD_TEST_RPM}
 %preun test %preun test


Legend:
Removed from v.1.20.2.36  
changed lines
  Added in v.1.20.2.39

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2