/[smecontribs]/rpms/smeserver-nagios-nsca/contribs7/smeserver-nagios-nsca.spec
ViewVC logotype

Diff of /rpms/smeserver-nagios-nsca/contribs7/smeserver-nagios-nsca.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.5 by slords, Tue Nov 25 16:20:27 2008 UTC Revision 1.6 by slords, Mon Dec 6 20:54:12 2010 UTC
# Line 1  Line 1 
1  # $Id: smeserver-nagios-nsca.spec,v 1.3 2008/04/02 15:03:58 slords Exp $  # $Id: smeserver-nagios-nsca.spec,v 1.5 2008/11/25 16:20:27 slords Exp $
2  # Authority: mweinber  # Authority: mweinber
3  # Name: Michael Weinberger  # Name: Michael Weinberger
4    
5  Summary: Nagios nsca integration  Summary: Nagios nsca integration
6  %define name smeserver-nagios-nsca  %define name smeserver-nagios-nsca
7  Name: %{name}  Name: %{name}
8  %define version 1.0.1  %define version 2.0.0
9  %define release 0  %define release 1
10  Version: %{version}  Version: %{version}
11  Release: %{release}%{?dist}  Release: %{release}%{?dist}
12  License: GPL  License: GPL
# Line 20  BuildRequires: e-smith-devtools Line 20  BuildRequires: e-smith-devtools
20  AutoReq: no  AutoReq: no
21    
22  %changelog  %changelog
23    * Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme
24      removed script from specfile
25    
26  * Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de>  * Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de>
27  - Initial release  - Initial release
28    
# Line 32  expand-template /etc/hosts.allow Line 35  expand-template /etc/hosts.allow
35    
36    
37  %prep  %prep
38  %setup -q -n %{name}-%{version}  %setup
39    
40  %build  %build
41    
# Line 48  find $RPM_BUILD_ROOT -depth -type l -pri Line 51  find $RPM_BUILD_ROOT -depth -type l -pri
51  %clean  %clean
52  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
53    
 %post  
 /sbin/e-smith/config printtype nsca > /dev/null || /sbin/e-smith/config set nsca service  
 if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then  
         /sbin/e-smith/expand-template /etc/hosts.allow  
         /sbin/e-smith/service nsca restart  
 fi  
   
 %preun  
 if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then  
         if [ $1 = 0 ] ; then # uninstall  
                 /sbin/e-smith/service nsca stop  
         fi  
 fi  
   
   
 %postun  
 if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then  
         if [ $1 = 0 ] ; then # uninstall  
                 /sbin/e-smith/expand-template /etc/hosts.allow  
         fi  
 fi  
   
54  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
55  %defattr(-,root,root)  %defattr(-,root,root)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed