commit:     a3c092d2955ddeb6b6d0995a0abf27b2443085ff
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Jun 10 10:56:43 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 10:57:18 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3c092d2

net-analyzer/netselect: Add Debian's IPv6 patch.

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 net-analyzer/netselect/Manifest             |  1 +
 net-analyzer/netselect/netselect-0.4.ebuild | 10 +++++++---
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/net-analyzer/netselect/Manifest b/net-analyzer/netselect/Manifest
index 16dea6606f3..e61c79cd6d2 100644
--- a/net-analyzer/netselect/Manifest
+++ b/net-analyzer/netselect/Manifest
@@ -1,2 +1,3 @@
 DIST netselect-0.3.tar.gz 22047 SHA256 
fe81942589d5219d030e5cecfb12787fb6d3613416cb326dea4952bf53f9c978 SHA512 
04a4b79c357a0110dcf377ad04ac729ed7854bec4b064ad16da632367ce1870379546fffc8396ea770bfa580618d7c0495c16b0ba30f736419511b890ce5dca5
 WHIRLPOOL 
2e49cb22b12c88a1d9f42da19b42284ae98d391739bf7bd1e134661b8780ef733b26f5f4be4ed61dce3a4a9922a6a10d9040698fa3f4910ceacc54df4a42afcc
+DIST netselect-0.4-ipv6.patch.xz 18272 SHA256 
be68354508c6b17927ffe01db2ed2f8e5f259a869d6f209ba8d2e648de01e143 SHA512 
422b54df5be45379fe7d6776b6e653a8e49df6fb77421527f2eb6c687597f36cccc7ab5cc5206e9823c318f6facd84fb4e8c0dbffbf9641cee593401cb73abea
 WHIRLPOOL 
c51648b80c5e21388077d76ff793eda78f7986c395965df4c29179280469485bca4c7d1785036a67b2946c2772e26fefc9ee37511c24966739bb1debfc1021d6
 DIST netselect-0.4.tar.gz 22095 SHA256 
ae343991c94b1fdeb5e7896bb11d357c1dd9297f5d842c507953f57935e15e19 SHA512 
eee9639122b7cc89218c610794d090582aecb3df138bcef41472c8d40c0f7e998b2c4b04aace13795fda5c710ee28cc2c0784a680ad6d1aa6a14eb441a408bfa
 WHIRLPOOL 
26560ff81683c48ad7c94e827029b4b0a127c29b94fe47fe2b95f3736eafeeeaa2c9b1e9f6feff7971a37cd15fdb51814acd195ebafd6e89face3d514eb872c3

diff --git a/net-analyzer/netselect/netselect-0.4.ebuild 
b/net-analyzer/netselect/netselect-0.4.ebuild
index c28ca36f4c5..a6d716516f0 100644
--- a/net-analyzer/netselect/netselect-0.4.ebuild
+++ b/net-analyzer/netselect/netselect-0.4.ebuild
@@ -6,11 +6,15 @@ inherit eutils flag-o-matic toolchain-funcs
 
 DESCRIPTION="Ultrafast implementation of ping"
 HOMEPAGE="http://apenwarr.ca/netselect/";
-SRC_URI="https://github.com/apenwarr/${PN}/archive/${P}.tar.gz";
+SRC_URI="
+       https://github.com/apenwarr/${PN}/archive/${P}.tar.gz
+       ipv6? ( https://dev.gentoo.org/~jer/${P}-ipv6.patch.xz )
+"
 
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 
~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos 
~x86-macos"
+IUSE="ipv6"
 
 PATCHES=(
        "${FILESDIR}"/${PN}-0.4-bsd.patch
@@ -19,9 +23,9 @@ PATCHES=(
 S=${WORKDIR}/${PN}-${P}
 
 src_prepare() {
-       default
+       use ipv6 && eapply "${WORKDIR}"/${PN}-0.4-ipv6.patch
 
-       rm -r netinet || die
+       default
 
        tc-export CC
 }

Reply via email to