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

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

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

Revision 1.2 by slords, Wed Feb 27 18:23:21 2008 UTC Revision 1.6 by slords, Mon Dec 6 20:52:02 2010 UTC
# Line 1  Line 1 
1    # $Id: smeserver-nagios-nrpe.spec,v 1.5 2008/11/25 16:20:26 slords Exp $
2    # Authority: mweinber
3    # Name: Michael Weinberger
4    
5  Summary: Nagios nrpe integration  Summary: Nagios nrpe integration
6  %define name smeserver-nagios-nrpe  %define name smeserver-nagios-nrpe
7  Name: %{name}  Name: %{name}
8  %define version 1.0.3  %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 10  Group: Applications/System Line 14  Group: Applications/System
14  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
15  BuildRoot: /var/tmp/%{name}-buildroot/  BuildRoot: /var/tmp/%{name}-buildroot/
16  BuildArch: noarch  BuildArch: noarch
17  Requires: smeserver-release >= 7.1.3  Requires: smeserver-release >= 7.3
18  Requires: nagios-nrpe >= 2.5.2  Requires: nagios-nrpe >= 2.5.2
19  Requires: nagios-plugins-nrpe >= 2.5.2  Requires: nagios-plugins-nrpe >= 2.5.2
20  Requires: nagios-plugins  Requires: nagios-plugins
# Line 19  BuildRequires: e-smith-devtools Line 23  BuildRequires: e-smith-devtools
23  AutoReq: no  AutoReq: no
24    
25  %changelog  %changelog
26    * Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1
27      removed scripts from specfile
28    
29  * Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de>  * Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de>
30    Version 1.0.3    Version 1.0.3
31    modified templateexpand in events (/etc/sudoer perms bug)    modified templateexpand in events (/etc/sudoer perms bug)
# Line 45  Expected Output is: "NRPE v2.5.1" Line 52  Expected Output is: "NRPE v2.5.1"
52    
53    
54  %prep  %prep
55  %setup -q -n %{name}-%{version}  %setup
56    
57  %build  %build
58    
# Line 61  find $RPM_BUILD_ROOT -depth -type l -pri Line 68  find $RPM_BUILD_ROOT -depth -type l -pri
68  %clean  %clean
69  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
70    
 %post  
 /sbin/e-smith/config printtype nrpe > /dev/null || /sbin/e-smith/config set nrpe service  
 if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then  
         /sbin/e-smith/expand-template /etc/hosts.allow  
         /sbin/e-smith/expand-template /etc/sudoers  
         /sbin/e-smith/service nrpe restart  
 fi  
   
 %preun  
 if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then  
         if [ $1 = 0 ] ; then # uninstall  
                 /sbin/e-smith/service nrpe 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  
                 echo -n  
         fi  
 fi  
   
71  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
72  %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