aboutsummaryrefslogtreecommitdiffstats
path: root/testing/siege/APKBUILD
blob: 88e23c877bc64b31f6b373178abf40158b1027ad (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
52
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=siege
pkgver=3.0.8
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-dbg $pkgname-doc"
source="http://download.joedog.org/siege/siege-$pkgver.tar.gz
	stdint.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="ddd2abc8856c58f2495170fe65c34aa6  siege-3.0.8.tar.gz
c4ee44914937d0395636d2b03f0c6169  stdint.patch"
sha256sums="b8b5e3e722b75ab2c8a1a51ca25fc58ae599cf78d84e096242ee57622803b297  siege-3.0.8.tar.gz
f8948f1aa23d0375f2d393f47d993f5b3026d3abe17516fa21f942443e5a6a9a  stdint.patch"
sha512sums="d4f3b4ff715212bf42df10fea968af95397206f878a7b190fe49cd80b7fcb9abd0bf7f57e34106b956c2de2d151c58fb187329ffff4a748f44db9f156b729b94  siege-3.0.8.tar.gz
2c36dabd634fc700ebcc7aa9ada41a7f8bd6fb87bf57666631b998efc6e6f7b843c0c49e76659d3cd25954b0069838d80618aaa5fef4731bcc26d25a21061328  stdint.patch"