]> git.pld-linux.org Git - packages/apinger.git/blame - apinger.spec
- unify (use $RETVAL for exit)
[packages/apinger.git] / apinger.spec
CommitLineData
7309f02d 1Summary: Alarm Pinger - network monitor with mail notification
32fbd106 2Summary(pl.UTF-8): Alarm Pinger - monitor sieci z powiadamianiem pocztą
8fc24eb0 3Name: apinger
335717e6 4Version: 0.6.1
e6f3fc51 5Release: 5
8fc24eb0
JK
6License: GPL
7Group: Networking/Utilities
020c02dd 8Source0: http://www.bnet.pl/~jajcus/apinger/%{name}-%{version}.tar.gz
0437a659 9# Source0-md5: 3505e6503ec06363613f16713501bb33
8fc24eb0
JK
10Source1: %{name}.init
11Source2: %{name}.sysconf
12Patch0: %{name}-user.patch
e617d29b 13Patch1: %{name}-avg_delay.patch
e6f3fc51
JK
14Patch2: %{name}-config_overwrite_fix.patch
15Patch3: %{name}-rrd_timestamp.patch
8fc24eb0 16URL: http://www.bnet.pl/~jajcus/
14887b8b 17BuildRequires: rpmbuild(macros) >= 1.268
15f61976 18Requires(post,preun): /sbin/chkconfig
14887b8b 19Requires: rc-scripts
8fc24eb0
JK
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22%description
7309f02d
JB
23Alarm Pinger is a little tool which monitors various IP devices by
24simple ICMP echo requests. There are various other tools, that can do
cce0999b 25this, but most of them are shell or Perl scripts, spawning many
7309f02d
JB
26processes, thus much CPU-expensive, especially when one wants
27continuous monitoring and fast response on target failure. Alarm
28Pinger is a single process written in C, so it doesn't need much CPU
29power even when monitoring many targets with frequent probes. Alarm
30Pinger supports both IPv4 and IPv6.
8fc24eb0 31
14647248
JR
32%description -l pl.UTF-8
33Alarm Pinger to małe narzędzie monitorujące różne urządzenia IP
34wykorzystując pakiety ICMP echo request/reply (tzw. ping). Są różne
35inne narzędzia, które to potrafią, ale większość z nich to skrypty
36shella lub Perla uruchamiające wiele procesów, przez co mocno
37obciążające maszynę, szczególnie gdy ktoś chce ciągłego monitorowania
7309f02d 38i szybkiej informacji o awarii. Alarm Pinger to pojedynczy proces
14647248
JR
39napisany w C, więc nie wymaga wielkiej mocy obliczeniowej, nawet gdy
40bada wiele urządzeń częstymi pingami. Alarm Pinger obsługuje zarówno
7309f02d 41IPv4 jak i IPv6.
8fc24eb0
JK
42
43%prep
44%setup -q
45%patch0 -p1
e6f3fc51
JK
46%patch1 -p1
47%patch2 -p1
48%patch3 -p1
8fc24eb0
JK
49
50%build
b4772bd6 51%configure
8fc24eb0
JK
52%{__make}
53
54%install
55rm -rf $RPM_BUILD_ROOT
56install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
57
f54b4d27
PG
58%{__make} install \
59 DESTDIR=$RPM_BUILD_ROOT
60
8fc24eb0
JK
61install src/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
62install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
63install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
64
65%clean
66rm -rf $RPM_BUILD_ROOT
67
68%post
69/sbin/chkconfig --add apinger
14887b8b 70%service apinger restart
8fc24eb0
JK
71
72%preun
73if [ "$1" = "0" ]; then
14887b8b 74 %service apinger stop
8fc24eb0 75 /sbin/chkconfig --del apinger
b4772bd6 76fi
8fc24eb0
JK
77
78%files
79%defattr(644,root,root,755)
378a2193 80%doc AUTHORS NEWS TODO README doc/FAQ.html
8fc24eb0
JK
81%attr(755,root,root) %{_sbindir}/*
82%attr(754,root,root) %config(noreplace) /etc/rc.d/init.d/apinger
020c02dd 83%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/apinger
84%attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
This page took 0.094236 seconds and 4 git commands to generate.