]> git.pld-linux.org Git - packages/apinger.git/blobdiff - apinger.spec
- disable parallel build
[packages/apinger.git] / apinger.spec
index 9a1a16ff0ed2e6da1013457b36be2ec0c14516da..08745d5c57187d0e3269e1e7701d1a60d950a460 100644 (file)
@@ -1,51 +1,76 @@
 Summary:       Alarm Pinger - network monitor with mail notification
-Summary(pl):   Alarm Pinger - monitor sieci z powiadamianiem poczt±
+Summary(pl.UTF-8):     Alarm Pinger - monitor sieci z powiadamianiem pocztą
 Name:          apinger
-Version:       0.2
-Release:       1
+Version:       0.6.1
+Release:       7
 License:       GPL
 Group:         Networking/Utilities
-Source0:       http://www.bnet.pl/~jajcus/%{name}/%{name}-%{version}.tar.gz
+Source0:       https://github.com/downloads/Jajcus/apinger/%{name}-%{version}.tar.gz
+# Source0-md5: 3505e6503ec06363613f16713501bb33
 Source1:       %{name}.init
 Source2:       %{name}.sysconf
 Patch0:                %{name}-user.patch
-URL:           http://www.bnet.pl/~jajcus/
+Patch1:                %{name}-avg_delay.patch
+Patch2:                %{name}-config_overwrite_fix.patch
+Patch3:                %{name}-rrd_timestamp.patch
+Patch4:                %{name}-ac.patch
+Patch5:                %{name}-no_exit.patch
+Patch6:                %{name}-no_forked_receiver.patch
+Patch7:                %{name}-srcip.patch
+Patch8:                %{name}-status.patch
+URL:           https://github.com/Jajcus/apinger/
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun):  /sbin/chkconfig
+Requires:      rc-scripts
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Alarm Pinger is a little tool which monitors various IP devices by
 simple ICMP echo requests. There are various other tools, that can do
-this, but most of them are shell or perl scripts, spawning many
+this, but most of them are shell or Perl scripts, spawning many
 processes, thus much CPU-expensive, especially when one wants
 continuous monitoring and fast response on target failure. Alarm
 Pinger is a single process written in C, so it doesn't need much CPU
 power even when monitoring many targets with frequent probes. Alarm
 Pinger supports both IPv4 and IPv6.
 
-%description -l pl
-Alarm Pinger to ma³e narzêdzie monitoruj±ce ró¿ne urz±dzenia IP
-wykorzystuj±c pakiety ICMP echo request/reply (tzw. ping). S± ró¿ne
-inne narzêdzia, które to potrafi±, ale wiêkszo¶æ z nich to skrypty
-shella lub perla uruchamiaj±ce wiele procesów, przez co mocno
-obci±¿aj±ce maszynê, szczególnie gdy kto¶ chce ci±g³ego monitorowania
+%description -l pl.UTF-8
+Alarm Pinger to małe narzędzie monitorujące różne urządzenia IP
+wykorzystując pakiety ICMP echo request/reply (tzw. ping). Są różne
+inne narzędzia, które to potrafią, ale większość z nich to skrypty
+shella lub Perla uruchamiające wiele procesów, przez co mocno
+obciążające maszynę, szczególnie gdy ktoś chce ciągłego monitorowania
 i szybkiej informacji o awarii. Alarm Pinger to pojedynczy proces
-napisany w C, wiêc nie wymaga wielkiej mocy obliczeniowej, nawet gdy
-bada wiele urz±dzeñ czêstymi pingami. Alarm Pinger obs³uguje zarówno
+napisany w C, więc nie wymaga wielkiej mocy obliczeniowej, nawet gdy
+bada wiele urządzeń częstymi pingami. Alarm Pinger obsługuje zarówno
 IPv4 jak i IPv6.
 
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
 
 %build
-%configure 
-%{__make}
+%{__aclocal}
+%{__autoconf}
+%{__automake}
+%configure
+%{__make} -j1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{rc.d/init.d,sysconfig}
 
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
 install src/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
@@ -55,25 +80,18 @@ rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/chkconfig --add apinger
-
-if [ -f /var/lock/subsys/apinger ]; then
-       /etc/rc.d/init.d/apinger restart 1>&2
-else
-       echo "Type \"/etc/rc.d/init.d/apinger start\" to start named" 1>&2
-fi
+%service apinger restart
 
 %preun
 if [ "$1" = "0" ]; then
-       if [ -f /var/lock/subsys/apinger ]; then
-               /etc/rc.d/init.d/apinger stop 1>&2
-       fi
+       %service apinger stop
        /sbin/chkconfig --del apinger
-fi    
+fi
 
 %files
 %defattr(644,root,root,755)
-%doc AUTHORS NEWS TODO README
+%doc AUTHORS NEWS TODO README doc/FAQ.html
 %attr(755,root,root) %{_sbindir}/*
 %attr(754,root,root) %config(noreplace) /etc/rc.d/init.d/apinger
-%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/apinger
-%attr(640,root,daemon) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/apinger
+%attr(640,root,daemon) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
This page took 0.436112 seconds and 4 git commands to generate.