diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/mtr |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/mtr')
-rw-r--r-- | net-analyzer/mtr/Manifest | 13 | ||||
-rw-r--r-- | net-analyzer/mtr/files/mtr-0.80-impl-dec.patch | 12 | ||||
-rw-r--r-- | net-analyzer/mtr/files/mtr-0.87-ipv6.patch | 59 | ||||
-rw-r--r-- | net-analyzer/mtr/files/mtr-0.87-tinfo.patch | 11 | ||||
-rw-r--r-- | net-analyzer/mtr/files/mtr-0.88-tinfo.patch | 13 | ||||
-rw-r--r-- | net-analyzer/mtr/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/mtr/mtr-0.87.ebuild | 51 | ||||
-rw-r--r-- | net-analyzer/mtr/mtr-0.92-r1.ebuild | 63 | ||||
-rw-r--r-- | net-analyzer/mtr/mtr-9999.ebuild | 69 |
9 files changed, 299 insertions, 0 deletions
diff --git a/net-analyzer/mtr/Manifest b/net-analyzer/mtr/Manifest new file mode 100644 index 000000000000..196b2b553d7c --- /dev/null +++ b/net-analyzer/mtr/Manifest @@ -0,0 +1,13 @@ +AUX mtr-0.80-impl-dec.patch 226 SHA256 55f7f19bb3718ee18b25be15e2a85e432d2c5d044571f3a08d3b117b0fed7c4c SHA512 71c53c22f4ff99b29cd71f4e910e857ea0f4f497d25dcd59295ca2b59eb7be40d021d865489a53234d5fa4395f6baf011073d117653ad82aef78562a60898b1c WHIRLPOOL b9816c9b0b78c2d71be696b40aef762eab7006ff04e0efde7f0a03dd2cd0bdd0f157d71ecb5ac143fa8e24fbda7dbe88db2bceccfbdaa2d8ab970203ff25a50a +AUX mtr-0.87-ipv6.patch 1846 SHA256 1645b34d2db0ad56af5b59a78874e01e1ad04c77459111a4f85a700266ffae0d SHA512 07a43b798b30893583fb08e7e65a6833ece98f18656f6a31e7e61acd1f582d68d35b63d5aada4175d5df2451cbd856370e85f514e1ee8447ada9a91a83af1345 WHIRLPOOL be39f44bf454bb357595c03412deaf4202090162899b700d0a81c80f0b00df52e2aeeb78e0715b004060c41fc881310f6ac52ab79689ade12a41efffac7f553e +AUX mtr-0.87-tinfo.patch 380 SHA256 d579470b58c2da6440823dc9f620cc3b09912ec7777c25aba4d0cc9fec743c03 SHA512 91442d319840620273c712e7668d8895a28a10615afa4e06a16a3f86c2dc319a9484c7a8b92a8ad7de97f56c52b881a230ebd3fe59e45a7a4df85fcd77c74229 WHIRLPOOL cdbcf99f2d2dd69def67c67e55f8582095e1387c28c87d085772ce1ab07cf0d251994449996b636f75901dbb66a21c6ebce7ef1d29c398a0c5e1f8700927357c +AUX mtr-0.88-tinfo.patch 450 SHA256 de8d78b90147858d4a13d4061d9cea7597fe1e27a7a4f2adff20133381a5317b SHA512 996905be6f96f71a742d3a00c0a5c6730b69709f50db4132284e12030dd80929ed838f7a7a94bf3634698bd17234a1324a84f81a5dfe5f4a71ab70e9f8f294aa WHIRLPOOL 42ea7b3ad78d2e33887960fa52f3f9dd338d1f8a1a21c7741977162349f81f7c7110b12fe0808003aebb711e443247fcc392d9b24a1e329160f22d9c8adaa884 +DIST gtk-2.0-for-mtr.m4.bz2 2508 SHA256 59152f9a4a1af5cf09f2aaa804c9071afe3eb6632162f1660d85c820db342eba SHA512 0f593b761d7a9399469f1f7bb3992133b391a2ce760ecfad96237561992802c192b810f4722763685d5f6e7a76bd2806abf08e1850bdce00e5cd3af4c810210f WHIRLPOOL 8bfa2cd70c2aba06473692cdf3e091a983aab69cdb5be3d0382b6b87c05bcc577ecb1afab26afc17ee16d07a1161fe84f17e3cc9ae0a150364f34667cfba5779 +DIST mtr-0.87.tar.gz 184645 SHA256 193947c61d23b154c8dc03677e90e8fd912f8f18567ab76ce619b7856c4af19f SHA512 172ba2f78a6ee4deb427ac2fb00dff16843215dbd23663fbe41fcc957ffe278b408a73a0c7e1c05788b235e2d03fb53f9971b8b82d4de2f95edcaa9f2cff3cf9 WHIRLPOOL 39fc9b60c1eccfdb1159a184f7089f13d1a8fbc35f16b7c23b746f3da709894f99571a57ef3431ca601112691c0e693b86a9941ed20bc236d2630f282e43d641 +DIST mtr-0.92.tar.gz 296430 SHA256 f2979db9e2f41aa8e6574e7771767c9afe111d9213814eb47f5e1e71876e4382 SHA512 d362a418b6c17fd2d08da1ed9e033fa3330e4c0497e1bb0644f6193d23f4e20dd8ee181942c2a20ec0025a8b96c521394a21be5a1d9036f8a0a8c4cddfbe381f WHIRLPOOL 6ee3bfa8be5d214bdd063d9ab7c8f17cc08cab0492cb3292a3869360e2d97a90fb238af8e22d775b66467e8aa564cadb13b2d35af8a694629be555c684c77901 +EBUILD mtr-0.87.ebuild 1160 SHA256 e8929a88c32c4489355470535079ed6e9d809ec2237375c2cd8fc4d8cffef8eb SHA512 93f02f5f2f477f5aeef30fcdf9d589870af55b7076989be6cfd00513796acef1657a0f92558d97807fdfc70764da7b61a8c8f3dd67cdf73e7f9d417ee5fe5e82 WHIRLPOOL 0b688592c8e35fbf4aa4e3b7669cec9e3cdf684ad0d63453bedd98d954681f8106c87e92be047c22659c7463e599d3d6f3e606c92c8ac4bddf1a6295f52d232e +EBUILD mtr-0.92-r1.ebuild 1428 SHA256 35f78c4c4d59ea7d53759ce0325103092412b3add45687442fc9c74e3bdda793 SHA512 b7dd855dfe63c4d069150cc2c78faad630dfc11e02afa5f9d1262df8ad35cc9d43602f7ca3721ce421285fb40ca362df35a196560726d0f1ca78262388b16ea4 WHIRLPOOL 24f28e77a2e1a5f771702a37ae054731db199b76bd3c1347f5690bb8656a199ff751364e20359029650b77b49da1f1de0ef26e3b3e36f0ec96b0795ec6e60f9f +EBUILD mtr-9999.ebuild 1585 SHA256 15b461d10590c12e44c7ff74faf141d553f7c7a5fe4d34b34d2fcd9ef1b44256 SHA512 798aadffb0af237a0b94b8b7993b42584dbe416edead6df07c23fdf06a98ba67ddf24e08d0443d8bd73340ae13a60daeb821d397ada4531220cfda3758370009 WHIRLPOOL 89fb1760bcb3c01acb916566c9bca848e77c15541eefc69e27aa067c440b9ade6edcf2be864a1813a5abeba63eb2fa4d5584a273f65ee97b39f4d560d7157d93 +MISC ChangeLog 4414 SHA256 dfee5a09e77642cd39940458eb72c86486f1b85b76a5434add1cd05fe8f46cdd SHA512 4485fc53f5a60db65361998c63b78a016980fe5def35dac149e64f9e54df819c0f18240c2a5023ff0f6222aec714fec746a09e16d06624b9cf795685192b819e WHIRLPOOL 31cc9fb641b7153dffd5fcf061c4f4e4af4e0809e4a28630c0d855f9d15dd1ba8391a71ed21c669448b87643ea22d8766be4770d5683d7b40b734bfc8ba36c8d +MISC ChangeLog-2015 20485 SHA256 19bed290fa24af5fe19a2b078a86aa870b706d7abdf878b355476407712c16c9 SHA512 c30bc86be3fee9753e10b4f8887b275fe9631b49bc919683c69595c4f80627796468f1c0146aa52616aa75fa427e358dd02583a9bf8151be4a43b1c991beabe2 WHIRLPOOL 0b997c80bc51885c9a73d8dcaacae22551b33c81db9534fef18e912bfad30d7be2b5648cc452d3193fd0ec1b9b3c151b4d28f83ae68680592693a62a3dcdab81 +MISC metadata.xml 280 SHA256 b04c5b9d91f6c4d6e36583488fd032751034d1e035085609c9bdf7677cf1e83f SHA512 8b56802e5524808b11ab857779ce04fb2d07cae87376f67490178601a9aecf7ad9f95743709b46048a425598d4cf8dcf01ef78cc97009d78e26a7728453150ef WHIRLPOOL 6f3756b9ac748acccb6ac5a4de133cf93988e8c904f606376fecbb6a21ce038e86437fecca43b2521538da2570d33ff1a6a1e0cab290a3d71a9b4f2734f16328 diff --git a/net-analyzer/mtr/files/mtr-0.80-impl-dec.patch b/net-analyzer/mtr/files/mtr-0.80-impl-dec.patch new file mode 100644 index 000000000000..5b41a54c744b --- /dev/null +++ b/net-analyzer/mtr/files/mtr-0.80-impl-dec.patch @@ -0,0 +1,12 @@ +diff --git a/gtk.c b/gtk.c +index e42f4f6..333d7c8 100644 +--- a/gtk.c ++++ b/gtk.c +@@ -24,6 +24,7 @@ + #include <unistd.h> + #include <sys/time.h> + #include <sys/types.h> ++#include <string.h> + + #ifndef NO_GTK + #include <stdio.h> diff --git a/net-analyzer/mtr/files/mtr-0.87-ipv6.patch b/net-analyzer/mtr/files/mtr-0.87-ipv6.patch new file mode 100644 index 000000000000..32a62853387c --- /dev/null +++ b/net-analyzer/mtr/files/mtr-0.87-ipv6.patch @@ -0,0 +1,59 @@ +--- a/net.c ++++ b/net.c +@@ -320,9 +320,13 @@ + struct sockaddr_storage local; + struct sockaddr_storage remote; + struct sockaddr_in *local4 = (struct sockaddr_in *) &local; ++#ifdef ENABLE_IPV6 + struct sockaddr_in6 *local6 = (struct sockaddr_in6 *) &local; ++#endif + struct sockaddr_in *remote4 = (struct sockaddr_in *) &remote; ++#ifdef ENABLE_IPV6 + struct sockaddr_in6 *remote6 = (struct sockaddr_in6 *) &remote; ++#endif + socklen_t len; + + ttl = index + 1; +@@ -437,9 +441,13 @@ + struct sockaddr_storage local; + struct sockaddr_storage remote; + struct sockaddr_in *local4 = (struct sockaddr_in *) &local; ++#ifdef ENABLE_IPV6 + struct sockaddr_in6 *local6 = (struct sockaddr_in6 *) &local; ++#endif + struct sockaddr_in *remote4 = (struct sockaddr_in *) &remote; ++#ifdef ENABLE_IPV6 + struct sockaddr_in6 *remote6 = (struct sockaddr_in6 *) &remote; ++#endif + socklen_t len; + + ttl = index + 1; +@@ -726,8 +734,12 @@ + + /* sendto() assumes packet length includes the IPv4 header but not the + IPv6 header. */ ++#ifdef ENABLE_IPV6 + spacketsize = abs(packetsize) - + ( ( af == AF_INET ) ? 0 : sizeof (struct ip6_hdr) ); ++#else ++ spacketsize = abs(packetsize); ++#endif + rv = sendto(sendsock, packet, spacketsize, 0, remotesockaddr, salen); + if (first && (rv < 0) && ((errno == EINVAL) || (errno == EMSGSIZE))) { + /* Try the first packet again using host byte order. */ +@@ -1535,11 +1547,15 @@ + struct sockaddr_in name_struct; + #endif + struct sockaddr_in * sa4; ++#ifdef ENABLE_IPV6 + struct sockaddr_in6 * sa6; ++#endif + struct sockaddr * name = (struct sockaddr *) &name_struct; + struct sockaddr_storage remote; + struct sockaddr_in *remote4 = (struct sockaddr_in *) &remote; ++#ifdef ENABLE_IPV6 + struct sockaddr_in6 *remote6 = (struct sockaddr_in6 *) &remote; ++#endif + socklen_t len; + int s; + diff --git a/net-analyzer/mtr/files/mtr-0.87-tinfo.patch b/net-analyzer/mtr/files/mtr-0.87-tinfo.patch new file mode 100644 index 000000000000..4dbdef1cc2fb --- /dev/null +++ b/net-analyzer/mtr/files/mtr-0.87-tinfo.patch @@ -0,0 +1,11 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -25,6 +25,8 @@ + AC_DEFINE(NO_CURSES, 1, [Define if you don't have the curses libraries available.]) + CURSES_OBJ=) + ++AC_SEARCH_LIBS(raw, [ncurses curses cursesX tinfo]) ++ + AC_CHECK_LIB(ncurses, use_default_colors, + AC_DEFINE(HAVE_USE_DEFAULT_COLORS, 1, [Define this if your curses library has the use_default_colors() command.])) + diff --git a/net-analyzer/mtr/files/mtr-0.88-tinfo.patch b/net-analyzer/mtr/files/mtr-0.88-tinfo.patch new file mode 100644 index 000000000000..c7252b74435e --- /dev/null +++ b/net-analyzer/mtr/files/mtr-0.88-tinfo.patch @@ -0,0 +1,13 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -101,7 +101,10 @@ + # (On Solaris 11.3, ncurses builds and links for us, but curses does not.) + [AC_SEARCH_LIBS( + [initscr], [ncurses curses], ++ [AC_SEARCH_LIBS( ++ [raw], [ncurses curses cursesX tinfo], + [AC_DEFINE([HAVE_CURSES], [1], [Define if a curses library available])], ++ [with_ncurses=no])], + [with_ncurses=no]) + ]) + AM_CONDITIONAL([WITH_CURSES], [test "x$with_ncurses" = xyes]) diff --git a/net-analyzer/mtr/metadata.xml b/net-analyzer/mtr/metadata.xml new file mode 100644 index 000000000000..2c2a7923cfc8 --- /dev/null +++ b/net-analyzer/mtr/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> +</pkgmetadata> diff --git a/net-analyzer/mtr/mtr-0.87.ebuild b/net-analyzer/mtr/mtr-0.87.ebuild new file mode 100644 index 000000000000..e81c2db77623 --- /dev/null +++ b/net-analyzer/mtr/mtr-0.87.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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" + +RDEPEND=" + sys-libs/ncurses:0= + gtk? ( + dev-libs/glib:2 + x11-libs/gtk+:2 + ) +" +DEPEND=" + ${RDEPEND} + sys-devel/autoconf + virtual/pkgconfig +" + +DOCS=( AUTHORS FORMATS NEWS README SECURITY TODO ) +FILECAPS=( cap_net_raw /usr/sbin/mtr ) +PATCHES=( + "${FILESDIR}"/${PN}-0.80-impl-dec.patch + "${FILESDIR}"/${PN}-0.87-ipv6.patch + "${FILESDIR}"/${PN}-0.87-tinfo.patch +) + +src_prepare() { + default + 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) \ + --disable-gtktest +} diff --git a/net-analyzer/mtr/mtr-0.92-r1.ebuild b/net-analyzer/mtr/mtr-0.92-r1.ebuild new file mode 100644 index 000000000000..ea48af37e69d --- /dev/null +++ b/net-analyzer/mtr/mtr-0.92-r1.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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 FORMATS NEWS README SECURITY TODO ) +FILECAPS=( cap_net_raw usr/sbin/mtr-packet ) +PATCHES=( + "${FILESDIR}"/${PN}-0.88-tinfo.patch +) + +src_prepare() { + default + + 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 new file mode 100644 index 000000000000..3a1ec3b3a684 --- /dev/null +++ b/net-analyzer/mtr/mtr-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +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" +SRC_URI="mirror://gentoo/gtk-2.0-for-mtr.m4.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +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 FORMATS NEWS README SECURITY TODO ) +FILECAPS=( cap_net_raw usr/sbin/mtr-packet ) +PATCHES=( + "${FILESDIR}"/${PN}-0.88-tinfo.patch +) + +src_unpack() { + git-r3_src_unpack + unpack ${A} +} + +src_prepare() { + # Keep this comment and following mv, even in case ebuild does not need + # it: kept gtk-2.0.m4 in SRC_URI but you'll have to mv it before autoreconf + mv "${WORKDIR}"/gtk-2.0-for-mtr.m4 gtk-2.0.m4 || die #222909 + + default + + AT_M4DIR="." eautoreconf +} + +src_configure() { + # In the source's configure script -lresolv is commented out. Apparently it + # is still needed for 64-bit MacOS. + [[ ${CHOST} == *-darwin* ]] && append-libs -lresolv + econf \ + $(use_enable ipv6) \ + $(use_with gtk) \ + $(use_with ncurses) +} + +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 +} |