X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from apollo.thewebhostserver.com (apollomail.thewebhostserver.com [46.23.65.248]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id CB17EDC00B8 for ; Thu, 18 Sep 2014 04:16:32 +0000 (UTC) Received: from [81.4.121.188] (port=64864 helo=localhost.localdomain) by apollo.thewebhostserver.com with esmtpsa (UNKNOWN:AES128-SHA256:128) (Exim 4.82) (envelope-from ) id 1XUT8X-001NZI-M3; Thu, 18 Sep 2014 05:16:26 +0100 From: Stuart Cardall To: alpine-devel@lists.alpinelinux.org Cc: Stuart Cardall Subject: [alpine-devel] [PATCH] testing/wrk: new aport Date: Thu, 18 Sep 2014 04:15:40 +0000 Message-Id: <1411013740-11498-1-git-send-email-developer@it-offshore.co.uk> X-Mailer: git-send-email 2.1.0 X-OutGoing-Spam-Status: No, score=-2.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - apollo.thewebhostserver.com X-AntiAbuse: Original Domain - lists.alpinelinux.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - it-offshore.co.uk X-Get-Message-Sender-Via: apollo.thewebhostserver.com: authenticated_id: developer@it-offshore.co.uk X-Source: X-Source-Args: X-Source-Dir: X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: Modern HTTP benchmarking tool https://github.com/wg/wrk wrk contains code from a number of open source projects including the 'ae' event loop from redis, the nginx/joyent/node.js 'http-parser', Mike Pall's LuaJIT, and the Tiny Mersenne Twister PRNG. --- testing/wrk/APKBUILD | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 testing/wrk/APKBUILD diff --git a/testing/wrk/APKBUILD b/testing/wrk/APKBUILD new file mode 100644 index 0000000..99fac6b --- /dev/null +++ b/testing/wrk/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: Stuart Cardall +# Maintainer: Stuart Cardall +pkgname=wrk +pkgver=3.1.1 +pkgrel=0 +pkgdesc="wrk is a modern HTTP benchmarking tool" +url="https://github.com/wg/wrk" +arch="all" +license="Apache v2" +makedepends="$depends_dev openssl-dev" +subpackages="$pkgname-doc" +source="$pkgname-$pkgver.tar.gz::https://github.com/wg/wrk/archive/$pkgver.tar.gz" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + make || return 1 +} + +package() { + cd "$_builddir" + mkdir -p $pkgdir/usr/bin + mkdir -p $pkgdir/usr/share/doc/$pkgname/scripts + install -m755 -D $pkgname "$pkgdir"/usr/bin/$pkgname + install -m644 -D README "$pkgdir"/usr/share/doc/$pkgname/ + install -m644 -D LICENSE "$pkgdir"/usr/share/doc/$pkgname/ + install -m644 -D NOTICE "$pkgdir"/usr/share/doc/$pkgname/ + install -m755 -D scripts/* "$pkgdir"/usr/share/doc/$pkgname/scripts/ +} + +md5sums="bf25e174845bad36fefd66f9be71889e wrk-3.1.1.tar.gz" +sha256sums="3a44bd7c9da2edb80d41105c99c113250330b54bb9c3f80008eb6b088e5842ba wrk-3.1.1.tar.gz" +sha512sums="ed7bfa0549ce10046e5f054b75befc458f50dd8fa59d5c23194ce63ce18a3c0dd2e966a1397bbd2c1dea7b9ad2f4a8a6b3a5a9676c5202d53fa9406da75b7e19 wrk-3.1.1.tar.gz" -- 2.1.0 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---