summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikraman Choudhury <vikraman@gentoo.org>2014-10-02 19:10:09 +0000
committerVikraman Choudhury <vikraman@gentoo.org>2014-10-02 19:10:09 +0000
commit604c6433f53337cd3419d96773d454f93a662c4f (patch)
tree0eba0b2891cd1fe69d69f5dec6adf5a054073b17
parentRemove old (diff)
downloadhistorical-604c6433f53337cd3419d96773d454f93a662c4f.tar.gz
historical-604c6433f53337cd3419d96773d454f93a662c4f.tar.bz2
historical-604c6433f53337cd3419d96773d454f93a662c4f.zip
New ebuild for wrk, a modern HTTP benchmarking tool
Package-Manager: portage-2.2.12/cvs/Linux i686 Manifest-Sign-Key: 0xB0A72FD2
-rw-r--r--app-benchmarks/wrk/ChangeLog9
-rw-r--r--app-benchmarks/wrk/Manifest17
-rw-r--r--app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch54
-rw-r--r--app-benchmarks/wrk/metadata.xml15
-rw-r--r--app-benchmarks/wrk/wrk-3.1.1.ebuild36
5 files changed, 131 insertions, 0 deletions
diff --git a/app-benchmarks/wrk/ChangeLog b/app-benchmarks/wrk/ChangeLog
new file mode 100644
index 000000000000..faca8703e8c4
--- /dev/null
+++ b/app-benchmarks/wrk/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for app-benchmarks/wrk
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/wrk/ChangeLog,v 1.1 2014/10/02 19:09:59 vikraman Exp $
+
+*wrk-3.1.1 (02 Oct 2014)
+
+ 02 Oct 2014; Vikraman Choudhury (vikraman) <vikraman@gentoo.org>
+ +files/wrk-3.1.1-makefile.patch, +metadata.xml, +wrk-3.1.1.ebuild:
+ New ebuild for wrk, a modern HTTP benchmarking tool
diff --git a/app-benchmarks/wrk/Manifest b/app-benchmarks/wrk/Manifest
new file mode 100644
index 000000000000..12abf884033f
--- /dev/null
+++ b/app-benchmarks/wrk/Manifest
@@ -0,0 +1,17 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX wrk-3.1.1-makefile.patch 1338 SHA256 deb6a89add9bc93c159b2cbc40d5f8b89d9d1147cb7463a01932689e63616f8a SHA512 7f2e3e1b9ebac680f5c5df73114181960c41030d66c63ca7ec625caa3e748e566e0068766b2c350923d11d0f0de63a1bfbb4d5fbfa7447f303b190ef9adcd643 WHIRLPOOL affaf23958f5925060e41905fa272cdc7f403012ab44b423a2b21d9127a1973f9b02b920fa0abd2a743ed987fbcce8e95fecfd31f4c73b1e9b55be9c505a3983
+DIST wrk-3.1.1.tar.gz 901059 SHA256 3a44bd7c9da2edb80d41105c99c113250330b54bb9c3f80008eb6b088e5842ba SHA512 ed7bfa0549ce10046e5f054b75befc458f50dd8fa59d5c23194ce63ce18a3c0dd2e966a1397bbd2c1dea7b9ad2f4a8a6b3a5a9676c5202d53fa9406da75b7e19 WHIRLPOOL 3bcea7bfd5f80bd382d5fc83898b7afa3a2da4b6ed4349ad183dd80368c6d0c5127516ccc5cd569344b61de7357d12df8d7272709ba3ee976107989ffe41ff6f
+EBUILD wrk-3.1.1.ebuild 798 SHA256 de44de52f7d9085027e84053e5bc5b80f6c47976625ec4e87181d9e167250e72 SHA512 82688baccdec6887c66533eedaabe28ffa437bc3f3f991e6dcd653c9b2a3e044f23cafba4c06a2f3be7f2ffdf92de687723ac62ca8c9cccbc1ee569b88f2efff WHIRLPOOL 3b46fcab80c38c8cf7937d5feed4019e7b3ad7b39b5d58bd831e8a40c4aae3e525b5258510cbc256867fad84aa3363e706c5a71b1bd9e4d328387d7b5b7bc74a
+MISC ChangeLog 427 SHA256 39df250c7336ea5ffb2ba696358f8049d9bcfe82ad65a38d30428197c6bd99cc SHA512 a9ac7d17c7058722cf5da60b895cdf4b78c56ff701bea5f4fcf8853b292abb744781e6c7b296c4a29c24fe6cf8d94062cdb90179ff4f6692fe9e4f96d3832142 WHIRLPOOL a4bf95a792c763c9d2c43b49bafd2a11745160a694f1cbbcd1c338e2c95c39d0743277ad36a51b0d8a8dbe264ada47b73e943704fae80f2b6db59014216c494b
+MISC metadata.xml 633 SHA256 2ed498dd7f177df330c074cc2c111ad70d71df96a53540ebca2c3eaa1b37acb0 SHA512 d927b3593c702df93f4122f02ba84c883e079d8402054f3992adc9395935fd0f5e8fb82495ab9c81012fbeb13449ff2ee9c41bc38377ba5a29e9f0ae346ff609 WHIRLPOOL 608de551836dc2bf5725cf4167a2f2267bd40d11df0b7b4d605a3102a25079221665a9dc9a1f9b18b8f14d78042fc2e30f25ea87499ed25b8b5cb04032b8bbc4
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0
+
+iL4EAREIAGYFAlQtow5fFIAAAAAALgAoaXNzdWVyLWZwckBub3RhdGlvbnMub3Bl
+bnBncC5maWZ0aGhvcnNlbWFuLm5ldENFNTJBQkRBNTQzRTQ5NTdCMDQ5ODMwNzQ3
+REQ1NDg0QjBBNzJGRDIACgkQR91UhLCnL9KZIgD9GHiQXlAM+UYlQrBepx9T3Oz7
+WCmRkqULcMGHCIdWy20BAL0OW538LEzaJRcR1qfy7hCbEF0Hx+gwqkXxAXCRiujN
+=Tovy
+-----END PGP SIGNATURE-----
diff --git a/app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch b/app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch
new file mode 100644
index 000000000000..595c69ac1572
--- /dev/null
+++ b/app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch
@@ -0,0 +1,54 @@
+diff --git i/Makefile w/Makefile
+index d956c6b..48be677 100644
+--- i/Makefile
++++ w/Makefile
+@@ -1,4 +1,4 @@
+-CFLAGS := -std=c99 -Wall -O2 -D_REENTRANT
++CFLAGS += -std=c99 -Wall -D_REENTRANT
+ LIBS := -lpthread -lm -lcrypto -lssl
+
+ TARGET := $(shell uname -s | tr '[A-Z]' '[a-z]' 2>/dev/null || echo unknown)
+@@ -23,38 +23,31 @@ BIN := wrk
+ ODIR := obj
+ OBJ := $(patsubst %.c,$(ODIR)/%.o,$(SRC)) $(ODIR)/bytecode.o
+
+-LDIR = deps/luajit/src
+-LIBS := -lluajit $(LIBS)
+-CFLAGS += -I$(LDIR)
+-LDFLAGS += -L$(LDIR)
++LIBS := $(shell pkg-config --libs luajit) $(LIBS)
++CFLAGS += $(shell pkg-config --cflags luajit)
+
+ all: $(BIN)
+
+ clean:
+ $(RM) $(BIN) obj/*
+- @$(MAKE) -C deps/luajit clean
+
+ $(BIN): $(OBJ)
+ @echo LINK $(BIN)
+- @$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
++ @$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+
+-$(OBJ): config.h Makefile $(LDIR)/libluajit.a | $(ODIR)
++$(OBJ): config.h Makefile | $(ODIR)
+
+ $(ODIR):
+ @mkdir -p $@
+
+ $(ODIR)/bytecode.o: src/wrk.lua
+ @echo LUAJIT $<
+- @$(SHELL) -c 'cd $(LDIR) && ./luajit -b $(CURDIR)/$< $(CURDIR)/$@'
++ @$(SHELL) -c 'luajit -b $(CURDIR)/$< $(CURDIR)/$@'
+
+ $(ODIR)/%.o : %.c
+ @echo CC $<
+ @$(CC) $(CFLAGS) -c -o $@ $<
+
+-$(LDIR)/libluajit.a:
+- @echo Building LuaJIT...
+- @$(MAKE) -C $(LDIR) BUILDMODE=static
+-
+ .PHONY: all clean
+ .SUFFIXES:
+ .SUFFIXES: .c .o .lua
diff --git a/app-benchmarks/wrk/metadata.xml b/app-benchmarks/wrk/metadata.xml
new file mode 100644
index 000000000000..b73d00b06fa4
--- /dev/null
+++ b/app-benchmarks/wrk/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>vikraman@gentoo.org</email>
+ <name>Vikraman Choudhury (vikraman)</name>
+ </maintainer>
+ <longdescription lang="en">
+ wrk is a modern HTTP benchmarking tool capable of generating
+ significant load when run on a single multi-core CPU. It combines a
+ multithreaded design with scalable event notification systems such as
+ epoll and kqueue. An optional LuaJIT script can perform HTTP request
+ generation, response processing, and custom reporting.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-benchmarks/wrk/wrk-3.1.1.ebuild b/app-benchmarks/wrk/wrk-3.1.1.ebuild
new file mode 100644
index 000000000000..d90dc8669bd8
--- /dev/null
+++ b/app-benchmarks/wrk/wrk-3.1.1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-benchmarks/wrk/wrk-3.1.1.ebuild,v 1.1 2014/10/02 19:09:59 vikraman Exp $
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A modern HTTP benchmarking tool"
+HOMEPAGE="https://github.com/wg/wrk"
+SRC_URI="https://github.com/wg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+DEPEND="dev-libs/openssl >=dev-lang/luajit-2.0.2"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ rm -rf deps/luajit || die "failed to remove bundled luajit"
+ epatch "${FILESDIR}/${P}-makefile.patch"
+}
+
+src_compile() {
+ tc-export CC
+ emake || die
+}
+
+src_install() {
+ dobin wrk
+ dodoc README NOTICE
+ insinto /usr/share/${PN}
+ doins -r scripts
+}