diff options
Diffstat (limited to 'net-misc/iputils/iputils-99999999.ebuild')
-rw-r--r-- | net-misc/iputils/iputils-99999999.ebuild | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/net-misc/iputils/iputils-99999999.ebuild b/net-misc/iputils/iputils-99999999.ebuild index 34966ccdc145..320cee546b5e 100644 --- a/net-misc/iputils/iputils-99999999.ebuild +++ b/net-misc/iputils/iputils-99999999.ebuild @@ -19,6 +19,7 @@ if [[ ${PV} == "99999999" ]] ; then inherit git-r3 else SRC_URI="https://github.com/iputils/iputils/archive/${PV}.tar.gz -> ${P}.tar.gz + https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-manpages-${PV}.tar.xz https://dev.gentoo.org/~whissi/dist/iputils/${PN}-manpages-${PV}.tar.xz" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" fi @@ -28,7 +29,7 @@ HOMEPAGE="https://wiki.linuxfoundation.org/networking/iputils" LICENSE="BSD GPL-2+ rdisc" SLOT="0" -IUSE="+arping caps clockdiff doc gcrypt idn nettle nls rarpd rdisc ssl static test tftpd tracepath traceroute6" +IUSE="+arping caps clockdiff doc gcrypt idn nettle nls ssl static test tracepath" RESTRICT="!test? ( test )" BDEPEND=" @@ -43,10 +44,7 @@ LIB_DEPEND=" nls? ( virtual/libintl[static-libs(+)] ) " -RDEPEND=" - traceroute6? ( !net-analyzer/traceroute ) - !static? ( ${LIB_DEPEND//\[static-libs(+)]} ) -" +RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )" DEPEND=" ${RDEPEND} @@ -79,21 +77,14 @@ src_configure() { -DBUILD_ARPING="$(usex arping true false)" -DBUILD_CLOCKDIFF="$(usex clockdiff true false)" -DBUILD_PING="true" - -DBUILD_RARPD="$(usex rarpd true false)" - -DBUILD_RDISC="$(usex rdisc true false)" - -DENABLE_RDISC_SERVER="$(usex rdisc true false)" - -DBUILD_TFTPD="$(usex tftpd true false)" -DBUILD_TRACEPATH="$(usex tracepath true false)" - -DBUILD_TRACEROUTE6="$(usex traceroute6 true false)" - -DBUILD_NINFOD="false" - -DNINFOD_MESSAGES="false" -DNO_SETCAP_OR_SUID="true" -Dsystemdunitdir="$(systemd_get_systemunitdir)" -DUSE_GETTEXT="$(usex nls true false)" $(meson_use !test SKIP_TESTS) ) - if [[ "${PV}" == 99999999 ]] ; then + if [[ ${PV} == 99999999 ]] ; then emesonargs+=( -DBUILD_HTML_MANS="$(usex doc true false)" -DBUILD_MANS="true" @@ -171,7 +162,21 @@ src_install() { fi } +pkg_preinst() { + local version_with_tftpd="<${CATEGORY}/${PN}-20211215" + if has_version "${version_with_tftpd}[traceroute6]" || has_version "${version_with_tftpd}[tftpd]" ; then + HAD_TFTPD_VERSION=1 + fi +} + pkg_postinst() { + if [[ ${HAD_TFTPD_VERSION} -eq 1 ]] ; then + ewarn "This upstream version (>= 20211215) drops two tools:" + ewarn "1. tftpd (alternatives: net-ftp/tftp-hpa, net-dns/dnsmasq)" + ewarn "2. traceroute6 (alternatives: net-analyzer/mtr, net-analyzer/traceroute)" + ewarn "Please install one of the listed alternatives if needed!" + fi + fcaps cap_net_raw \ bin/ping \ $(usex arping 'bin/arping' '') \ |