SPECS (AC-branch): apinger.spec - recent fixes merged from HEAD

jajcus jajcus at pld-linux.org
Mon Apr 24 11:19:55 CEST 2006


Author: jajcus                       Date: Mon Apr 24 09:19:55 2006 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- recent fixes merged from HEAD

---- Files affected:
SPECS:
   apinger.spec (1.20 -> 1.20.2.1) 

---- Diffs:

================================================================
Index: SPECS/apinger.spec
diff -u SPECS/apinger.spec:1.20 SPECS/apinger.spec:1.20.2.1
--- SPECS/apinger.spec:1.20	Tue Aug 10 19:45:22 2004
+++ SPECS/apinger.spec	Mon Apr 24 11:19:49 2006
@@ -3,23 +3,27 @@
 Summary(pl):	Alarm Pinger - monitor sieci z powiadamianiem pocztą
 Name:		apinger
 Version:	0.6.1
-Release:	3
+Release:	5
 License:	GPL
 Group:		Networking/Utilities
-Source0:	http://www.bnet.pl/~jajcus/%{name}/%{name}-%{version}.tar.gz
+Source0:	http://www.bnet.pl/~jajcus/apinger/%{name}-%{version}.tar.gz
 # Source0-md5:	3505e6503ec06363613f16713501bb33
 Source1:	%{name}.init
 Source2:	%{name}.sysconf
 Patch0:		%{name}-user.patch
+Patch1:		%{name}-avg_delay.patch
+Patch2:		%{name}-config_overwrite_fix.patch
+Patch3:		%{name}-rrd_timestamp.patch
 URL:		http://www.bnet.pl/~jajcus/
-PreReq:		rc-scripts
+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
@@ -30,7 +34,7 @@
 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
+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
@@ -40,6 +44,9 @@
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
 
 %build
 %configure
@@ -61,18 +68,11 @@
 
 %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 apinger" 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
 
@@ -81,8 +81,8 @@
 %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
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -90,6 +90,27 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.20.2.1  2006/04/24 09:19:49  jajcus
+- recent fixes merged from HEAD
+
+Revision 1.25  2006/04/24 09:01:50  jajcus
+- Release: 5
+- patch added to fix big configuration file parsing
+- patch added to pass update timestamps to rrdtool
+- avg_dealy patch actually applied
+
+Revision 1.24  2006/03/24 07:45:35  jajcus
+- fix for average delay measurement by Krzysztof Mościcki
+
+Revision 1.23  2006/02/24 15:20:04  glen
+- use %service
+
+Revision 1.22  2005/07/07 16:53:51  darekr
+- gpm-friendly Source0
+
+Revision 1.21  2004/10/25 11:47:23  paladine
+- "Perl" unifications
+
 Revision 1.20  2004/08/10 17:45:22  averne
 - rel 3
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/apinger.spec?r1=1.20&r2=1.20.2.1&f=u



More information about the pld-cvs-commit mailing list