aboutsummaryrefslogtreecommitdiffstats
path: root/testing/siege/APKBUILD
blob: f4774825b33ee2e55dccdc1aae430438efb354d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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 sed"
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"