[packages/apinger] Rel 9

arekm arekm at pld-linux.org
Tue May 12 19:46:36 CEST 2026


commit be0514ab08d106fc06661d47618b1cea17f8b9b2
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue May 12 19:46:23 2026 +0200

    Rel 9

 apinger-fix-compile.patch | 34 ++++++++++++++++++++++++++++++++++
 apinger.spec              |  4 +++-
 2 files changed, 37 insertions(+), 1 deletion(-)
---
diff --git a/apinger.spec b/apinger.spec
index 9ffa8ff..8802c71 100644
--- a/apinger.spec
+++ b/apinger.spec
@@ -2,7 +2,7 @@ Summary:	Alarm Pinger - network monitor with mail notification
 Summary(pl.UTF-8):	Alarm Pinger - monitor sieci z powiadamianiem pocztą
 Name:		apinger
 Version:	0.6.1
-Release:	8
+Release:	9
 License:	GPL
 Group:		Networking/Utilities
 Source0:	https://github.com/downloads/Jajcus/apinger/%{name}-%{version}.tar.gz
@@ -18,6 +18,7 @@ Patch5:		%{name}-no_exit.patch
 Patch6:		%{name}-no_forked_receiver.patch
 Patch7:		%{name}-srcip.patch
 Patch8:		%{name}-status.patch
+Patch9:		%{name}-fix-compile.patch
 URL:		https://github.com/Jajcus/apinger/
 BuildRequires:	rpmbuild(macros) >= 1.268
 Requires(post,preun):	/sbin/chkconfig
@@ -56,6 +57,7 @@ IPv4 jak i IPv6.
 %patch -P6 -p1
 %patch -P7 -p1
 %patch -P8 -p1
+%patch -P9 -p1
 
 %build
 %{__aclocal}
diff --git a/apinger-fix-compile.patch b/apinger-fix-compile.patch
new file mode 100644
index 0000000..0ad93cb
--- /dev/null
+++ b/apinger-fix-compile.patch
@@ -0,0 +1,34 @@
+--- apinger-0.6.1/src/apinger.h.orig	2026-05-12 00:00:00.000000000 +0000
++++ apinger-0.6.1/src/apinger.h	2026-05-12 00:00:00.000000000 +0000
+@@ -108,7 +108,7 @@
+ 	void *target_id;
+ };
+
+-struct target *targets;
++extern struct target *targets;
+
+ extern int foreground;
+ extern char *config_file;
+--- apinger-0.6.1/src/conf.c.orig	2026-05-12 00:00:00.000000000 +0000
++++ apinger-0.6.1/src/conf.c	2026-05-12 00:00:00.000000000 +0000
+@@ -28,6 +28,7 @@
+ #endif
+ #include "conf.h"
+ #include "cfgparser1.h"
++#include "debug.h"
+
+ #ifdef HAVE_ASSERT_H
+ # include <assert.h>
+--- apinger-0.6.1/src/apinger.c.orig	2026-05-12 00:00:00.000000000 +0000
++++ apinger-0.6.1/src/apinger.c	2026-05-12 00:00:00.000000000 +0000
+@@ -831,8 +831,8 @@
+ 	if(!config->status_format) fprintf(f,"%s\n",ctime(&tm));
+ 	for(t=targets;t;t=t->next){
+ 		if(config->status_format){
+-			fprintf(f,"%s|%s|%s|%i|%i|%u|",t->name, t->config->srcip, t->description, t->last_sent+1,
+-				 t->received, t->last_received_tv.tv_sec);
++			fprintf(f,"%s|%s|%s|%i|%i|%lu|",t->name, t->config->srcip, t->description, t->last_sent+1,
++				 t->received, (unsigned long)t->last_received_tv.tv_sec);
+ 			fprintf(f,"%0.3fms|", AVG_DELAY(t));
+ 		}
+ 		else{
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/apinger.git/commitdiff/be0514ab08d106fc06661d47618b1cea17f8b9b2



More information about the pld-cvs-commit mailing list