SPECS: nagios-notify.spec - update to 0.10, tool moved to /usr/lib...
glen
glen at pld-linux.org
Tue Apr 8 13:29:32 CEST 2008
Author: glen Date: Tue Apr 8 11:29:32 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- update to 0.10, tool moved to /usr/lib/nagios
---- Files affected:
SPECS:
nagios-notify.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/nagios-notify.spec
diff -u SPECS/nagios-notify.spec:1.12 SPECS/nagios-notify.spec:1.13
--- SPECS/nagios-notify.spec:1.12 Tue Apr 8 11:38:13 2008
+++ SPECS/nagios-notify.spec Tue Apr 8 13:29:27 2008
@@ -1,16 +1,13 @@
# $Revision$, $Date$
-# TODO:
-# - move script to _libdir somewhere
Summary: Nagios Notify Script
Summary(pl.UTF-8): Skrypt powiadamiający dla Nagiosa
Name: nagios-notify
-Version: 0.9.5
-Release: 2
+Version: 0.10
+Release: 1
License: GPL v2
Group: Applications
Source0: %{name}-%{version}.tar.bz2
-# Source0-md5: 523e7ab6209b7ef5b386670cb7c1f08e
-Patch0: %{name}-statusfile.patch
+# Source0-md5: 31e8c4c5fd3df0e4aaf6b5bc1425266f
URL: http://glen.alkohol.ee/nagios-notify/
Requires: awk
Requires: nagios-common
@@ -19,6 +16,7 @@
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _sysconfdir /etc/nagios
+%define _sbindir /usr/lib/nagios
%description
nagios-notify is template based notify script for Nagios.
@@ -29,7 +27,6 @@
%prep
%setup -q
-%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
@@ -40,11 +37,14 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%triggerpostun -- %{name} < 0.10
+%{__sed} -i -e 's,/usr/sbin/%{name},%{_sbindir}/%{name},g' %{_sysconfdir}/plugins/%{name}.cfg
+
%files
%defattr(644,root,root,755)
%dir %{_sysconfdir}/templates
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/templates/*
-%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins/*
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/plugins/%{name}.cfg
%attr(755,root,root) %{_sbindir}/nagios-notify
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -53,6 +53,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2008-04-08 11:29:27 glen
+- update to 0.10, tool moved to /usr/lib/nagios
+
Revision 1.12 2008-04-08 09:38:13 arekm
- rel 2; NAGIOS_STATUSDATAFILE is empty here
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nagios-notify.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list