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