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

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

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


Revision 1.1 - (hide annotations) (download)
Wed Feb 27 17:45:41 2008 UTC (16 years, 9 months ago) by slords
Branch: MAIN
Import on branch contribs7 of package smeserver-nagios-backup-1.0.3-0.src.rpm

1 slords 1.1 Summary: Nagios backup integration
2     %define name smeserver-nagios-backup
3     Name: %{name}
4     %define version 1.0.3
5     %define release 0
6     Version: %{version}
7     Release: %{release}
8     License: GPL
9     Group: Applications/System
10     Source: %{name}-%{version}.tar.gz
11     Packager: Michael Weinberger <mweinber@neddix.de>
12     BuildRoot: /var/tmp/%{name}-buildroot/
13     BuildArch: noarch
14     Requires: smeserver-release >= 7.1.3
15     Requires: nagios >= 2.9
16     AutoReq: no
17    
18     %changelog
19     * Mon Dec 03 2007 Michael Weinberger <mweinber@neddix.de>
20     Version 1.0.3
21     included rrd database of nagios grapher
22     * Sun Oct 21 2007 Michael Weinberger <mweinber@neddix.de>
23     - Initial release
24    
25     %description
26     Nagios backup integration
27     requires the following nagios configuration:
28    
29     log_file=/var/log/nagios/nagios.log
30     log_archive_path=/var/log/nagios/archives
31     state_retention_file=/var/log/nagios/retention.dat
32    
33     and all config files and directories must be located in /etc/nagios/
34     (cfg_file and cfg_dir settings)
35    
36     %prep
37     %setup
38     %setup -q -n %{name}-%{version}
39    
40     %build
41     mkdir -p root/home/e-smith/db/nagios
42    
43     %install
44     rm -rf $RPM_BUILD_ROOT
45     (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
46     rm -f %{name}-%{version}-filelist
47     /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \
48     --dir /home/e-smith/db/nagios 'attr(0750,root,admin)' \
49     >> %{name}-%{version}-filelist
50    
51     %clean
52     rm -rf $RPM_BUILD_ROOT
53    
54     %pre
55    
56     %post
57     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
58     echo -n
59     fi
60    
61     %preun
62     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
63     echo -n
64     fi
65    
66    
67     %postun
68     if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then
69     if [ $1 = 0 ] ; then # uninstall
70     echo -n
71     fi
72     fi
73    
74     %files -f %{name}-%{version}-filelist
75     %defattr(-,root,root)

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