diff options
Diffstat (limited to 'net-analyzer/mtr')
-rw-r--r-- | net-analyzer/mtr/Manifest | 4 | ||||
-rw-r--r-- | net-analyzer/mtr/mtr-0.93-r1.ebuild | 65 | ||||
-rw-r--r-- | net-analyzer/mtr/mtr-9999.ebuild | 2 |
3 files changed, 69 insertions, 2 deletions
diff --git a/net-analyzer/mtr/Manifest b/net-analyzer/mtr/Manifest index 3288286ed036..f94440947402 100644 --- a/net-analyzer/mtr/Manifest +++ b/net-analyzer/mtr/Manifest @@ -5,7 +5,9 @@ AUX mtr-0.88-tinfo.patch 450 BLAKE2B 7241ab3ffcf80c9775700328de031c39172f3842583 DIST gtk-2.0-for-mtr.m4.bz2 2508 BLAKE2B 86d1eb64e21084d1455783765b0be088893c260658913b9c522c35c88443e9876b39952ec33c5c69810425b7a309e382dcb32bba1443345daf81c9cfd2f84b63 SHA512 0f593b761d7a9399469f1f7bb3992133b391a2ce760ecfad96237561992802c192b810f4722763685d5f6e7a76bd2806abf08e1850bdce00e5cd3af4c810210f DIST mtr-0.87.tar.gz 184645 BLAKE2B e96535b0bd46ee63c5e6110ee465195a9ead6ff7c7ea3629b2668631f25e9181cf4236ba0e2cfc0517e7c70683bbb6347d9c26a2b09701d89e225c27aa2faae4 SHA512 172ba2f78a6ee4deb427ac2fb00dff16843215dbd23663fbe41fcc957ffe278b408a73a0c7e1c05788b235e2d03fb53f9971b8b82d4de2f95edcaa9f2cff3cf9 DIST mtr-0.92.tar.gz 296430 BLAKE2B 0f7dfcbd77d6f9cd0a9ba4c7e6829ce8f3fa0e1de4009632d10c3a1c2acc280db5830296695c27d89317d38d507af8f7e9bdd12b1c0e0d198872dc39f13032e7 SHA512 d362a418b6c17fd2d08da1ed9e033fa3330e4c0497e1bb0644f6193d23f4e20dd8ee181942c2a20ec0025a8b96c521394a21be5a1d9036f8a0a8c4cddfbe381f +DIST mtr-0.93.tar.gz 291015 BLAKE2B 6ac0e21f9e06fbfee9e9ada4cddb6cd9685ae669a05d1ed257a2c238ab78ac16e1a1e152ef1359ca530b0eced14c9333df2b691c27cbc29173c843ebc64eaaa9 SHA512 046e98a661bd6248ce819411ceb6e2b875b92877de38523594898df507836c113573cf40d7d4cc548370f515abe99e0aa4d8b3ba44ad54dd00f8e93c8a96c021 EBUILD mtr-0.87.ebuild 1160 BLAKE2B b2387d41479707319b51be3877f58aa6cf13e832780a75ebf4a9f0ffd013f83cb5e129e0c254f2fba7d7aa7a3d7a0bc73aaffd0769adfaaa5421d99ef2b347e2 SHA512 93f02f5f2f477f5aeef30fcdf9d589870af55b7076989be6cfd00513796acef1657a0f92558d97807fdfc70764da7b61a8c8f3dd67cdf73e7f9d417ee5fe5e82 EBUILD mtr-0.92-r1.ebuild 1428 BLAKE2B 6adaa9e1d16e8b8969d5f3fcefb078cc3aa9ec6cd26e476ee3b3f3d13f6d1426f00d51c026fa44af03bb2713d0e60544b3a5b269e79bed03450108f2cbc02caa SHA512 b7dd855dfe63c4d069150cc2c78faad630dfc11e02afa5f9d1262df8ad35cc9d43602f7ca3721ce421285fb40ca362df35a196560726d0f1ca78262388b16ea4 -EBUILD mtr-9999.ebuild 1585 BLAKE2B 93a9fcfa7e0d5f2c0b6a89d779fe253623158867e8ba7456e1d5bf28f7fafc470d44467bde32f19f46c18926bc7d758ed13c1874b7836311b42031f6701729c8 SHA512 87c0fa6f69d98219c9916b595f1e9868bcc886168448da8f4ce55599dd6fc566c2841e631c152393dadb7c4c72a9405b32b78c521f0a2e7cc620d7800eb9225c +EBUILD mtr-0.93-r1.ebuild 1517 BLAKE2B 64ecaf414af0a278a8c3a75e065a8d0e0a333b203254e56f050352a867e21faefe0e699b6225e5ad25439410f784c161cff64d47b69c5b25c9444ff90d547a85 SHA512 a6c755d5d559227c09527ae024b0aa83954a511cd550e471a0c9de1aafe97d87df8fe3e75968d970987473bedc2710cfe1d2efe5b8606221756baf4d3a1ce554 +EBUILD mtr-9999.ebuild 1581 BLAKE2B e52533acb767ab356958eeb91e19deada75245671b24e201283a0db85493f2850db3c66351ee25c7471133eaed9fc1a1b1db715b78c496b6af002eda1cc31da0 SHA512 7a43bba45d9a2b17bbfa92dcdd9ede2ed9c1c7a5a6ed8a95e4ad6d1dc0be3783bd7cfe148674a1469e196da9a6c8b19d13d2abf6ae88464ed2e0b181dd61ca7e MISC metadata.xml 280 BLAKE2B e048698c920b118e9a29ec8558620cbd87f8cd4a3f9b4db4fe77f9ebf399b827cbb190d792c6ddcfc810bc09b51f233e5cce4c29c8b98d4130a3473c1ba82882 SHA512 8b56802e5524808b11ab857779ce04fb2d07cae87376f67490178601a9aecf7ad9f95743709b46048a425598d4cf8dcf01ef78cc97009d78e26a7728453150ef diff --git a/net-analyzer/mtr/mtr-0.93-r1.ebuild b/net-analyzer/mtr/mtr-0.93-r1.ebuild new file mode 100644 index 000000000000..a18dbb143fe6 --- /dev/null +++ b/net-analyzer/mtr/mtr-0.93-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools eutils fcaps flag-o-matic + +DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool" +HOMEPAGE="http://www.bitwizard.nl/mtr/" +SRC_URI="ftp://ftp.bitwizard.nl/mtr/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos" +IUSE="gtk ipv6 ncurses" + +RDEPEND=" + gtk? ( + dev-libs/glib:2 + x11-libs/gtk+:2 + ) + ncurses? ( sys-libs/ncurses:0= ) +" +DEPEND=" + ${RDEPEND} + sys-devel/autoconf + virtual/pkgconfig +" + +DOCS=( AUTHORS NEWS SECURITY TODO ) +FILECAPS=( cap_net_raw usr/sbin/mtr-packet ) +PATCHES=( + "${FILESDIR}"/${PN}-0.88-tinfo.patch +) + +src_prepare() { + default + + sed -i -e 's|m4_esyscmd(\[build-aux/git-version-gen .tarball-version\])|'"${PV}"'|g' configure.ac || die + + eautoreconf +} + +src_configure() { + # In the source's configure script -lresolv is commented out. Apparently it + # is needed for 64bit macos still. + [[ ${CHOST} == *-darwin* ]] && append-libs -lresolv + econf \ + $(use_enable ipv6) \ + $(use_with gtk) \ + $(use_with ncurses) +} + +src_test() { + [[ "$UID" = 0 ]] && default +} + +pkg_postinst() { + fcaps_pkg_postinst + + if use prefix && [[ ${CHOST} == *-darwin* ]] ; then + ewarn "mtr needs root privileges to run. To grant them:" + ewarn " % sudo chown root ${EPREFIX}/usr/sbin/mtr" + ewarn " % sudo chmod u+s ${EPREFIX}/usr/sbin/mtr" + fi +} diff --git a/net-analyzer/mtr/mtr-9999.ebuild b/net-analyzer/mtr/mtr-9999.ebuild index 06c55d456ae3..6185590ebe48 100644 --- a/net-analyzer/mtr/mtr-9999.ebuild +++ b/net-analyzer/mtr/mtr-9999.ebuild @@ -6,7 +6,7 @@ inherit autotools eutils fcaps flag-o-matic git-r3 DESCRIPTION="My TraceRoute, an Excellent network diagnostic tool" HOMEPAGE="http://www.bitwizard.nl/mtr/" -EGIT_REPO_URI="https://github.com/traviscross/mtr.git" +EGIT_REPO_URI="https://github.com/traviscross/mtr" SRC_URI="mirror://gentoo/gtk-2.0-for-mtr.m4.bz2" LICENSE="GPL-2" |