commit: 59d6fbe923f6688d45db568d6310d816e5edafe3 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> AuthorDate: Sun Feb 22 08:18:39 2026 +0000 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> CommitDate: Sun Feb 22 12:18:31 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59d6fbe9
net-misc/wakeonlan: drop 0.41-r4 Bug: https://bugs.gentoo.org/970386 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> net-misc/wakeonlan/Manifest | 1 - .../files/wakeonlan-0.41-ethers-lookup-r1.patch | 90 ---------------------- net-misc/wakeonlan/wakeonlan-0.41-r4.ebuild | 24 ------ 3 files changed, 115 deletions(-) diff --git a/net-misc/wakeonlan/Manifest b/net-misc/wakeonlan/Manifest index d6654f620c0d..f39b7f68e2d4 100644 --- a/net-misc/wakeonlan/Manifest +++ b/net-misc/wakeonlan/Manifest @@ -1,2 +1 @@ -DIST wakeonlan-0.41.tar.gz 6028 BLAKE2B d560c7dd830daf596ffd7d797d1908d1fc90d20c6861a0e341b20eb38137b809fe1a78819f9ca729fa06f88285cfb22d0719092bed1d49d9763a7e2bb8a986bf SHA512 192ed2ad157e3f5af01632b8f2b727e232448e5a9bff6aec25298fa9913ec38f1036b665b141b5299994c88b1941d9896b6eaa92cfdb44d65db3628f50e3824f DIST wakeonlan-0.42.tar.gz 8981 BLAKE2B 3af1f93f1d956d0d26943a453701c91d303fbb3b8e7395906fea6173253621579ae99ef88c193fc5825312030699b1175a6786869d455012d9c86f907cdb7f1d SHA512 46ecc7106eefa0b993f0f59eb4e4a593fac7831dffee87c743a7bd757abf366258e99e1efc6742fb3992ee066cb4e280787d0bf3d2db7fb4c88be7c09452da81 diff --git a/net-misc/wakeonlan/files/wakeonlan-0.41-ethers-lookup-r1.patch b/net-misc/wakeonlan/files/wakeonlan-0.41-ethers-lookup-r1.patch deleted file mode 100644 index 3e01c3e52c38..000000000000 --- a/net-misc/wakeonlan/files/wakeonlan-0.41-ethers-lookup-r1.patch +++ /dev/null @@ -1,90 +0,0 @@ ---- wakeonlan-0.41.orig/wakeonlan -+++ wakeonlan-0.41/wakeonlan -@@ -5,6 +5,7 @@ - ######################################################################### - - use strict; -+use Net::hostent; - use Socket; - use Getopt::Std; - use vars qw($VERSION $opt_v $opt_h $opt_i $opt_p $opt_f); -@@ -44,19 +45,64 @@ - - sub wake - { -- my $hwaddr = shift; -+ my $host = shift; - my $ipaddr = shift || $DEFAULT_IP; - my $port = shift || $DEFAULT_PORT; - - my ($raddr, $them, $proto); -- my ($hwaddr_re, $pkt); -+ my ($hwaddr, $hwaddr_re, $pkt); - -- # Validate hardware address (ethernet address) -+ # get the hardware address (ethernet address) - - $hwaddr_re = join(':', ('[0-9A-Fa-f]{1,2}') x 6); -- if ($hwaddr !~ m/^$hwaddr_re$/) { -- warn "Invalid hardware address: $hwaddr\n"; -- return undef; -+ if ($host =~ m/^$hwaddr_re$/) { -+ $hwaddr = $host; -+ } else { -+ # $host is not a hardware address, try to resolve it -+ my $ip_re = join('\.', ('([0-9]|[1-9][0-9]|1[0-9]{2}|2([0-4][0-9]|5[0-5]))') x 4); -+ my $ip_addr; -+ if ($host =~ m/^$ip_re$/) { -+ $ip_addr = $host; -+ } else { -+ my $h; -+ unless ($h = gethost($host)) { -+ warn "$host is not a hardware address and I could not resolve it as to an IP address.\n"; -+ return undef; -+ } -+ $ip_addr = inet_ntoa($h->addr); -+ } -+ # look up ip in /etc/ethers -+ unless (open (ETHERS, '<', '/etc/ethers')) { -+ warn "$host is not a hardware address and I could not open /etc/ethers.\n"; -+ return undef; -+ } -+ while (<ETHERS>) { -+ if (($_ !~ m/^$/) && ($_ !~ m/^#/)) { # ignore comments -+ my ($mac, $ip); -+ ($mac, $ip) = split(' ', $_, 3); -+ if ($ip =~ m/^$ip_re$/) { -+ if ($ip eq $ip_addr) { -+ $hwaddr = $mac; -+ last; -+ } -+ next; -+ } else { -+ my $h2; -+ unless ($h2 = gethost($ip)) { -+ next; -+ } -+ if (inet_ntoa($h2->addr) eq $ip_addr) { -+ $hwaddr = $mac; -+ last; -+ } -+ } -+ } -+ } -+ close (ETHERS); -+ unless (defined($hwaddr)) { -+ warn "Could not find $host in /etc/ethers\n"; -+ return undef; -+ } - } - - # Generate magic sequence -@@ -68,7 +114,7 @@ - - # Allocate socket and send packet - -- $raddr = gethostbyname($ipaddr); -+ $raddr = gethostbyname($ipaddr)->addr; - $them = pack_sockaddr_in($port, $raddr); - $proto = getprotobyname('udp'); - diff --git a/net-misc/wakeonlan/wakeonlan-0.41-r4.ebuild b/net-misc/wakeonlan/wakeonlan-0.41-r4.ebuild deleted file mode 100644 index 9e3fc043a764..000000000000 --- a/net-misc/wakeonlan/wakeonlan-0.41-r4.ebuild +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -inherit perl-module - -DESCRIPTION="Client for Wake-On-LAN" -HOMEPAGE="https://github.com/jpoliv/wakeonlan/" -SRC_URI="https://github.com/jpoliv/wakeonlan/archive/${P}.tar.gz" - -LICENSE="Artistic GPL-2" -SLOT="0" -KEYWORDS="amd64 arm ~arm64 ppc ~sparc x86" -IUSE="" - -DEPEND="virtual/perl-ExtUtils-MakeMaker" - -PATCHES="${FILESDIR}/${P}-ethers-lookup-r1.patch" - -src_install() { - perl-module_src_install - dodoc examples/lab001.wol - fperms u+w /usr/bin/wakeonlan /usr/share/man/man1/wakeonlan.1 -}
