]> git.pld-linux.org Git - packages/apinger.git/blob - apinger.spec
- Release: 5
[packages/apinger.git] / apinger.spec
1 Summary:        Alarm Pinger - network monitor with mail notification
2 Summary(pl):    Alarm Pinger - monitor sieci z powiadamianiem poczt±
3 Name:           apinger
4 Version:        0.6.1
5 Release:        5
6 License:        GPL
7 Group:          Networking/Utilities
8 Source0:        http://www.bnet.pl/~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 URL:            http://www.bnet.pl/~jajcus/
17 BuildRequires:  rpmbuild(macros) >= 1.268
18 Requires(post,preun):   /sbin/chkconfig
19 Requires:       rc-scripts
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Alarm Pinger is a little tool which monitors various IP devices by
24 simple ICMP echo requests. There are various other tools, that can do
25 this, but most of them are shell or Perl scripts, spawning many
26 processes, thus much CPU-expensive, especially when one wants
27 continuous monitoring and fast response on target failure. Alarm
28 Pinger is a single process written in C, so it doesn't need much CPU
29 power even when monitoring many targets with frequent probes. Alarm
30 Pinger supports both IPv4 and IPv6.
31
32 %description -l pl
33 Alarm Pinger to ma³e narzêdzie monitoruj±ce ró¿ne urz±dzenia IP
34 wykorzystuj±c pakiety ICMP echo request/reply (tzw. ping). S± ró¿ne
35 inne narzêdzia, które to potrafi±, ale wiêkszo¶æ z nich to skrypty
36 shella lub Perla uruchamiaj±ce wiele procesów, przez co mocno
37 obci±¿aj±ce maszynê, szczególnie gdy kto¶ chce ci±g³ego monitorowania
38 i szybkiej informacji o awarii. Alarm Pinger to pojedynczy proces
39 napisany w C, wiêc nie wymaga wielkiej mocy obliczeniowej, nawet gdy
40 bada wiele urz±dzeñ czêstymi pingami. Alarm Pinger obs³uguje zarówno
41 IPv4 jak i IPv6.
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch1 -p1
47 %patch2 -p1
48 %patch3 -p1
49
50 %build
51 %configure
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
57
58 %{__make} install \
59         DESTDIR=$RPM_BUILD_ROOT
60
61 install src/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
62 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
63 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %post
69 /sbin/chkconfig --add apinger
70 %service apinger restart
71
72 %preun
73 if [ "$1" = "0" ]; then
74         %service apinger stop
75         /sbin/chkconfig --del apinger
76 fi
77
78 %files
79 %defattr(644,root,root,755)
80 %doc AUTHORS NEWS TODO README doc/FAQ.html
81 %attr(755,root,root) %{_sbindir}/*
82 %attr(754,root,root) %config(noreplace) /etc/rc.d/init.d/apinger
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.088648 seconds and 3 git commands to generate.