mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-11 00:07:51 +03:00
I meant to include this in 5507c2df5d98f518edd20ca590e7a33e5c75f0ec. Signed-off-by: Sam James <sam@gentoo.org>
44 lines
951 B
Bash
44 lines
951 B
Bash
# Copyright 1999-2025 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
HTTPERF_COMMIT="de8cd6ad8a79779a0cb74a4aa2175afa9e24df57"
|
|
inherit autotools
|
|
|
|
DESCRIPTION="Tool from HP for measuring web server performance"
|
|
HOMEPAGE="https://github.com/httperf/httperf"
|
|
SRC_URI="https://github.com/${PN}/${PN}/archive/${HTTPERF_COMMIT}.tar.gz -> ${P}.tar.gz"
|
|
S="${WORKDIR}/${PN}-${HTTPERF_COMMIT}"
|
|
|
|
LICENSE="GPL-2+-with-openssl-exception"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~mips ~x86 ~amd64-linux ~x64-macos"
|
|
IUSE="debug idleconn"
|
|
|
|
DEPEND="
|
|
dev-libs/openssl:=
|
|
idleconn? ( dev-libs/libevent:= )
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
|
|
PATCHES=(
|
|
"${FILESDIR}"/${PN}-0.9.1_p20201206-c23.patch
|
|
"${FILESDIR}"/${PN}-0.9.1_p20201206-memcpy-overlap.patch
|
|
)
|
|
|
|
src_prepare() {
|
|
default
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
local myeconfargs=(
|
|
--bindir="${EPREFIX}"/usr/bin
|
|
$(use_enable debug)
|
|
$(use_enable idleconn)
|
|
)
|
|
|
|
econf "${myeconfargs[@]}"
|
|
}
|