summaryrefslogtreecommitdiff
path: root/net-analyzer/pchar
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/pchar')
-rw-r--r--net-analyzer/pchar/Manifest6
-rw-r--r--net-analyzer/pchar/files/pchar-1.5-snmp.patch24
-rw-r--r--net-analyzer/pchar/metadata.xml17
-rw-r--r--net-analyzer/pchar/pchar-1.5-r1.ebuild42
4 files changed, 89 insertions, 0 deletions
diff --git a/net-analyzer/pchar/Manifest b/net-analyzer/pchar/Manifest
new file mode 100644
index 000000000000..bb5caec5a474
--- /dev/null
+++ b/net-analyzer/pchar/Manifest
@@ -0,0 +1,6 @@
+AUX pchar-1.5-snmp.patch 874 SHA256 3c67ac2ef21c7d503f28a5020baf763c9ca24f99d38b078bb5dcb3e8a3424f38 SHA512 d0f64b535154534f171f4397afbbee0ce1db03048417aebc625c62b546ce2ae02d9af7c03220c9dec76adf6780db1e74c484dc500c1399bc8e7065c5a5c4aa8f WHIRLPOOL c43c7630dac791afdc4a4ffe9bf4e42aa72176eb9bd3af7228648e3389971cb120f5cd3797b5b2f12d0b9045c9fb14b99297b8aa9c9d051a7a4b40b220fa8c73
+DIST pchar-1.5.tar.gz 117678 SHA256 7019297084f1000557a019501532ecae67772851717329cc02227f5c17e36d27 SHA512 56784589a16638a12230a11a177b8dd97a7abac927624beaaea89e0169423f7242c2b434a36aad1a07d977e6b006fd71eb9132aecb1d35e3e3363eb2d1549d84 WHIRLPOOL 952ed4b9497da6b1e9ab8748d76e447b411e020baf0cebfb73e17e761b54de3c874707eebf6940510c0a1443823613021e1abac296bba9792680c6409c2a9f08
+EBUILD pchar-1.5-r1.ebuild 880 SHA256 b752c1f0c57b3742664996d0ce4ed00221c6bae5e658125b05599bbd5ef950c6 SHA512 696dfb81fce6220e1b583cb27872d06879435dcaf0ef0deab7e445bd358a8c73436103cd22545ba2b61b85fde1655afa2e4be98ec47fe24b4478b5358a3ffc15 WHIRLPOOL acba81e2d7f96196b5c65fac4d83fe4bd5a37b96831c9b60ab50d859a1b9337a94348dbd50ed526e498c029a7607fb623727644a237fb0fe3a733b688c84d4ee
+MISC ChangeLog 2598 SHA256 1bbef26cdc76ff4b5c7a986898d6ef9459df0f856e597f9650fa41d2987a1726 SHA512 34592bcb4dbee9219cec02dda86c81006d118e91586ca813a4287ab22ddf29637cb85604438cbcc269be7382c52b6dd68e5f6ddbdd6590361ad1b7b415fadc9d WHIRLPOOL b118607c88b16e8156e085a4e4bde7df77708f0c5b81a1ed4596c0bf3a02c1a46ae7467338058e0ba9b6099aeca852bb86592df0820d7cfb3c4bc1fa4446a8a5
+MISC ChangeLog-2015 1516 SHA256 c98b1d34a655f1abc52bf1fbd7cccb14489b182cbe70bae2cd297ad4bb7a0ef2 SHA512 92d4d2594b4f1aa7c4c45654d87e8678e070e5c84b9b90ea74d2d22c1f35149d9e4c9bdddae62349e624a7dcd2a03dbc16f009d453c011cce630e0c442dec776 WHIRLPOOL 91c9872e825b7c869c45f704435898ecdd45a0316a0c80b0148a90efdb77856b03f4ea963d094d0385eb576da65ced1853eeb9eda1d5a889752826c0e2cb7f83
+MISC metadata.xml 626 SHA256 5c6cde02ba512d6f61181e0cbe7151a402f4cd6a512cc55bf65b967618dd39fb SHA512 67dc60bde2d5804b91a19d6037b78ca1df55aa735c8329836817af15875fce11345379812090a7755e4952b43d6cc9bb373db1b6ceba70ae957c927321154fb2 WHIRLPOOL f46f44cc5e63c90cc7e979cfe401226dc4cd23d44f041ec467cf4eacde6e8ffefd560e117933a62d16378ef1d0f5816f131c47ccfb0827c855ae404e585ccee4
diff --git a/net-analyzer/pchar/files/pchar-1.5-snmp.patch b/net-analyzer/pchar/files/pchar-1.5-snmp.patch
new file mode 100644
index 000000000000..9ebfbad39eb0
--- /dev/null
+++ b/net-analyzer/pchar/files/pchar-1.5-snmp.patch
@@ -0,0 +1,24 @@
+--- GetIfInfo.h.old 2005-02-12 21:32:18.000000000 +0100
++++ GetIfInfo.h 2006-09-22 11:08:44.000000000 +0200
+@@ -17,7 +17,7 @@
+ bool IsValid(void);
+
+ const char * GetDescription(void) const;
+- const char * GetIfInfo::GetName(void) const;
++ const char * GetName(void) const;
+ const char * GetContact(void) const;
+ const char * GetLocation(void) const;
+ const char * GetIfDescription(void) const;
+--- configure.in.old 2005-02-12 21:32:18.000000000 +0100
++++ configure.in 2006-10-24 23:08:38.000000000 +0200
+@@ -128,8 +128,8 @@
+ LDFLAGS="-L$with_snmp/lib $LDFLAGS"
+ CPPFLAGS="-I$with_snmp/include $CPPFLAGS"
+ fi
+- AC_CHECK_LIB(crypto, des_cbc_encrypt)
+- AC_CHECK_LIB(snmp, snmp_sess_init,,,-lcrypto)
++ AC_CHECK_LIB(crypto, DES_cbc_encrypt)
++ AC_CHECK_LIB(snmp, snmp_sess_init)
+ fi
+
+ dnl pcap support if desired. If the user enabled --with-pcap,
diff --git a/net-analyzer/pchar/metadata.xml b/net-analyzer/pchar/metadata.xml
new file mode 100644
index 000000000000..f1fd21ae99d5
--- /dev/null
+++ b/net-analyzer/pchar/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+</maintainer>
+<longdescription lang="en">
+pchar is a reimplementation of the pathchar utility, written by Van
+Jacobson. Both programs attempt to characterize the bandwidth,
+latency, and loss of links along an end-to-end path through the
+Internet. pchar works in both IPv4 and IPv6 networks.
+</longdescription>
+<use>
+ <flag name="pcap">Use the <pkg>net-libs/libpcap</pkg> library</flag>
+</use>
+</pkgmetadata>
diff --git a/net-analyzer/pchar/pchar-1.5-r1.ebuild b/net-analyzer/pchar/pchar-1.5-r1.ebuild
new file mode 100644
index 000000000000..37006d24eeac
--- /dev/null
+++ b/net-analyzer/pchar/pchar-1.5-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+WANT_AUTOCONF=2.1
+WANT_AUTOMAKE=none
+
+inherit eutils autotools toolchain-funcs
+
+DESCRIPTION="Internet bandwidth, latency, and loss of links analyzer"
+HOMEPAGE="http://www.kitchenlab.org/www/bmah/Software/pchar/"
+SRC_URI="http://www.kitchenlab.org/www/bmah/Software/${PN}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="ipv6 pcap snmp"
+
+DEPEND=">=dev-libs/openssl-0.9.7
+ snmp? ( net-analyzer/net-snmp[ucd-compat(+)] )
+ pcap? ( net-libs/libpcap )"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-snmp.patch
+
+ eautoreconf
+}
+
+src_configure() {
+ tc-export CC CXX
+
+ econf --without-suid \
+ $(use_with ipv6) \
+ $(use_with snmp snmp /usr/lib) \
+ $(use_with pcap)
+}
+
+src_install() {
+ einstall
+ dodoc FAQ CHANGES README
+}