Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/echoping/
Date: Wed, 13 Jul 2016 15:46:49
Message-Id: 1468425011.24fd1deb6d47c3230b6ce1aa748c2ddd59d972c5.blueness@gentoo
1 commit: 24fd1deb6d47c3230b6ce1aa748c2ddd59d972c5
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 13 15:49:54 2016 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 13 15:50:11 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=24fd1deb
7
8 net-analyzer/echoping: add libressl support
9
10 Package-Manager: portage-2.2.28
11
12 .../echoping/echoping-6.0.2_p434-r3.ebuild | 60 ++++++++++++++++++++++
13 1 file changed, 60 insertions(+)
14
15 diff --git a/net-analyzer/echoping/echoping-6.0.2_p434-r3.ebuild b/net-analyzer/echoping/echoping-6.0.2_p434-r3.ebuild
16 new file mode 100644
17 index 0000000..cfb0b92
18 --- /dev/null
19 +++ b/net-analyzer/echoping/echoping-6.0.2_p434-r3.ebuild
20 @@ -0,0 +1,60 @@
21 +# Copyright 1999-2016 Gentoo Foundation
22 +# Distributed under the terms of the GNU General Public License v2
23 +# $Id$
24 +
25 +EAPI=5
26 +inherit autotools eutils
27 +
28 +DESCRIPTION="Small program to test performances of remote servers"
29 +HOMEPAGE="http://echoping.sourceforge.net/"
30 +SRC_URI="https://dev.gentoo.org/~jer/${P}.tar.gz"
31 +LICENSE="GPL-2"
32 +
33 +SLOT="0"
34 +KEYWORDS="~amd64 ~hppa ~x86"
35 +IUSE="libressl gnutls http icp idn priority smtp ssl tos postgres ldap"
36 +RESTRICT="test"
37 +
38 +RDEPEND="idn? ( net-dns/libidn )
39 + postgres? ( dev-db/postgresql:* )
40 + ldap? ( net-nds/openldap )
41 + ssl? (
42 + gnutls? ( >=net-libs/gnutls-3.3:= )
43 + !gnutls? (
44 + !libressl? ( dev-libs/openssl:0= )
45 + libressl? ( dev-libs/libressl:0= )
46 + )
47 + )"
48 +DEPEND="${RDEPEND}
49 + >=sys-devel/libtool-2"
50 +
51 +REQUIRED_USE="gnutls? ( ssl )"
52 +
53 +DOCS=( README AUTHORS ChangeLog DETAILS NEWS TODO )
54 +
55 +src_prepare() {
56 + epatch "${FILESDIR}"/${PN}-6.0.2_p434-fix_implicit_declarations.patch
57 + epatch "${FILESDIR}"/${PN}-6.0.2_p434-gnutls_certificate_type_set_priority.patch
58 + epatch "${FILESDIR}"/${PN}-6.0.2_p434-gnutls_session.patch
59 +
60 + eautoreconf
61 +}
62 +
63 +src_configure() {
64 + econf \
65 + $(use_enable http) \
66 + $(use_enable icp) \
67 + $(use_enable priority) \
68 + $(use_enable smtp) \
69 + $(use_enable tos) \
70 + $(use_with idn libidn) \
71 + $(usex gnutls $(use_with gnutls) $(use_with ssl)) \
72 + --config-cache \
73 + --disable-static \
74 + --disable-ttcp
75 +}
76 +
77 +src_install() {
78 + default
79 + prune_libtool_files
80 +}