mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-01 23:28:08 -07:00
net-nntp/leafnode: fix compilation with USE=-ipv6, bug 579948
Thanks to David Haller in bug 579948 for providing the patch. Add myself as maintainer. Package-Manager: Portage-2.3.6, Repoman-2.3.2
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
diff -x '*~' -purN a/checkpeerlocal.c b/checkpeerlocal.c
|
||||
--- a/checkpeerlocal.c 2015-08-25 00:03:26.000000000 +0200
|
||||
+++ b/checkpeerlocal.c 2017-07-14 20:12:26.109653383 +0200
|
||||
@@ -208,6 +208,7 @@ int checkpeerlocal(int sock)
|
||||
}
|
||||
#endif
|
||||
|
||||
+#ifdef HAVE_IPV6
|
||||
if (IN6_IS_ADDR_V4MAPPED(&addr.sin6.sin6_addr)) {
|
||||
/* map to IPv4 */
|
||||
struct sockaddr_in si;
|
||||
@@ -216,6 +217,7 @@ int checkpeerlocal(int sock)
|
||||
memcpy(&addr.sin, &si, sizeof(struct sockaddr_in));
|
||||
D(pat(&addr.sa));
|
||||
}
|
||||
+#endif
|
||||
|
||||
if (getifaddrs(&ifap) != 0) {
|
||||
D(printf("getifaddrs failed: %s\n", strerror(errno)));
|
||||
@@ -1,8 +1,10 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
inherit epatch
|
||||
|
||||
DESCRIPTION="A USENET software package designed for small sites"
|
||||
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
|
||||
HOMEPAGE="http://leafnode.sourceforge.net/"
|
||||
@@ -16,6 +18,10 @@ RDEPEND="${DEPEND}
|
||||
virtual/inetd"
|
||||
DOCS=( CREDITS ChangeLog FAQ.txt FAQ.pdf INSTALL NEWS README-daemontools UNINSTALL-daemontools README README-MAINTAINER README-FQDN )
|
||||
|
||||
src_prepare() {
|
||||
epatch "${FILESDIR}/${PN}-${PV}-checkpeerlocal_ipv6_fix.patch"
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--sysconfdir=/etc/leafnode \
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<!-- maintainer-needed -->
|
||||
<maintainer type="person">
|
||||
<email>graaff@gentoo.org</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="sourceforge">leafnode</remote-id>
|
||||
</upstream>
|
||||
|
||||
Reference in New Issue
Block a user