--- rpms/smeserver-nagios-backup/contribs7/smeserver-nagios-backup.spec 2008/04/02 15:03:58 1.3 +++ rpms/smeserver-nagios-backup/contribs7/smeserver-nagios-backup.spec 2010/12/06 20:48:20 1.6 @@ -1,17 +1,18 @@ -# $Id$ +# $Id: smeserver-nagios-backup.spec,v 1.5 2008/11/25 16:20:26 slords Exp $ # Authority: mweinber # Name: Michael Weinberger Summary: Nagios backup integration %define name smeserver-nagios-backup Name: %{name} -%define version 1.0.3 -%define release 0 +%define version 2.0.0 +%define release 1 Version: %{version} Release: %{release}%{?dist} License: GPL Group: Applications/System Source: %{name}-%{version}.tar.gz +Packager: Michael Weinberger BuildRoot: /var/tmp/%{name}-buildroot/ BuildArch: noarch Requires: smeserver-release >= 7.1.3 @@ -20,6 +21,10 @@ BuildRequires: e-smith-devtools AutoReq: no %changelog +* Mon Nov 17 2008 Michael Weinberger 2.0.0-1.sme + removed scripts from specfile + add PNP rrd files (/var/lib/nagios/) to backup + * Mon Dec 03 2007 Michael Weinberger Version 1.0.3 included rrd database of nagios grapher @@ -38,7 +43,7 @@ and all config files and directories mus (cfg_file and cfg_dir settings) %prep -%setup -q -n %{name}-%{version} +%setup %build mkdir -p root/home/e-smith/db/nagios @@ -54,23 +59,5 @@ rm -f %{name}-%{version}-filelist %clean rm -rf $RPM_BUILD_ROOT -%post -if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then - echo -n -fi - -%preun -if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then - echo -n -fi - - -%postun -if [ "x`/bin/cat /proc/1/cmdline`" = "xinit [7]" ] ; then - if [ $1 = 0 ] ; then # uninstall - echo -n - fi -fi - %files -f %{name}-%{version}-filelist %defattr(-,root,root)