]> git.pld-linux.org Git - packages/apinger.git/blame - apinger.spec
- require target and source IP addresses to be specified in config
[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
f23ad833 5Release: 6
8fc24eb0
JK
6License: GPL
7Group: Networking/Utilities
24f88398 8Source0: https://github.com/downloads/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
f23ad833
MK
16Patch4: %{name}-ac.patch
17Patch5: %{name}-no_exit.patch
18Patch6: %{name}-no_forked_receiver.patch
19Patch7: %{name}-srcip.patch
7c9389e5 20Patch8: %{name}-status.patch
24f88398 21URL: https://github.com/Jajcus/apinger/
14887b8b 22BuildRequires: rpmbuild(macros) >= 1.268
15f61976 23Requires(post,preun): /sbin/chkconfig
14887b8b 24Requires: rc-scripts
8fc24eb0
JK
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
7309f02d
JB
28Alarm Pinger is a little tool which monitors various IP devices by
29simple ICMP echo requests. There are various other tools, that can do
cce0999b 30this, but most of them are shell or Perl scripts, spawning many
7309f02d
JB
31processes, thus much CPU-expensive, especially when one wants
32continuous monitoring and fast response on target failure. Alarm
33Pinger is a single process written in C, so it doesn't need much CPU
34power even when monitoring many targets with frequent probes. Alarm
35Pinger supports both IPv4 and IPv6.
8fc24eb0 36
14647248
JR
37%description -l pl.UTF-8
38Alarm Pinger to małe narzędzie monitorujące różne urządzenia IP
39wykorzystując pakiety ICMP echo request/reply (tzw. ping). Są różne
40inne narzędzia, które to potrafią, ale większość z nich to skrypty
41shella lub Perla uruchamiające wiele procesów, przez co mocno
42obciążające maszynę, szczególnie gdy ktoś chce ciągłego monitorowania
7309f02d 43i szybkiej informacji o awarii. Alarm Pinger to pojedynczy proces
14647248
JR
44napisany w C, więc nie wymaga wielkiej mocy obliczeniowej, nawet gdy
45bada wiele urządzeń częstymi pingami. Alarm Pinger obsługuje zarówno
7309f02d 46IPv4 jak i IPv6.
8fc24eb0
JK
47
48%prep
49%setup -q
50%patch0 -p1
e6f3fc51
JK
51%patch1 -p1
52%patch2 -p1
53%patch3 -p1
f23ad833
MK
54%patch4 -p1
55%patch5 -p1
56%patch6 -p1
57%patch7 -p1
7c9389e5 58%patch8 -p1
8fc24eb0
JK
59
60%build
f23ad833
MK
61%{__aclocal}
62%{__autoconf}
63%{__automake}
b4772bd6 64%configure
8fc24eb0
JK
65%{__make}
66
67%install
68rm -rf $RPM_BUILD_ROOT
69install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
70
f54b4d27
PG
71%{__make} install \
72 DESTDIR=$RPM_BUILD_ROOT
73
8fc24eb0
JK
74install src/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
75install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
76install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
77
78%clean
79rm -rf $RPM_BUILD_ROOT
80
81%post
82/sbin/chkconfig --add apinger
14887b8b 83%service apinger restart
8fc24eb0
JK
84
85%preun
86if [ "$1" = "0" ]; then
14887b8b 87 %service apinger stop
8fc24eb0 88 /sbin/chkconfig --del apinger
b4772bd6 89fi
8fc24eb0
JK
90
91%files
92%defattr(644,root,root,755)
378a2193 93%doc AUTHORS NEWS TODO README doc/FAQ.html
8fc24eb0
JK
94%attr(755,root,root) %{_sbindir}/*
95%attr(754,root,root) %config(noreplace) /etc/rc.d/init.d/apinger
020c02dd 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
This page took 0.042671 seconds and 4 git commands to generate.