net-misc/iputils: rename USE=traceroute to USE=traceroute6 and mark as deprecated
authorThomas Deutschmann <whissi@gentoo.org>
Sun, 31 Mar 2019 22:26:01 +0000 (00:26 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Sun, 31 Mar 2019 22:37:37 +0000 (00:37 +0200)
iputils always did only provide traceroute6. Renaming USE flag will clarify
that iputils can't provide normal IPv4 traceroute.

Also, mark USE=traceroute6 as deprecated (in metadata.xml). See Link 1.

Please use net-analyzer/traceroute for traceroute and traceroute6.

Link 1: https://github.com/iputils/iputils/issues/166

Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
net-misc/iputils/iputils-20171016_pre.ebuild
net-misc/iputils/iputils-20180629.ebuild
net-misc/iputils/iputils-99999999.ebuild
net-misc/iputils/metadata.xml

index 8d1bbffafa10a96aff6af6feffc86936925e6c31..bea9c59247cc3277325b33af958a272dc22abf18 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # For released versions, we precompile the man/html pages and store
@@ -32,7 +32,7 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils"
 
 LICENSE="BSD GPL-2+ rdisc"
 SLOT="0"
-IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle +openssl rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute"
+IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle +openssl rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute6"
 
 LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
        idn? ( net-dns/libidn:=[static-libs(+)] )
@@ -46,7 +46,7 @@ LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
        ) )"
 RDEPEND="arping? ( !net-misc/arping )
        rarpd? ( !net-misc/rarpd )
-       traceroute? ( !net-analyzer/traceroute )
+       traceroute6? ( !net-analyzer/traceroute )
        !static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
 DEPEND="${RDEPEND}
        static? ( ${LIB_DEPEND} )
@@ -81,7 +81,7 @@ src_configure() {
        )
        if use ipv6 ; then
                TARGETS+=(
-                       $(usex traceroute 'traceroute6' '')
+                       $(usex traceroute6 'traceroute6' '')
                )
        fi
 
@@ -155,7 +155,7 @@ src_install() {
                dosym tracepath.8 /usr/share/man/man8/tracepath6.8
        fi
 
-       if use traceroute && use ipv6 ; then
+       if use traceroute6 && use ipv6 ; then
                dosbin traceroute6
                doman doc/traceroute6.8
        fi
index a667ae038ad9501a8e2e7a5bdff95098fc9fa7e6..9624d0deee75121eaf59e9d35210ec4f507f9803 100644 (file)
@@ -32,7 +32,7 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils"
 
 LICENSE="BSD GPL-2+ rdisc"
 SLOT="0"
-IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute"
+IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute6"
 
 LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
        idn? ( net-dns/libidn2:=[static-libs(+)] )
@@ -51,7 +51,7 @@ LIB_DEPEND="caps? ( sys-libs/libcap[static-libs(+)] )
 "
 RDEPEND="arping? ( !net-misc/arping )
        rarpd? ( !net-misc/rarpd )
-       traceroute? ( !net-analyzer/traceroute )
+       traceroute6? ( !net-analyzer/traceroute )
        !static? ( ${LIB_DEPEND//\[static-libs(+)]} )"
 DEPEND="${RDEPEND}
        static? ( ${LIB_DEPEND} )
@@ -82,7 +82,7 @@ src_configure() {
        )
        if use ipv6 ; then
                TARGETS+=(
-                       $(usex traceroute 'traceroute6' '')
+                       $(usex traceroute6 'traceroute6' '')
                )
        fi
 
@@ -156,7 +156,7 @@ src_install() {
                dosym tracepath.8 /usr/share/man/man8/tracepath6.8
        fi
 
-       if use traceroute && use ipv6 ; then
+       if use traceroute6 && use ipv6 ; then
                dosbin traceroute6
                doman doc/traceroute6.8
        fi
index ccc540e0855c8dc2c9124eb3c7498edd673cd0be..84825935763114d05f65df0cea18b2cb31fc5271 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # For released versions, we precompile the man/html pages and store
@@ -25,7 +25,7 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils"
 
 LICENSE="BSD GPL-2+ rdisc"
 SLOT="0"
-IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute"
+IUSE="+arping caps clockdiff doc gcrypt idn ipv6 libressl nettle rarpd rdisc SECURITY_HAZARD ssl static tftpd tracepath traceroute6"
 
 LIB_DEPEND="
        caps? ( sys-libs/libcap[static-libs(+)] )
@@ -46,7 +46,7 @@ LIB_DEPEND="
 RDEPEND="
        arping? ( !net-misc/arping )
        rarpd? ( !net-misc/rarpd )
-       traceroute? ( !net-analyzer/traceroute )
+       traceroute6? ( !net-analyzer/traceroute )
        !static? ( ${LIB_DEPEND//\[static-libs(+)]} )
 "
 DEPEND="
@@ -88,7 +88,7 @@ src_configure() {
                -DENABLE_RDISC_SERVER="$(usex rdisc true false)"
                -DBUILD_TFTPD="$(usex tftpd true false)"
                -DBUILD_TRACEPATH="$(usex tracepath true false)"
-               -DBUILD_TRACEROUTE6="$(usex ipv6 $(usex traceroute true false) false)"
+               -DBUILD_TRACEROUTE6="$(usex ipv6 $(usex traceroute6 true false) false)"
                -DBUILD_NINFOD="false"
                -DNINFOD_MESSAGES="false"
                -DBUILD_HTML_MANS="$(usex doc true false)"
index 8fb0527115b6cb58e746b7627e3f61ffac318e0f..2c0fdf44b673e5cf4c6675707670a40c9622e4a6 100644 (file)
@@ -15,7 +15,7 @@
     <flag name="rdisc">Build and install rdisc -- server for the client side of the ICMP router discover protocol</flag>
     <flag name="tftpd">Build and install tftpd -- server for the Trivial File Transfer Protocol (see also <pkg>net-ftp/tftp-hpa</pkg>)</flag>
     <flag name="tracepath">Build and install tracepath -- tool for tracing network paths for discovering MTU values</flag>
-    <flag name="traceroute">Build and install traceroute -- tool for tracing network paths (see also <pkg>net-analyzer/traceroute</pkg>)</flag>
+    <flag name="traceroute6">Build and install deprecated traceroute6 tool. It's recommended to use <pkg>net-analyzer/traceroute</pkg> instead.</flag>
     <flag name="SECURITY_HAZARD">Allow non-root users to flood (ping -f). This is generally a very bad idea.</flag>
   </use>
   <upstream>