1 |
vip-ire |
1.3 |
# $Id: smeserver-megaraidmon.spec,v 1.2 2009/03/02 23:53:29 slords Exp $ |
2 |
slords |
1.1 |
# Authority: vip-ire |
3 |
|
|
# Name: Daniel Berteaud |
4 |
|
|
|
5 |
|
|
#%define fpbxversion 2.5.0 |
6 |
|
|
%define version 0.1 |
7 |
vip-ire |
1.3 |
%define release 1 |
8 |
slords |
1.1 |
%define name smeserver-megaraidmon |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
Summary: A small tool to monitor MegaRAID based RAID Controler |
12 |
|
|
Name: %{name} |
13 |
|
|
Version: %{version} |
14 |
|
|
Release: %{release}%{?dist} |
15 |
|
|
License: GPL |
16 |
|
|
Group: System/Servers |
17 |
|
|
Source: %{name}-%{version}.tar.gz |
18 |
|
|
#Patch0: smeserver-megaraidmon-0.1-foo.patch |
19 |
|
|
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
|
|
URL: http://www.lsi.com/ |
21 |
|
|
|
22 |
vip-ire |
1.3 |
BuildRequires: e-smith-devtools |
23 |
slords |
1.1 |
BuildArch: noarch |
24 |
|
|
|
25 |
|
|
Requires: perl(Mail::Send) |
26 |
|
|
Requires: perl(esmith::ConfigDB) |
27 |
|
|
Requires: e-smith-base |
28 |
|
|
Requires: MegaCli |
29 |
|
|
AutoReqProv: no |
30 |
|
|
|
31 |
|
|
|
32 |
|
|
%description |
33 |
|
|
This small tool will just run a cron job which will check the state of your logical disk. |
34 |
|
|
If the state is not Optimal, it'll send a mail to admin_raidreport (which is an alias for admin by default) |
35 |
|
|
|
36 |
|
|
|
37 |
|
|
%changelog |
38 |
vip-ire |
1.3 |
* Tue Mar 03 2009 daniel B. <daniel@firewall-services.com> [0.1-1] |
39 |
|
|
- Add e-smith-devtools as a dependencie |
40 |
slords |
1.1 |
|
41 |
|
|
* Tue Nov 25 2008 daniel B. <daniel@firewall-services.com> [0.1-0] |
42 |
|
|
- initial release |
43 |
|
|
|
44 |
|
|
%prep |
45 |
|
|
|
46 |
|
|
%setup -q -n %{name}-%{version} |
47 |
|
|
#%patch0 -p1 |
48 |
|
|
|
49 |
|
|
%build |
50 |
|
|
# Build symlinks |
51 |
|
|
#perl createlinks |
52 |
|
|
|
53 |
|
|
|
54 |
|
|
%install |
55 |
|
|
rm -rf $RPM_BUILD_ROOT |
56 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
57 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
58 |
|
|
--file /usr/bin/megaraidmon 'attr(0755,root,root)' \ |
59 |
|
|
> %{name}-%{version}-%{release}-filelist |
60 |
|
|
|
61 |
|
|
%clean |
62 |
|
|
rm -rf $RPM_BUILD_ROOT |
63 |
|
|
|
64 |
|
|
%files -f %{name}-%{version}-%{release}-filelist |
65 |
|
|
%defattr(-,root,root) |
66 |
|
|
|
67 |
|
|
#true |
68 |
|
|
|