diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2014-09-18 03:25:18 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-09-18 09:52:22 +0000 |
commit | cb653ac14773544007ce7925bf09444d2dfd88ee (patch) | |
tree | 560db012f6b5f28c17ce2bc95164550f44539d94 /testing/naxsi-utils/APKBUILD | |
parent | 7596de12a5a72588a318d4768303b18635ab44b7 (diff) | |
download | aports-cb653ac14773544007ce7925bf09444d2dfd88ee.tar.bz2 aports-cb653ac14773544007ce7925bf09444d2dfd88ee.tar.xz |
testing/naxsi-utils: new aport
A tool to parse & analyze naxsi logs.
Diffstat (limited to 'testing/naxsi-utils/APKBUILD')
-rw-r--r-- | testing/naxsi-utils/APKBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/testing/naxsi-utils/APKBUILD b/testing/naxsi-utils/APKBUILD new file mode 100644 index 000000000..2377ddeac --- /dev/null +++ b/testing/naxsi-utils/APKBUILD @@ -0,0 +1,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" |