summaryrefslogtreecommitdiffstats
path: root/main/halberd/APKBUILD
blob: 4e4bb958c6ccd21c3888d94722c05f0877acb945 (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
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=halberd
pkgver=0.2.4
pkgrel=0
pkgdesc="Tool to discover HTTP load balancers"
url="http://halberd.superadditive.com"
arch="noarch"
license="GPL2+"
depends="python"
depends_dev=""
makedepends="python-dev"
install=""
subpackages="$pkgname-doc"
source="http://$pkgname.superadditive.com/dist/$pkgname-$pkgver.tar.gz
		$pkgname-sslwrap.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py bdist_dumb --keep-temp --bdist-dir "$pkgdir" || return 1
}

doc() {
	# The man page is not picked-up automatically
	mkdir -p "$subpkgdir"/usr/share/man || return 1
	mv "$_builddir"/man/man* "$subpkgdir"/usr/share/man/ || return 1
}

md5sums="d60d0fba8f379ea72c623ad1dd6052c3  halberd-0.2.4.tar.gz
a46227da33465e246017c8ec4650d76f  halberd-sslwrap.patch"
sha256sums="5746484757b65191ae5062e9dda972eed7e876620ee348929b1b9490077d8f28  halberd-0.2.4.tar.gz
6541afcd3d5bd1f7eb37683f81242986ea8e1db73f5a7dc732bfe89373fa3249  halberd-sslwrap.patch"
sha512sums="80563f9a903a034163ede3319e88305bce8d2de9541aa1fc4d42dff6dd55516d000b0e50af6a053e3c894d6f30bb9d0d27461d0b353ff246b281def8ce6dfd80  halberd-0.2.4.tar.gz
8ee49b553301f36fb22c88b07b0c6306d12fabb3074382cdac5b7203a58c21a225330a40b11eba518fbd1377f4a6370285736aeaf6c8807f84e77086c5b1754a  halberd-sslwrap.patch"