/[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.6 - (hide annotations) (download)
Mon Dec 6 20:48:20 2010 UTC (13 years, 5 months ago) by slords
Branch: MAIN
Changes since 1.5: +9 -22 lines
* Mon Nov 17 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme
  removed scripts from specfile
  add PNP rrd files (/var/lib/nagios/) to backup

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

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