summaryrefslogtreecommitdiffstats
path: root/testing/naxsi-utils/APKBUILD
blob: 2377ddeac80b693aba0da2ab4163914dce118e40 (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
# Contributor: Stuart Cardall <developer@it-offshore.co.uk>
# Maintainer: Stuart Cardall <developer@it-offshore.co.uk>
pkgname=naxsi-utils
_pkgname=naxsi
pkgver=0.53_rc2
_ver=${pkgver/_rc/-}
pkgrel=0
pkgdesc="nginx/naxsi log parser, whitelist and report generator."
url="http://www.nginx.org | https://github.com/nbs-system/naxsi"
arch="noarch"
license="GPL v2"
depends="python"
depends_dev=""
makedepends="python-dev"
subpackages="$pkgname-doc"
source="$_pkgname-$_ver.tar.gz::https://github.com/nbs-system/naxsi/archive/${_ver}.tar.gz
	nx_util.patch
	"

_builddir="$srcdir"/$_pkgname-$_ver/nx_util
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
}

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

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}

md5sums="348b50914a1eedaed09a2509621adf43  naxsi-0.53-2.tar.gz
472655eb76480c1b0bdd284ec75a45c7  nx_util.patch"
sha256sums="3eadff1d91995beae41b92733ade28091c2075a24ae37058f4d6aa90b0f4b660  naxsi-0.53-2.tar.gz
48a2e379deb76222410d801fbfceb30301e2ab7bd1b8a1052d1e7d65568b6335  nx_util.patch"
sha512sums="ada592f5e7f80a6d549cc435ee8720df01a788dc88cf27a7d55521bb7e4c66fa11b9ec28216aff7e13c70a5faf12cb745bd398b8a782ed4dea1eecd04b07e24c  naxsi-0.53-2.tar.gz
005057ae94da5cdcb0e9e23e6f328ec7c75789e1b841ad2167f0c9e4f61d229d3a92b7a74704ec0af4fc150ec1165c6cfc6371f9758ecec225d39bd48f01c825  nx_util.patch"