]>
Commit | Line | Data |
---|---|---|
ce57a71e | 1 | Summary: Cpqarrayd - SmartArray controllers monitoring |
e5b54308 | 2 | Summary(pl.UTF-8): Cpqarrayd - monitorowanie kontrolerów SmartArray |
2b953891 | 3 | Name: cpqarrayd |
2b10780f | 4 | Version: 2.2 |
b500fbf6 | 5 | Release: 0.4 |
2b10780f | 6 | License: GPL v2+ |
2b953891 | 7 | Group: Applications/System |
2b10780f JB |
8 | Source0: http://www.strocamp.net/opensource/compaq/downloads/%{name}-%{version}.tar.gz |
9 | # Source0-md5: d287d1ad9317443063aff1098f7bc4f4 | |
4b460ac9 ER |
10 | Source1: %{name}.init |
11 | Source2: %{name}.sysconfig | |
2b10780f JB |
12 | Patch0: %{name}-headers.patch |
13 | URL: http://www.strocamp.net/opensource/cpqarrayd.php | |
14 | BuildRequires: autoconf >= 2.50 | |
15 | BuildRequires: automake | |
16 | BuildRequires: net-snmp-devel | |
b500fbf6 ER |
17 | BuildRequires: rpmbuild(macros) >= 1.228 |
18 | Requires(post,preun): /sbin/chkconfig | |
2b953891 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Cpqarrayd monitors SmartArray controllers for you and notifies by | |
23 | sending SNMP traps and via syslog. | |
24 | ||
45666b28 | 25 | %description -l pl.UTF-8 |
ce57a71e | 26 | Cpqarrayd monitoruje kontrolery SmartArray i powiadamia przez |
45666b28 | 27 | wysyłanie pułapek SNMP oraz sysloga. |
ce57a71e | 28 | |
2b953891 | 29 | %prep |
30 | %setup -q | |
2b10780f | 31 | %patch0 -p1 |
2b953891 | 32 | |
33 | %build | |
2b10780f JB |
34 | %{__aclocal} |
35 | %{__autoconf} | |
36 | %{__autoheader} | |
37 | %{__automake} | |
2b953891 | 38 | %configure |
39 | %{__make} | |
40 | ||
41 | %install | |
42 | rm -rf $RPM_BUILD_ROOT | |
4b460ac9 | 43 | install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d} |
2b953891 | 44 | |
45 | %{__make} install \ | |
46 | DESTDIR=$RPM_BUILD_ROOT | |
4b460ac9 ER |
47 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpqarrayd |
48 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpqarrayd | |
2b953891 | 49 | |
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
b500fbf6 ER |
53 | %post |
54 | /sbin/chkconfig --add cpqarrayd | |
55 | %service cpqarrayd restart "Compaq RAID Array Monitor" | |
56 | ||
57 | %preun | |
58 | if [ "$1" = "0" ]; then | |
59 | %service -q %{name} stop | |
60 | /sbin/chkconfig --del cpqarrayd | |
61 | fi | |
62 | ||
2b953891 | 63 | %files |
64 | %defattr(644,root,root,755) | |
2b10780f JB |
65 | %doc AUTHORS ChangeLog NEWS README |
66 | %attr(755,root,root) %{_sbindir}/cpqarrayd | |
67 | %{_mandir}/man1/cpqarrayd.1* | |
4b460ac9 ER |
68 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cpqarrayd |
69 | %attr(754,root,root) /etc/rc.d/init.d/cpqarrayd |