diff options
Diffstat (limited to 'testing/siege/APKBUILD')
-rw-r--r-- | testing/siege/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/siege/APKBUILD b/testing/siege/APKBUILD new file mode 100644 index 0000000000..58c4b9c1a8 --- /dev/null +++ b/testing/siege/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=siege +pkgver=2.74 +pkgrel=0 +pkgdesc="HTTP regression testing and benchmarking utility" +url="http://www.joedog.org/JoeDog/Siege" +arch="all" +license="GPL2+" +depends="" +depends_dev="" +makedepends="openssl-dev" +install="" +subpackages="$pkgname-doc" +source="http://www.joedog.org/pub/siege/$pkgname-$pkgver.tar.gz + siege-2.72-good.patch" + +_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 + sed -i.orig doc/siegerc.in -e 's/^# logfile = *$/logfile = ${HOME}\/siege.log/' +} + +build() { + cd "$_builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="a23c8670d69f4b78f534095921c90969 siege-2.74.tar.gz +6b1d2956e8cba62cdd44a4faaacbe4cd siege-2.72-good.patch" +sha256sums="cdd686a5695f1c953caab3914c722f7eb81a616102ffb36bb39eb8bcb5ebc802 siege-2.74.tar.gz +15ceaf81547f80d0cbfd947458129e2b7c3c3fe49dbcb37f6444b53f414c91ca siege-2.72-good.patch" +sha512sums="cd551beb79ac69c97b89b7ba4603dfe41190f0a65befbea53c096161e74dff33ea8f41a3d383d75fbec9535fcc229542da91a80c89a50beb7526a0748558835d siege-2.74.tar.gz +a32b459b23e72af06095911905ef58e365a22a9d7c0c7fac13897ce9440484b41c86505da19cbcabb25432aabe60986ffb2b013c75ac22382ce1c8b4a9f28393 siege-2.72-good.patch" |