diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-benchmarks/wrk |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-benchmarks/wrk')
-rw-r--r-- | app-benchmarks/wrk/Manifest | 6 | ||||
-rw-r--r-- | app-benchmarks/wrk/files/wrk-3.1.1-makefile.patch | 54 | ||||
-rw-r--r-- | app-benchmarks/wrk/metadata.xml | 18 | ||||
-rw-r--r-- | app-benchmarks/wrk/wrk-3.1.2.ebuild | 37 |
4 files changed, 115 insertions, 0 deletions
diff --git a/app-benchmarks/wrk/Manifest b/app-benchmarks/wrk/Manifest new file mode 100644 index 000000000000..200a5141153c --- /dev/null +++ b/app-benchmarks/wrk/Manifest @@ -0,0 +1,6 @@ +AUX wrk-3.1.1-makefile.patch 1338 SHA256 deb6a89add9bc93c159b2cbc40d5f8b89d9d1147cb7463a01932689e63616f8a SHA512 7f2e3e1b9ebac680f5c5df73114181960c41030d66c63ca7ec625caa3e748e566e0068766b2c350923d11d0f0de63a1bfbb4d5fbfa7447f303b190ef9adcd643 WHIRLPOOL affaf23958f5925060e41905fa272cdc7f403012ab44b423a2b21d9127a1973f9b02b920fa0abd2a743ed987fbcce8e95fecfd31f4c73b1e9b55be9c505a3983 +DIST wrk-3.1.2.tar.gz 902868 SHA256 da88a25f0eeb9e1fd6a9dcf4a96859e9e758f9446f0787cf7c95e4ccde14eefc SHA512 399f33c2c008c21ac8fae1b561fe16ebcca324b5171340ffa706e84c256bf13a9983b5c18d258be6f87cb9fe8e38a434f9bfa7059395a01cb783f77faf952b15 WHIRLPOOL 3460aadf5f3e54cf64d0779b45efba291200f0344a55b3a8c35a603d9fbb917c006ff2035fb91bfdce7652b7e4231fc43c558115cab4ff73b91087163655fe85 +EBUILD wrk-3.1.2.ebuild 749 SHA256 a4a78a895cb2aa105a735cd2eb62aeacd52c81fbd5e30d371edb37ec40f67729 SHA512 3621a749c2b9c4b3768332f2eb3c95a3979b6d9aed8cdbb1ca3267fcdeec8cb288bcbb2f31c8eb7070d6b86ae9c0e647ee087bc959831bc26047055a2c8e2432 WHIRLPOOL d4561304b66b18c0b0134901578c9768ee518c3fc189a950e81278f9d80b870f0b160b161da79c764b6e2ba000b5c67583954ff88a35e13a93b57c53143a1a22 +MISC ChangeLog 2656 SHA256 0e2fb42ad64b037dbbc84e5193ecc74900239f7a12f7a1e5ba5d849d609bbbea SHA512 8d37fd1c2e26557540b96c88e4b5f8c7df5ea34880f1cbb5f055720747a9b8a0f97455997b8b26b805ea77f49ef0147e14ddd8ab812d1bb886b606522474569f WHIRLPOOL ec83cdf128bb20e55154837b83c512ed9a9aa9d2eaa77a1fac3a721a5c0ae8d0d45931a0278850be8d26e7bac5760788cc8a7cecbb6b6355706bd9bc6dd6f9f7 +MISC ChangeLog-2015 720 SHA256 6e30aa92f7f5af730ac3a6019f71047f7834f030500d2b661ce48d85cd5a37ae SHA512 f5fba76f0a2b5ce72a9764228b75f1f0347fb8bad32b6227b3e68135b0c2b10627910e58c1c2798f9eee971f170002cc47679be630cb08a12cf11613c3608d8f WHIRLPOOL 642155819a22b889016b27d78b4540ea7358828d9a17ba101409e5350bfe130090d22e18dbf0ad6f6d3a3f42763d80912714ca9e21a8ffdefb2cc1b071ae9b73 +MISC metadata.xml 729 SHA256 6dcf73bb2b35fcbe91dffeada056c7b7ee3a1f15b7114c42bd15d14a4fe8a900 SHA512 2c6513f32e7f7b67aed0021d6cae23f59aaf8f57ab88cd57fbe346422997617813f8a92208535397cd391935028174fce5cd88364eeff038481fd0362513d89f WHIRLPOOL 18d586d38d9808dddf9b01787f34db7ff8f753125df7b84682e013039ef29c861c3417dae90646f4589eda7834fc8d0c2f9eb3446c93be11736ef13b3bc38d78 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..732ae8ed75af --- /dev/null +++ b/app-benchmarks/wrk/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <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> + <upstream> + <remote-id type="github">wg/wrk</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-benchmarks/wrk/wrk-3.1.2.ebuild b/app-benchmarks/wrk/wrk-3.1.2.ebuild new file mode 100644 index 000000000000..724ae80c1f05 --- /dev/null +++ b/app-benchmarks/wrk/wrk-3.1.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="libressl" + +DEPEND=">=dev-lang/luajit-2.0.2 + !libressl? ( dev-libs/openssl:0= ) + libressl? ( dev-libs/libressl:0= )" +RDEPEND="${DEPEND}" + +src_prepare() { + rm -rf deps/luajit || die "failed to remove bundled luajit" + epatch "${FILESDIR}/${PN}-3.1.1-makefile.patch" +} + +src_compile() { + tc-export CC + emake +} + +src_install() { + dobin ${PN} + dodoc README NOTICE + insinto /usr/share/${PN} + doins -r scripts +} |