~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[alpine-aports] [PATCH] testing/httperf: new aport

Corentin Henry <corentinhenry@gmail.com>
Details
Message ID
<1452439841-2210-1-git-send-email-corentinhenry@gmail.com>
Sender timestamp
1452439841
DKIM signature
missing
Download raw message
Patch: +42 -0
http://httperf.googlecode.com/files/httperf-0.9.0.tar.gz
An HTTP load generator
---
 testing/httperf/APKBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 testing/httperf/APKBUILD

diff --git a/testing/httperf/APKBUILD b/testing/httperf/APKBUILD
new file mode 100644
index 0000000..4b494bb
--- /dev/null
+++ b/testing/httperf/APKBUILD
@@ -0,0 +1,42 @@
# Contributor:
# Maintainer: Corentin Henry <corentinhenry@gmail.com>
pkgname=httperf
pkgver=0.9.0
pkgrel=0
pkgdesc="A tool for measuring web server performance."
url="https://github.com/httperf/httperf"
arch="x86_64"
license="GPL2"
depends="openssl"
depends_dev=""
makedepends="openssl-dev"
install=""
subpackages="$pkgname-doc"
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz"

_builddir=$srcdir/$pkgname-$pkgver

build() {
    cd "$_builddir"
    cd $pkgname-$pkgver
    export CPPFLAGS=""
    export LDFLAGS=""
    ./configure --prefix=/usr
    make
}

package() {
    cd $_builddir/src
    make DESTDIR=$pkgdir install
}

doc() {
    default_doc
    cd $_builddir/man
    gzip -c httperf.1 > httperf.1.gz
    install -Dm644 httperf.1.gz "$subpkgdir"/usr/share/doc/$pkgname/httperf.1.gz
}

md5sums="2968c36b9ecf3d98fc1f2c1c9c0d9341  httperf-0.9.0.tar.gz"
sha256sums="e1a0bf56bcb746c04674c47b6cfa531fad24e45e9c6de02aea0d1c5f85a2bf1c  httperf-0.9.0.tar.gz"
sha512sums="58ea6a3b8a82181a89e5df22fdf18d5be8c7b533c404108702cc03fc727fb1599a43e620d83d41630f8a951d80e48ed99d0c3dd8469ee1fc7626449b777971e1  httperf-0.9.0.tar.gz"
-- 
2.7.0



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Timo Teras <timo.teras@iki.fi>
Details
Message ID
<20160123233753.6f8dbdcd@vostro>
In-Reply-To
<1452439841-2210-1-git-send-email-corentinhenry@gmail.com> (view parent)
Sender timestamp
1453585073
DKIM signature
missing
Download raw message
On Sun, 10 Jan 2016 15:30:41 +0000
Corentin Henry <corentinhenry@gmail.com> wrote:

>  testing/httperf/APKBUILD | 42
> ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42
> insertions(+) create mode 100644 testing/httperf/APKBUILD
> 
> diff --git a/testing/httperf/APKBUILD b/testing/httperf/APKBUILD
> new file mode 100644
> index 0000000..4b494bb
> --- /dev/null
> +++ b/testing/httperf/APKBUILD
> @@ -0,0 +1,42 @@
> +# Contributor:
> +# Maintainer: Corentin Henry <corentinhenry@gmail.com>
> +pkgname=httperf
> +pkgver=0.9.0
> +pkgrel=0
> +pkgdesc="A tool for measuring web server performance."
> +url="https://github.com/httperf/httperf"
> +arch="x86_64"
> +license="GPL2"
> +depends="openssl"

The build system gets ELF binary run-time dependencies automatically.
This is not needed. And is actually harmful, this pulls more than the
required libraries (and technically does not guarantee that the
libraries needed are installed). I removed this for you.

> +depends_dev=""
> +makedepends="openssl-dev"
> +install=""
> +subpackages="$pkgname-doc"
> +source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.gz"
> +
> +_builddir=$srcdir/$pkgname-$pkgver
> +
> +build() {
> +    cd "$_builddir"
> +    cd $pkgname-$pkgver
> +    export CPPFLAGS=""
> +    export LDFLAGS=""
> +    ./configure --prefix=/usr
> +    make
> +}
> +
> +package() {
> +    cd $_builddir/src
> +    make DESTDIR=$pkgdir install
> +}
> +
> +doc() {
> +    default_doc
> +    cd $_builddir/man
> +    gzip -c httperf.1 > httperf.1.gz
> +    install -Dm644 httperf.1.gz
> "$subpkgdir"/usr/share/doc/$pkgname/httperf.1.gz +}
> +

Looks standard autotools package to me. So standard autotools stuff
works here. I fixed all this to the standard.

And changed indentation to tabs.

Applied with changes.

Thanks,
Timo



---
Unsubscribe:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---
Reply to thread Export thread (mbox)