]> 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:        6
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 Patch1:         format-security.patch
14 URL:            http://www.strocamp.net/opensource/cpqarrayd.php
15 BuildRequires:  autoconf >= 2.50
16 BuildRequires:  automake
17 BuildRequires:  net-snmp-devel
18 BuildRequires:  rpmbuild(macros) >= 1.228
19 Requires(post,preun):   /sbin/chkconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Cpqarrayd monitors SmartArray controllers for you and notifies by
24 sending SNMP traps and via syslog.
25
26 %description -l pl.UTF-8
27 Cpqarrayd monitoruje kontrolery SmartArray i powiadamia przez
28 wysyłanie pułapek SNMP oraz sysloga.
29
30 %prep
31 %setup -q
32 %patch0 -p1
33 %patch1 -p1
34
35 %build
36 %{__aclocal}
37 %{__autoconf}
38 %{__autoheader}
39 %{__automake}
40 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d}
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/cpqarrayd
50 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/cpqarrayd
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post
56 /sbin/chkconfig --add cpqarrayd
57 %service cpqarrayd restart "Compaq RAID Array Monitor"
58
59 %preun
60 if [ "$1" = "0" ]; then
61         %service -q %{name} stop
62         /sbin/chkconfig --del cpqarrayd
63 fi
64
65 %files
66 %defattr(644,root,root,755)
67 %doc AUTHORS ChangeLog NEWS README
68 %attr(755,root,root) %{_sbindir}/cpqarrayd
69 %{_mandir}/man1/cpqarrayd.1*
70 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/cpqarrayd
71 %attr(754,root,root) /etc/rc.d/init.d/cpqarrayd
This page took 0.087141 seconds and 3 git commands to generate.