commit:     3311c13f01fdeacc48df792a20d0ea3e70957831
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Mon Feb  3 12:08:32 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 08:50:36 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3311c13f

net-nntp/leafnode: Fix implicit decl in configure

It's FreeBSD ioctl, but adding correct include feels more correct than
QA_SKIPping it.

Closes: https://bugs.gentoo.org/900268
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40423
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../leafnode/files/leafnode-1.11.11-configure.patch   | 12 ++++++++++++
 ...e-1.11.11-r1.ebuild => leafnode-1.11.11-r2.ebuild} | 19 ++++++++++++++++---
 ...afnode-1.12.0.ebuild => leafnode-1.12.0-r1.ebuild} | 15 +++++++++++++--
 3 files changed, 41 insertions(+), 5 deletions(-)

diff --git a/net-nntp/leafnode/files/leafnode-1.11.11-configure.patch 
b/net-nntp/leafnode/files/leafnode-1.11.11-configure.patch
new file mode 100644
index 000000000000..bf27312579ce
--- /dev/null
+++ b/net-nntp/leafnode/files/leafnode-1.11.11-configure.patch
@@ -0,0 +1,12 @@
+Fix handwritten check for SIOCGIFALIAS on FreeBSD
+https://bugs.gentoo.org/900268
+--- a/configure.ac
++++ b/configure.ac
+@@ -413,6 +413,7 @@
+     #include <stddef.h>
+     #include <sys/types.h>
+     #include <sys/socket.h>
++    #include <sys/ioctl.h>
+     #ifdef HAVE_SYS_SOCKIO_H
+     #include <sys/sockio.h>
+     #endif

diff --git a/net-nntp/leafnode/leafnode-1.11.11-r1.ebuild 
b/net-nntp/leafnode/leafnode-1.11.11-r2.ebuild
similarity index 78%
rename from net-nntp/leafnode/leafnode-1.11.11-r1.ebuild
rename to net-nntp/leafnode/leafnode-1.11.11-r2.ebuild
index 03958f679701..ef4e462c36ae 100644
--- a/net-nntp/leafnode/leafnode-1.11.11-r1.ebuild
+++ b/net-nntp/leafnode/leafnode-1.11.11-r2.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+inherit autotools
+
 DESCRIPTION="A USENET software package designed for small sites"
 HOMEPAGE="http://leafnode.sourceforge.net/";
 SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz";
@@ -15,9 +17,20 @@ IUSE="ipv6"
 DEPEND=">=dev-libs/libpcre-3.9"
 RDEPEND="${DEPEND}
        virtual/inetd"
-DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools 
UNINSTALL-daemontools README README-MAINTAINER README-FQDN )
+DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools \
+       UNINSTALL-daemontools README README-MAINTAINER README-FQDN )
+
+PATCHES=(
+       "${FILESDIR}/${P}-checkpeerlocal_ipv6_fix.patch"
+        "${FILESDIR}/${PN}-1.11.11-configure.patch"
+       )
 
-PATCHES=( "${FILESDIR}/${P}-checkpeerlocal_ipv6_fix.patch" )
+src_prepare() {
+       default
+
+       # bug https://bugs.gentoo.org/900268
+       eautoreconf
+}
 
 src_configure() {
        econf \

diff --git a/net-nntp/leafnode/leafnode-1.12.0.ebuild 
b/net-nntp/leafnode/leafnode-1.12.0-r1.ebuild
similarity index 82%
rename from net-nntp/leafnode/leafnode-1.12.0.ebuild
rename to net-nntp/leafnode/leafnode-1.12.0-r1.ebuild
index 6664ad79fae0..3e7f21c21130 100644
--- a/net-nntp/leafnode/leafnode-1.12.0.ebuild
+++ b/net-nntp/leafnode/leafnode-1.12.0-r1.ebuild
@@ -1,10 +1,12 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+inherit autotools
+
 DESCRIPTION="A USENET software package designed for small sites"
-HOMEPAGE="http://leafnode.sourceforge.net/";
+HOMEPAGE="https://leafnode.sourceforge.io/";
 SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.xz";
 
 LICENSE="GPL-2"
@@ -16,6 +18,15 @@ RDEPEND="${DEPEND}
        virtual/inetd"
 DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS UNINSTALL-daemontools 
README README-MAINTAINER README-FQDN )
 
+PATCHES=( "${FILESDIR}/${PN}-1.11.11-configure.patch" )
+
+src_prepare() {
+       default
+
+       # bug https://bugs.gentoo.org/900268
+       eautoreconf
+}
+
 src_configure() {
        econf \
                --sysconfdir=/etc/leafnode \

Reply via email to