]> git.pld-linux.org Git - packages/cpqarrayd.git/blob - cpqarrayd.spec
- release 7 (by relup.sh)
[packages/cpqarrayd.git] / cpqarrayd.spec
1 Summary:        Cpqarrayd - SmartArray controllers monitoring
2 Summary(pl.UTF-8):      Cpqarrayd - monitorowanie kontrolerów SmartArray
3 Name:           cpqarrayd
4 Version:        2.3
5 Release:        5
6 License:        GPL v2+
7 Group:          Applications/System
8 Source0:        http://www.strocamp.net/opensource/compaq/downloads/%{name}-%{version}.tar.gz
9 # Source0-md5:  55421afe4817863efab45c59a9486a60
10 Source1:        %{name}.init
11 Source2:        %{name}.sysconfig
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
17 BuildRequires:  rpmbuild(macros) >= 1.228
18 Requires(post,preun):   /sbin/chkconfig
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
25 %description -l pl.UTF-8
26 Cpqarrayd monitoruje kontrolery SmartArray i powiadamia przez
27 wysyłanie pułapek SNMP oraz sysloga.
28
29 %prep
30 %setup -q
31 %patch0 -p1
32
33 %build
34 %{__aclocal}
35 %{__autoconf}
36 %{__autoheader}
37 %{__automake}
38 %configure
39 %{__make}
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
44
45 %{__make} install \
46         DESTDIR=$RPM_BUILD_ROOT
47 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpqarrayd
48 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpqarrayd
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
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
63 %files
64 %defattr(644,root,root,755)
65 %doc AUTHORS ChangeLog NEWS README
66 %attr(755,root,root) %{_sbindir}/cpqarrayd
67 %{_mandir}/man1/cpqarrayd.1*
68 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cpqarrayd
69 %attr(754,root,root) /etc/rc.d/init.d/cpqarrayd
This page took 0.044891 seconds and 3 git commands to generate.