diff options
Diffstat (limited to 'net-analyzer/echoping')
7 files changed, 195 insertions, 0 deletions
diff --git a/net-analyzer/echoping/Manifest b/net-analyzer/echoping/Manifest new file mode 100644 index 000000000000..b46367e8d8e8 --- /dev/null +++ b/net-analyzer/echoping/Manifest @@ -0,0 +1,9 @@ +AUX echoping-6.0.2_p434-fix_implicit_declarations.patch 422 SHA256 67c033800beba27e74e842fa8b55d080ccdd950eecaae05aa23d6d2334ecf96d SHA512 533a7da90d5ba39d4d4137d5e00e74b010cdf3ec957a46fdf39588e8b87e2d75382d14cc53f4b0b7c0aea029d5327353cd79975011c637390872bab8a3846be2 WHIRLPOOL c32b814acef08cd1633932547a58959fd0ed9dacce9bbdeceac5d5d4864939b690332fe0f0a3f126b58355b9f1e6771cbd29dcff969c97903a153cb42aa13fb8 +AUX echoping-6.0.2_p434-gnutls_certificate_type_set_priority.patch 595 SHA256 388f5dfa10225aef8390ef6e1ac7934041081391e815c4538a426d45af148c7f SHA512 4bec1c8a77f17a163437dca9ce2ef49a355db041b08df7eb087352e03eede069f869e271d9414fc62d88a5e36687787e4719e7405f4b5ba96bbf8534af06ca52 WHIRLPOOL b642814bd91337752aceb15eb41d388a45bd411566d7205ce05d258ce92108c07eaf7a5469f91ea038227322c52ee6c753a4e805ae6b31ead7a57898650ee4e3 +AUX echoping-6.0.2_p434-gnutls_session.patch 492 SHA256 6223043e4dab8a6c5367b83168678dcd6c8984ffb8ef3ff2d812c8ee2b35c211 SHA512 99362748feb0ab02172ee4f21c9630c505b899c78483077ef4f056e136854037ea165dd57d2637bed791ff3e8407b08733efab864d68e726b0d31d31a4c17525 WHIRLPOOL edb67cbffc7ad3784bbf90c332e6d0927580f375c5fe6e586b699685a9aee17dcdd93e5f2d0c50a83fbe2b7bf6a5e4362074bbf552c236fbde1d74dcc3c1a033 +DIST echoping-6.0.2_p434.tar.gz 74568 SHA256 152a4a9d2a3962fa8cb95eeb29b5d22a7039d4408f5ba22286259856f095baf7 SHA512 1b4f5f1ea6ba000c558cab3b8e86758d6c539d8cd237620000d837b468861a177ac733441c885eb8ec1c35b49baa33a82e34e3f8b14b05429a075b72233d5799 WHIRLPOOL cae10459766311ded4f6459e519461fb91de7dd9429679927c3955a5a9b09b9b9a9706947b3a5c1495805367c91cf2035d3154a3ff180241782deec304eb8aaf +EBUILD echoping-6.0.2_p434-r2.ebuild 1333 SHA256 4e29d137d5ebd5b61fb6852ce04945170ea5a5409cc91860f43f80b2124d47e9 SHA512 9f308e6a3766a8f7d7dc98d6abb70904931f8894c01b6a1e54198ca1205ebd53ebbf7184664bee1e4130ff639bd0dd1790d7d4a01f9dbc6d9041a28f1d69a667 WHIRLPOOL d2e206813fd8f66b79405ab6a3aab8228f6b2eb910beadcdbc30fa5a24e901fa4eeddfaab114beda98b6a8fdfd39f8e6e206c0642092457f15eac2887a77d3be +EBUILD echoping-6.0.2_p434-r3.ebuild 1394 SHA256 e9c1a79ec8ebbe51c66c66aa1dc1020c857f2349d26e53692262fdc9d1c6d66f SHA512 78b79c0238264d0b26c816a622016141624d4d316174f44d200cd39782a793f0bd13cf6cb88395194288ae6021186dcbb2a19b5cd1157f42059880dea019aac0 WHIRLPOOL ccc1f5289a0e955fb3d0a08215290b0a5792107e07ca1f393a96b527b5fc1757a669fca3e05879ef72d4f58123333bb00cdff2adbe97d1410d8d3e513d28c8d0 +MISC ChangeLog 4369 SHA256 92980be9bdb227396c7d1fd8f87184ef1c8558cf173c6810a4771d7ae841b8b5 SHA512 2f9013f59a64ec6a2aa137d3aad856915002c0234a4a3fb528d26a34d9da42b0ddc38b4ae1096f6f5724ec85db592028522604903e6cea409a68a173c496ee1f WHIRLPOOL 982926483ef537092c4772d6c9454e5a8e80798703ea07678d59df19b1f34472df68997b6972e210ebb6c443dc608d768a9150f7aef186f10d71008a40438874 +MISC ChangeLog-2015 5461 SHA256 a52bc6d106a5a9cf775dd882b5fd5a85c07a6d87c7252ab99fb829895d9c7067 SHA512 809507d83704d65b96a6b735ccbc583bdac56481b980f919ac4c674326e732dcc68b08c1d464f818563b0b86953dacc5eecfebfc1859344a5788fd3117f3cfd3 WHIRLPOOL b357db1a6be67c4891745ed459ed47b554c138b02ef3bbcfbca634bbbc7b46ba9b5460a6697157b838bc91eaa6139ef1005220951fe1c874553b80ca8202a3ed +MISC metadata.xml 702 SHA256 8d039d0c2f5b51dec82f8ca0220c8bfed464d447385f68f0a06bfe72fb8ecbe9 SHA512 db906d89ac30011c740e44f73fad23a4f9b8d8c318b6a0b9240e17dc31c897850ed2f22890b8516633c6a10f44154b77a4c198e851eb8793a55c36497ebb702f WHIRLPOOL 8d85ec7a1eb3a1b8135573c31e63a02ddc544ee2cb2d4ead2ba0f2e2e26182f6fc54ac7b11b323753c07440f280a0de665393611c8736edd841cf4fec8e8e054 diff --git a/net-analyzer/echoping/echoping-6.0.2_p434-r2.ebuild b/net-analyzer/echoping/echoping-6.0.2_p434-r2.ebuild new file mode 100644 index 000000000000..1b004aa80cfb --- /dev/null +++ b/net-analyzer/echoping/echoping-6.0.2_p434-r2.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="Small program to test performances of remote servers" +HOMEPAGE="http://echoping.sourceforge.net/" +SRC_URI="https://dev.gentoo.org/~jer/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="amd64 ~hppa x86" +IUSE="gnutls http icp idn priority smtp ssl tos postgres ldap" +RESTRICT="test" + +RDEPEND="idn? ( net-dns/libidn ) + postgres? ( dev-db/postgresql:* ) + ldap? ( net-nds/openldap ) + ssl? ( + gnutls? ( >=net-libs/gnutls-3.3:= ) + !gnutls? ( >=dev-libs/openssl-0.9.7d:= ) + )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2" + +REQUIRED_USE="gnutls? ( ssl )" + +DOCS=( README AUTHORS ChangeLog DETAILS NEWS TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-6.0.2_p434-fix_implicit_declarations.patch + epatch "${FILESDIR}"/${PN}-6.0.2_p434-gnutls_certificate_type_set_priority.patch + epatch "${FILESDIR}"/${PN}-6.0.2_p434-gnutls_session.patch + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable http) \ + $(use_enable icp) \ + $(use_enable priority) \ + $(use_enable smtp) \ + $(use_enable tos) \ + $(use_with idn libidn) \ + $(usex gnutls $(use_with gnutls) $(use_with ssl)) \ + --config-cache \ + --disable-static \ + --disable-ttcp +} + +src_install() { + default + prune_libtool_files +} diff --git a/net-analyzer/echoping/echoping-6.0.2_p434-r3.ebuild b/net-analyzer/echoping/echoping-6.0.2_p434-r3.ebuild new file mode 100644 index 000000000000..0a565e6bf158 --- /dev/null +++ b/net-analyzer/echoping/echoping-6.0.2_p434-r3.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit autotools eutils + +DESCRIPTION="Small program to test performances of remote servers" +HOMEPAGE="http://echoping.sourceforge.net/" +SRC_URI="https://dev.gentoo.org/~jer/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~hppa ~x86" +IUSE="libressl gnutls http icp idn priority smtp ssl tos postgres ldap" +RESTRICT="test" + +RDEPEND="idn? ( net-dns/libidn ) + postgres? ( dev-db/postgresql:* ) + ldap? ( net-nds/openldap ) + ssl? ( + gnutls? ( >=net-libs/gnutls-3.3:= ) + !gnutls? ( + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= ) + ) + )" +DEPEND="${RDEPEND} + >=sys-devel/libtool-2" + +REQUIRED_USE="gnutls? ( ssl )" + +DOCS=( README AUTHORS ChangeLog DETAILS NEWS TODO ) + +src_prepare() { + epatch "${FILESDIR}"/${PN}-6.0.2_p434-fix_implicit_declarations.patch + epatch "${FILESDIR}"/${PN}-6.0.2_p434-gnutls_certificate_type_set_priority.patch + epatch "${FILESDIR}"/${PN}-6.0.2_p434-gnutls_session.patch + + eautoreconf +} + +src_configure() { + econf \ + $(use_enable http) \ + $(use_enable icp) \ + $(use_enable priority) \ + $(use_enable smtp) \ + $(use_enable tos) \ + $(use_with idn libidn) \ + $(usex gnutls $(use_with gnutls) $(use_with ssl)) \ + --config-cache \ + --disable-static \ + --disable-ttcp +} + +src_install() { + default + prune_libtool_files +} diff --git a/net-analyzer/echoping/files/echoping-6.0.2_p434-fix_implicit_declarations.patch b/net-analyzer/echoping/files/echoping-6.0.2_p434-fix_implicit_declarations.patch new file mode 100644 index 000000000000..c2fd2f6886cb --- /dev/null +++ b/net-analyzer/echoping/files/echoping-6.0.2_p434-fix_implicit_declarations.patch @@ -0,0 +1,20 @@ +--- a/echoping.h ++++ b/echoping.h +@@ -194,6 +194,7 @@ + #endif + /* util.c */ + char *random_string(); ++char *to_upper(); + void tvsub(); + void tvadd(); + void tvavg(); +--- a/plugins/ldap/ldap.c ++++ b/plugins/ldap/ldap.c +@@ -9,6 +9,7 @@ + #include "../../config.h" + #include "config.h" + #endif ++#define LDAP_DEPRECATED 1 + #include <ldap.h> + + const char *request = NULL; diff --git a/net-analyzer/echoping/files/echoping-6.0.2_p434-gnutls_certificate_type_set_priority.patch b/net-analyzer/echoping/files/echoping-6.0.2_p434-gnutls_certificate_type_set_priority.patch new file mode 100644 index 000000000000..0cb219f254cb --- /dev/null +++ b/net-analyzer/echoping/files/echoping-6.0.2_p434-gnutls_certificate_type_set_priority.patch @@ -0,0 +1,11 @@ +--- a/echoping.c ++++ b/echoping.c +@@ -981,8 +981,6 @@ + if (tls_result != 0) + err_sys("Cannot create a new TLS session"); + gnutls_set_default_priority(session); +- gnutls_certificate_type_set_priority(session, +- cert_type_priority); + gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, xcred); + gnutls_transport_set_ptr(session, (gnutls_transport_ptr) + (long) sockfd); diff --git a/net-analyzer/echoping/files/echoping-6.0.2_p434-gnutls_session.patch b/net-analyzer/echoping/files/echoping-6.0.2_p434-gnutls_session.patch new file mode 100644 index 000000000000..8b87c47c7892 --- /dev/null +++ b/net-analyzer/echoping/files/echoping-6.0.2_p434-gnutls_session.patch @@ -0,0 +1,22 @@ +--- a/echoping.c ++++ b/echoping.c +@@ -134,7 +134,7 @@ + SSL *sslh = NULL; + #endif + #ifdef GNUTLS +- gnutls_session session; ++ gnutls_session_t session; + gnutls_certificate_credentials xcred; + int tls_result; + const int cert_type_priority[3] = { GNUTLS_CRT_X509, +--- a/echoping.h ++++ b/echoping.h +@@ -103,7 +103,7 @@ + SSL *ssl; + #endif + #ifdef GNUTLS +- gnutls_session tls; ++ gnutls_session_t tls; + #endif + } CHANNEL; + diff --git a/net-analyzer/echoping/metadata.xml b/net-analyzer/echoping/metadata.xml new file mode 100644 index 000000000000..723d8a307977 --- /dev/null +++ b/net-analyzer/echoping/metadata.xml @@ -0,0 +1,18 @@ +<?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> + <use> + <flag name="http">enable support for http protocol.</flag> + <flag name="icp">enable support for ICP (used to monitor proxies).</flag> + <flag name="priority">enable socket priority support.</flag> + <flag name="smtp">enable support for SMTP protocol.</flag> + <flag name="tos">enable support for TOS (TYpe Of Service).</flag> + </use> + <upstream> + <remote-id type="sourceforge">echoping</remote-id> + </upstream> +</pkgmetadata> |