Changeset 14

Show
Ignore:
Timestamp:
04/07/08 15:29:55 (11 years ago)
Author:
rmcmillen
Message:

Modified rpm spec file to only install the sebekd service if hflow2 is not installed.

Location:
sebekd/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • sebekd/trunk/Makefile.rpm

    r7 r14  
    11version=3.0.3 
    2 release=5 
     2release=6 
    33pname=sebekd-$(version) 
    44tarball=$(pname)-$(release).tar.gz 
  • sebekd/trunk/sebekd.spec

    r7 r14  
    22Name: sebekd 
    33Version: 3.0.3  
    4 Release: 5 
     4Release: 6 
    55License: BSD The Honeynet Project 
    66Group:  honeywall/data_capture  
     
    6262if [ $1 -eq 1 ]; then 
    6363        #--- no other instances must be an install not upgrade 
    64         /sbin/chkconfig --add sebekd 
     64        if [ ! -e "/etc/init.d/hflow" ] 
     65        then 
     66                /sbin/chkconfig --add sebekd 
     67        fi 
    6568 
    6669fi 
     
    6871if [ $1 -gt 1 ]; then 
    6972        #--- this was an upgrade, make sure to restart the deamons 
    70         /sbin/service sebekd restart 
    71  
     73        if [ ! -e "/etc/init.d/hflow" ] 
     74        then 
     75                /sbin/service sebekd restart 
     76        fi 
    7277fi 
    7378 
     
    7984        /etc/init.d/sebekd stop 
    8085        /sbin/chkconfig --del sebekd 
    81  
    8286fi