commit: 552fc828b4c0a5344310be0b76cf1d9af025c4ae Author: Henning Schild <henning <AT> hennsch <DOT> de> AuthorDate: Sun Sep 7 08:04:24 2025 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Tue Sep 16 19:11:44 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=552fc828
net-misc/wakeonlan: revbump to 0.42 And dropping the downstream patch to read hostnames from /etc/ethers. That patch should be upstreamed, or users should maybe wrap their own scripts around given the tool officially lacks the feature. We add an ewarn to tell users about the removed feature. All tests are currently disabled and we run an empty suite on src_test. This way we can not miss possible functional tests in future versions. Signed-off-by: Henning Schild <henning <AT> hennsch.de> Part-of: https://github.com/gentoo/gentoo/pull/43697 Closes: https://github.com/gentoo/gentoo/pull/43697 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> net-misc/wakeonlan/Manifest | 1 + net-misc/wakeonlan/wakeonlan-0.42.ebuild | 43 ++++++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) diff --git a/net-misc/wakeonlan/Manifest b/net-misc/wakeonlan/Manifest index d21a7913c14a..d6654f620c0d 100644 --- a/net-misc/wakeonlan/Manifest +++ b/net-misc/wakeonlan/Manifest @@ -1 +1,2 @@ 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/wakeonlan-0.42.ebuild b/net-misc/wakeonlan/wakeonlan-0.42.ebuild new file mode 100644 index 000000000000..90ed3b016044 --- /dev/null +++ b/net-misc/wakeonlan/wakeonlan-0.42.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit eapi9-ver perl-module + +DESCRIPTION="Client for Wake-On-LAN" +HOMEPAGE="https://github.com/jpoliv/wakeonlan/" +SRC_URI="https://github.com/jpoliv/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Artistic GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=">=virtual/perl-ExtUtils-MakeMaker-6.46" + +src_prepare() { + # would require Test::Spelling for which we have no ebuild + rm "${S}"/t/93_pod_spell.t || die + # the following ones are "only" lint, for which we have ebuilds + # but not for all arches this ebuild has + rm "${S}"/t/81_perlcritic.t || die # dev-perl/Test-Perl-Critic + rm "${S}"/t/91_pod.t || die # dev-perl/Test-Pod + rm "${S}"/t/92_pod_coverage.t || die # dev-perl/Test-Pod-Coverage + + perl-module_src_prepare +} + +src_install() { + perl-module_src_install + dodoc examples/lab001.wol + fperms u+w /usr/bin/wakeonlan /usr/share/man/man1/wakeonlan.1 +} + +pkg_postinst() { + if ver_replacing -lt "0.42"; then + ewarn "Gentoo used to have support for using hostnames from /etc/ethers" + ewarn "versions >=0.42 do not carry that downstream patch/feature anymore" + ewarn "you could wrap with i.e. \"getent ethers <hostname>\"" + fi +}
