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

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

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


Revision 1.2 - (hide annotations) (download)
Wed Feb 27 18:23:27 2008 UTC (16 years, 8 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-nagios-nsca-1_0_1-0_el4_sme
Changes since 1.1: +2 -5 lines
Fix specfile

1 slords 1.1 Summary: Nagios nsca integration
2     %define name smeserver-nagios-nsca
3     Name: %{name}
4     %define version 1.0.1
5     %define release 0
6     Version: %{version}
7 slords 1.2 Release: %{release}%{?dist}
8 slords 1.1 License: GPL
9     Group: Applications/System
10     Source: %{name}-%{version}.tar.gz
11     BuildRoot: /var/tmp/%{name}-buildroot/
12     BuildArch: noarch
13     Requires: smeserver-release >= 7.1.3
14     Requires: nagios-nsca >= 2.6
15 slords 1.2 BuildRequires: e-smith-devtools
16 slords 1.1 AutoReq: no
17    
18     %changelog
19     * Thu Oct 1 2007 Michael Weinberger <mweinber@neddix.de>
20     - Initial release
21    
22     %description
23     Nagios nsca integration
24    
25     Setting the TCP wrapper allowed hosts:
26     config setprop nsca HostsAllow "127.0.0.1 10.203.104.0/255.255.252.0 172.22.32.0/255.255.240.0"
27     expand-template /etc/hosts.allow
28    
29    
30     %prep
31     %setup -q -n %{name}-%{version}
32    
33     %build
34    
35     %install
36     rm -rf $RPM_BUILD_ROOT
37     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
38     rm -f %{name}-%{version}-filelist
39     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
40     >> %{name}-%{version}-filelist
41     find $RPM_BUILD_ROOT -depth -type l -print |\
42     sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist
43    
44     %clean
45     rm -rf $RPM_BUILD_ROOT
46    
47     %post
48     /sbin/e-smith/config printtype nsca > /dev/null || /sbin/e-smith/config set nsca service
49     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
50     /sbin/e-smith/expand-template /etc/hosts.allow
51     /sbin/e-smith/service nsca restart
52     fi
53    
54     %preun
55     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
56     if [ $1 = 0 ] ; then # uninstall
57     /sbin/e-smith/service nsca stop
58     fi
59     fi
60    
61    
62     %postun
63     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
64     if [ $1 = 0 ] ; then # uninstall
65     /sbin/e-smith/expand-template /etc/hosts.allow
66     fi
67     fi
68    
69     %files -f %{name}-%{version}-filelist
70     %defattr(-,root,root)

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