diff options
Diffstat (limited to 'app-benchmarks')
-rw-r--r-- | app-benchmarks/siege/Manifest | 1 | ||||
-rw-r--r-- | app-benchmarks/siege/siege-4.0.9.ebuild | 52 |
2 files changed, 53 insertions, 0 deletions
diff --git a/app-benchmarks/siege/Manifest b/app-benchmarks/siege/Manifest index d7dd7c3bb47b..b5c68fef7adc 100644 --- a/app-benchmarks/siege/Manifest +++ b/app-benchmarks/siege/Manifest @@ -1,2 +1,3 @@ DIST siege-4.0.7.tar.gz 525654 BLAKE2B b97c7309d33387d15327dc39ae115bebdfe64fa0debea2da87590ce801d2f590622392ea1ecc6be9f2973ff9b37dfc0f5f0fef232a4593410c4503db6c78771f SHA512 2dcccc50a2d8cd0d6c18efe776b871b999f6918c078898845fec34bb2b1b8ec03e0b95792dd963aaefb054e4f4e27f604ed95c0de5f8a34cbf738f66a2307abc DIST siege-4.0.8.tar.gz 525619 BLAKE2B 4c0b570810c4c1f3f13374aa1f33dc1624f989096280fd672a2c3deee7827099d790215e2583670fa58862df35b4db8998cf57c3c864354e8bd8aa8093c66724 SHA512 34239d761c1fff2a6048b59a98b64e87da065257ca4d62eb899f600573d920f5503bbdad8f5c5d31b4052c64857394c7899a9bda5384c00be8652ce4c98845ca +DIST siege-4.0.9.tar.gz 525804 BLAKE2B d857df05f40a0ac26a8abdd54e7de374125dde4c114bd1ac3ddd9e9856a30d4fdfefd325980717e59b5876df99a87f971c5b3f91d6478f9638f1860557615169 SHA512 6208b7924162be4dd7ea8cdc297930d28e8a1cb125cf26e8707c2cb67efad741cd090c12081ea80837314d4b5703da152a97b0e8fbf4c64ff64c6714eb4b5fc7 diff --git a/app-benchmarks/siege/siege-4.0.9.ebuild b/app-benchmarks/siege/siege-4.0.9.ebuild new file mode 100644 index 000000000000..222a5bf1384f --- /dev/null +++ b/app-benchmarks/siege/siege-4.0.9.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools bash-completion-r1 + +DESCRIPTION="A HTTP regression testing and benchmarking utility" +HOMEPAGE="https://www.joedog.org/siege-home https://github.com/JoeDog/siege" +SRC_URI="http://download.joedog.org/${PN}/${P}.tar.gz" + +LICENSE="GPL-3" +KEYWORDS="~amd64 ~arm ~hppa ~mips ~ppc ~x86 ~x64-macos" +SLOT="0" + +IUSE="ssl" + +RDEPEND="ssl? ( dev-libs/openssl:0= )" +DEPEND="${RDEPEND}" + +src_prepare() { + default + # bundled macros break recent libtool + # remove /usr/lib from LDFLAGS, bug #732886 + sed -i \ + -e '/AC_PROG_SHELL/d' \ + -e 's/SSL_LDFLAGS="-L.*lib"/SSL_LDFLAGS=""/g' \ + -e 's/Z_LDFLAGS="-L.*lib"/Z_LDFLAGS=""/g' \ + configure.ac || die + rm *.m4 || die "failed to remove bundled macros" + eautoreconf +} + +src_configure() { + local myconf=( + $(use_with ssl ssl "${EPREFIX}/usr") + ) + econf "${myconf[@]}" +} + +src_install() { + emake DESTDIR="${ED}" install + + dodoc AUTHORS ChangeLog INSTALL README* doc/siegerc doc/urls.txt + + newbashcomp "${FILESDIR}"/${PN}.bash-completion ${PN} +} + +pkg_postinst() { + elog "An example ~/.siegerc file has been installed in" + elog "${EPREFIX}/usr/share/doc/${PF}/" +} |