[packages/wakelan] Rel 6
arekm
arekm at pld-linux.org
Sun Aug 23 22:35:25 CEST 2026
commit 0a9b0a2da22c77642eab95022a312f36e31c4d5b
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Aug 23 22:35:17 2026 +0200
Rel 6
wakelan-build.patch | 11 ++++++++---
wakelan-resolve.patch | 14 ++++++++++++++
wakelan.spec | 6 ++++--
3 files changed, 26 insertions(+), 5 deletions(-)
---
diff --git a/wakelan.spec b/wakelan.spec
index a9bf078..c690ae2 100644
--- a/wakelan.spec
+++ b/wakelan.spec
@@ -2,12 +2,13 @@ Summary: wakelan - send a wake-on-lan packet
Summary(pl.UTF-8): wakelan - wysyła pakiet WOL
Name: wakelan
Version: 1.1
-Release: 5
+Release: 6
License: GPL
Group: Networking/Utilities
-Source0: ftp://sunsite.unc.edu/pub/Linux/system/network/misc/%{name}-%{version}.tar.gz
+Source0: https://www.ibiblio.org/pub/Linux/system/network/misc/%{name}-%{version}.tar.gz
# Source0-md5: 4a3a31d874967cd6ac761b7d4323e0d5
Patch0: %{name}-build.patch
+Patch1: %{name}-resolve.patch
BuildRequires: autoconf
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,6 +23,7 @@ komputera z WOL.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__autoconf}
diff --git a/wakelan-build.patch b/wakelan-build.patch
index 80220b8..6891a24 100644
--- a/wakelan-build.patch
+++ b/wakelan-build.patch
@@ -1,12 +1,17 @@
diff -urN wakelan-1.1.org/wakelan.c wakelan-1.1/wakelan.c
--- wakelan-1.1.org/wakelan.c 1998-08-30 09:56:57.000000000 +0200
-+++ wakelan-1.1/wakelan.c 2010-09-24 20:39:44.201892839 +0200
-@@ -20,6 +20,8 @@
++++ wakelan-1.1/wakelan.c 2026-08-23 21:21:27.262162857 +0200
+@@ -19,9 +19,13 @@
+ */
#include "config.h"
++#include <ctype.h>
#include <stdio.h>
-+#include <string.h>
+#include <stdlib.h>
++#include <string.h>
#include <netdb.h>
#include <netinet/in.h>
++#include <arpa/inet.h>
#include <sys/socket.h>
+ #ifdef HAVE_GETOPT_H
+ #include <getopt.h>
diff --git a/wakelan-resolve.patch b/wakelan-resolve.patch
new file mode 100644
index 0000000..795ea72
--- /dev/null
+++ b/wakelan-resolve.patch
@@ -0,0 +1,14 @@
+diff -urN wakelan-1.1.org/wakelan.c wakelan-1.1/wakelan.c
+--- wakelan-1.1.org/wakelan.c 2026-08-23 21:21:27.262162857 +0200
++++ wakelan-1.1/wakelan.c 2026-08-23 21:21:43.127044338 +0200
+@@ -145,6 +145,10 @@
+
+ if (!inet_aton(target, &inaddr)) {
+ he = gethostbyname(target);
++ if (he == NULL) {
++ printf ("Can't resolve '%s'\n", target);
++ exit (1);
++ }
+ inaddr = *(struct in_addr *)he->h_addr_list[0];
+ }
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/wakelan.git/commitdiff/0a9b0a2da22c77642eab95022a312f36e31c4d5b
More information about the pld-cvs-commit
mailing list