diff options
Diffstat (limited to 'net-analyzer/httping')
-rw-r--r-- | net-analyzer/httping/Manifest | 1 | ||||
-rw-r--r-- | net-analyzer/httping/httping-9999999.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/net-analyzer/httping/Manifest b/net-analyzer/httping/Manifest index b2990f5d6652..200332127b8d 100644 --- a/net-analyzer/httping/Manifest +++ b/net-analyzer/httping/Manifest @@ -1,4 +1,5 @@ AUX httping-2.2.1-flags.patch 161 BLAKE2B be0f5f8df2fd89f46f15b3ef6c0c06e9f04573a822a6ce6e559471e3db586d69de0e440e3b9c4f401f30ab741d9eb85077ead8d3f9d4c026e7398609602f7c2e SHA512 037f53e3f23247ddc5f33ef846bafe32e3f818242b92375d7145fa244c9a8aeeac2d3b1138cbffa792a9564a5e4e96274ff457a13be0c4b228033d47b21748d6 DIST httping-2.5.tgz 71400 BLAKE2B da261827a4e2276816dbb2f9a6bac989f4ec0e7fc4b7686d51e57f8d4078ec3f94acef032b7042774e9cff57c8158696026e45d44ae1fbb00e52175c9c08b9a5 SHA512 397ce2eac91c9aede0eb19823bfca4e7f98c263937f5954c8a48d5248a251d2030e31f18decb7f7f8b0118ec0e16ec0a84ea4c943ccde7056b80de162954c355 EBUILD httping-2.5.ebuild 1420 BLAKE2B d9d7ecc5c2ad171cb7dfac0bd8cc0d2ab01e398b84b02a89ef6e3d10e0435b5c0ef8cf105f8b38b74872895b3015100e2dfdcc7dcda4c3fda37339eac742c215 SHA512 4cc4438bd25d63cbeb1fbd0b8eeb42eefb8554af1d00959850a353bcede18b2504832673ad2a1caaeb3487b5aa532003c30fe83cc80645fa64231032ccf5aadd +EBUILD httping-9999999.ebuild 1382 BLAKE2B 83dd9fea5843d43c1fe09cbbbd16e4056e6328bac8bcd5f78a9002b52ffbe0303cf529156532a2fa5548601ea44558abbe36c1c8c0b40b1fc6aa09318131b5c9 SHA512 43b214c43ac7a7d1aab26afb168ebc980930f721599d793638f8e8a53ff806220cc48b67003a64ada4f59ba9cfc0162458db1d22182a0d927e51fcf78f2d0f70 MISC metadata.xml 344 BLAKE2B 7a460cc6d5df200cd57028b8e773452df890b91fee885c1337c7d9470acb38611f70bff7b0ff37f2854d304b1a8c1da5cbf219971dac72cb5ea536ba60d906f5 SHA512 3a2c114ecfba2e62b28c1a2ddb96bf57d73dda9c9dc50070c07beabbee711b37a560a71230b5a3ec8726b4d394674dcbb5943b33a62daed0c267e774b5ccbce7 diff --git a/net-analyzer/httping/httping-9999999.ebuild b/net-analyzer/httping/httping-9999999.ebuild new file mode 100644 index 000000000000..32a92c0aead0 --- /dev/null +++ b/net-analyzer/httping/httping-9999999.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit git-r3 toolchain-funcs + +DESCRIPTION="like ping but for HTTP requests" +HOMEPAGE="https://www.vanheusden.com/httping/" +EGIT_REPO_URI="https://github.com/flok99/httping" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="debug fftw libressl l10n_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" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.1-flags.patch +) + +src_prepare() { + default + + # doman does not get PN-LANG.CAT so we move things around and then point at + # it later + if use l10n_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 l10n_nl && doman -i18n=nl nl/httping.1 +} |