[packages/scdp] Rel 9

arekm arekm at pld-linux.org
Mon Mar 9 14:54:53 CET 2026


commit 4ee3b3dde0bc7be446ea00e62b73da6d530ba9de
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Mar 9 14:54:40 2026 +0100

    Rel 9

 scdp-fix-build.patch | 26 ++++++++++++++++++++++++++
 scdp.spec            |  4 +++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/scdp.spec b/scdp.spec
index 6592ee0..41df29d 100644
--- a/scdp.spec
+++ b/scdp.spec
@@ -2,7 +2,7 @@ Summary:	Send CDP packets
 Summary(pl.UTF-8):	Wysyłanie pakietów CDP
 Name:		scdp
 Version:	1.0b
-Release:	8
+Release:	9
 License:	GPL
 Group:		Networking
 Source0:	http://downloads.sourceforge.net/scdp/%{name}-%{version}.tar.gz
@@ -12,6 +12,7 @@ Source2:	%{name}.sysconfig
 Source3:	%{name}.cron.sh
 Patch0:		%{name}-automake.patch
 Patch1:		%{name}-libnet1.patch
+Patch2:		%{name}-fix-build.patch
 URL:		http://www.sourceforge.net/projects/scdp/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -33,6 +34,7 @@ miejscu podłączenia maszyny.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__aclocal}
diff --git a/scdp-fix-build.patch b/scdp-fix-build.patch
new file mode 100644
index 0000000..2dff541
--- /dev/null
+++ b/scdp-fix-build.patch
@@ -0,0 +1,26 @@
+--- scdp-1.0b.orig/scdp.c	2026-03-09 14:45:47.628729290 +0100
++++ scdp-1.0b/scdp.c	2026-03-09 14:51:31.360937073 +0100
+@@ -1,3 +1,4 @@
++#define _DEFAULT_SOURCE
+ /*
+  * scdp - Send one CDP packet. Use it with a cron job.
+  * Copyright (C) 2001 Mikael Wedlin & Kent Engstr�m, Link�ping University.
+@@ -21,6 +22,9 @@
+ #include <stdio.h>
+ #include <conf.h>
+ #include <libnet1.h>
++
++/* libnet_ifaddrlist is available in the library but not declared in headers */
++extern int libnet_ifaddrlist(struct libnet_ifaddr_list **, char *);
+ #include <malloc.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
+@@ -516,7 +520,7 @@
+ 
+   if (interface == NULL) { /* Try to find open interfaces. */
+     struct sockaddr_in sin;
+-    if (libnet_select_device(&sin, (u_char **)&interface, ebuf) == -1) {
++    if (libnet_select_device(&sin, (char **)&interface, ebuf) == -1) {
+       if (qflag) {
+ 	exit(0);
+       } else {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/scdp.git/commitdiff/4ee3b3dde0bc7be446ea00e62b73da6d530ba9de



More information about the pld-cvs-commit mailing list