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