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

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

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


Revision 1.7 - (hide annotations) (download)
Mon Dec 6 20:50:38 2010 UTC (13 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: smeserver-nagios-backup-2_0_0-1_el4_sme, HEAD
Changes since 1.6: +1 -2 lines
Remove packager

1 slords 1.7 # $Id: smeserver-nagios-backup.spec,v 1.6 2010/12/06 20:48:20 slords Exp $
2 slords 1.3 # Authority: mweinber
3     # Name: Michael Weinberger
4    
5 slords 1.1 Summary: Nagios backup integration
6     %define name smeserver-nagios-backup
7     Name: %{name}
8 slords 1.6 %define version 2.0.0
9     %define release 1
10 slords 1.1 Version: %{version}
11 slords 1.2 Release: %{release}%{?dist}
12 slords 1.1 License: GPL
13     Group: Applications/System
14     Source: %{name}-%{version}.tar.gz
15     BuildRoot: /var/tmp/%{name}-buildroot/
16     BuildArch: noarch
17     Requires: smeserver-release >= 7.1.3
18     Requires: nagios >= 2.9
19 slords 1.2 BuildRequires: e-smith-devtools
20 slords 1.1 AutoReq: no
21    
22     %changelog
23 slords 1.6 * Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme
24     removed scripts from specfile
25     add PNP rrd files (/var/lib/nagios/) to backup
26    
27 slords 1.1 * Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de>
28     Version 1.0.3
29     included rrd database of nagios grapher
30     * Sun Oct 21 2007 Michael Weinberger <mweinber@neddix.de>
31     - Initial release
32    
33     %description
34     Nagios backup integration
35     requires the following nagios configuration:
36    
37     log_file=/var/log/nagios/nagios.log
38     log_archive_path=/var/log/nagios/archives
39     state_retention_file=/var/log/nagios/retention.dat
40    
41     and all config files and directories must be located in /etc/nagios/
42     (cfg_file and cfg_dir settings)
43    
44     %prep
45 slords 1.6 %setup
46 slords 1.1
47     %build
48     mkdir -p root/home/e-smith/db/nagios
49    
50     %install
51     rm -rf $RPM_BUILD_ROOT
52     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
53     rm -f %{name}-%{version}-filelist
54     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
55     --dir /home/e-smith/db/nagios 'attr(0750,root,admin)' \
56     >> %{name}-%{version}-filelist
57    
58     %clean
59     rm -rf $RPM_BUILD_ROOT
60    
61     %files -f %{name}-%{version}-filelist
62     %defattr(-,root,root)

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