1 |
unnilennium |
1.1 |
# $Id: smeserver-nagios-plugins-mysql.spec,v 1.6 2010/12/06 20:56:48 slords Exp $ |
2 |
|
|
# Authority: mweinber |
3 |
|
|
# Name: Michael Weinberger |
4 |
|
|
|
5 |
|
|
Summary: Nagios plugin check_mysql_smeserver |
6 |
|
|
%define name smeserver-nagios-plugins-mysql |
7 |
|
|
Name: %{name} |
8 |
|
|
%define version 2.0.0 |
9 |
|
|
%define release 1 |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GPL |
13 |
|
|
Group: Applications/System |
14 |
|
|
URL: http://www.my-plugin.de/wiki/doku.php |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
BuildRoot: /var/tmp/%{name}-buildroot/ |
17 |
|
|
BuildArch: noarch |
18 |
|
|
Requires: smeserver-release >= 7.3 |
19 |
|
|
Requires: perl-Nagios-Plugin |
20 |
|
|
BuildRequires: e-smith-devtools |
21 |
|
|
AutoReq: no |
22 |
|
|
|
23 |
|
|
%changelog |
24 |
|
|
* Tue Nov 18 2008 Michael Weinberger <mweinber@neddix.de> 2.0.0-1.sme |
25 |
|
|
added performance data output |
26 |
|
|
|
27 |
|
|
* Sat Nov 24 2007 Michael Weinberger <mweinber@neddix.de> |
28 |
|
|
Version 1.0.2 |
29 |
|
|
added Response Time |
30 |
|
|
replaced mysqladmin status call by a 'show status' query |
31 |
|
|
* Sat Nov 17 2007 Michael Weinberger <mweinber@neddix.de> |
32 |
|
|
requires perl-Nagios-Plugin |
33 |
|
|
* Thu Nov 9 2007 Michael Weinberger <mweinber@neddix.de> |
34 |
|
|
- Initial release |
35 |
|
|
|
36 |
|
|
%description |
37 |
|
|
This plugin checks the mysqld service on smeserver |
38 |
|
|
|
39 |
|
|
%prep |
40 |
|
|
%setup |
41 |
|
|
|
42 |
|
|
%build |
43 |
|
|
|
44 |
|
|
%install |
45 |
|
|
rm -rf $RPM_BUILD_ROOT |
46 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
47 |
|
|
rm -f %{name}-%{version}-filelist |
48 |
|
|
find $RPM_BUILD_ROOT -depth -type f -print |\ |
49 |
|
|
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
50 |
|
|
-e "s@^/usr/lib/nagios/plugins/@%attr(0550,nagios,root) &@"\ |
51 |
|
|
>> %{name}-%{version}-filelist |
52 |
|
|
find $RPM_BUILD_ROOT -depth -type l -print |\ |
53 |
|
|
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
54 |
|
|
|
55 |
|
|
%clean |
56 |
|
|
rm -rf $RPM_BUILD_ROOT |
57 |
|
|
|
58 |
|
|
%files -f %{name}-%{version}-filelist |
59 |
|
|
%defattr(-,root,root) |