summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2016-07-13 13:28:59 -0400
committerAnthony G. Basile <blueness@gentoo.org>2016-07-13 13:29:17 -0400
commit3d5bad07e9483bdceda834e3e10088d49a6a553c (patch)
tree71ad36fe4c879db22b13fdefd0c62ce6d2b6d5f9 /net-analyzer/httping
parentnet-analyzer/flow-tools: add libressl support (diff)
downloadgentoo-3d5bad07e9483bdceda834e3e10088d49a6a553c.tar.gz
gentoo-3d5bad07e9483bdceda834e3e10088d49a6a553c.tar.bz2
gentoo-3d5bad07e9483bdceda834e3e10088d49a6a553c.zip
net-analyzer/httping: add libressl support
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-analyzer/httping')
-rw-r--r--net-analyzer/httping/httping-2.4-r1.ebuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/net-analyzer/httping/httping-2.4-r1.ebuild b/net-analyzer/httping/httping-2.4-r1.ebuild
new file mode 100644
index 000000000000..e787b8d61f57
--- /dev/null
+++ b/net-analyzer/httping/httping-2.4-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils toolchain-funcs
+
+DESCRIPTION="http protocol ping-like program"
+HOMEPAGE="http://www.vanheusden.com/httping/"
+SRC_URI="http://www.vanheusden.com/${PN}/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="debug fftw libressl linguas_nl ncurses ssl tfo"
+
+RDEPEND="
+ fftw? ( sci-libs/fftw:3.0 )
+ ncurses? ( sys-libs/ncurses:0= )
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ ncurses? ( virtual/pkgconfig )
+"
+
+# This would bring in test? ( dev-util/cppcheck ) but unlike
+# upstream we should only care about compile/run time testing
+RESTRICT="test"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-2.2.1-flags.patch
+
+ # doman does not get PN-LANG.CAT so we move things around and then point at
+ # it later
+ if use linguas_nl; then
+ mkdir nl || die
+ mv httping-nl.1 nl/httping.1 || die
+ fi
+}
+
+src_configure() {
+ # not an autotools script
+ echo > makefile.inc || die
+
+ use ncurses && LDFLAGS+=" $( $( tc-getPKG_CONFIG ) --libs ncurses )"
+}
+
+src_compile() {
+ emake \
+ CC="$(tc-getCC)" \
+ FW=$(usex fftw) \
+ DEBUG=$(usex debug) \
+ NC=$(usex ncurses) \
+ SSL=$(usex ssl) \
+ TFO=$(usex tfo)
+}
+
+src_install() {
+ dobin httping
+ doman httping.1
+
+ use linguas_nl && doman -i18n=nl nl/httping.1
+}