summaryrefslogtreecommitdiff
path: root/www-misc/nx_util
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /www-misc/nx_util
reinit the tree, so we can have metadata
Diffstat (limited to 'www-misc/nx_util')
-rw-r--r--www-misc/nx_util/Manifest8
-rw-r--r--www-misc/nx_util/files/0.52.1-fix-install-paths.patch49
-rw-r--r--www-misc/nx_util/metadata.xml12
-rw-r--r--www-misc/nx_util/nx_util-0.52.1.ebuild34
-rw-r--r--www-misc/nx_util/nx_util-0.53.1.ebuild34
5 files changed, 137 insertions, 0 deletions
diff --git a/www-misc/nx_util/Manifest b/www-misc/nx_util/Manifest
new file mode 100644
index 000000000000..10b234bd7a47
--- /dev/null
+++ b/www-misc/nx_util/Manifest
@@ -0,0 +1,8 @@
+AUX 0.52.1-fix-install-paths.patch 1931 SHA256 e37f1418e8f5cc2cfe078b57e3f23450cdd3783afb4b86dd53587f4169c73846 SHA512 151c71732de120f3ff982097de084f2096e1592f8317a87c95b8cc4af66b7705f25f120b6ba972f0e296c9fa5528b5450bcb7f6b6fa67a33e149be3223964dca WHIRLPOOL 428bbc228c445ae22bd48c21e1cb5de59474ceeee6c6e1d6e65d54066f6b9d7bac4b1d119e7cd882ec38ea2280c33f23b14f9a6ca149ffd75f7b26ecba7b85e8
+DIST ngx_http_naxsi-0.52-1.tar.gz 162044 SHA256 0f23b0f17f03591775e95294a115d609ad47e2874e5f01c4fed1ebb680ea07bc SHA512 e1d3b4b3284d5b3f44ec5888023e6853c06519f99f3de768d8420d50a8bd50ae4d77c2413e441caa5dedc420f28ab3413d79fe56fc9aee8636a9b20adea7be74 WHIRLPOOL b42c4dc99c2a0b670b4e06ee9b5a0eb1b38b96f670c04c56fa30f13b8d3263836b54ff641dc1effd0e461f0fb3e0b935f945c2467b27c83f80b8407a3b42f739
+DIST ngx_http_naxsi-0.53-1.tar.gz 165627 SHA256 cde175f940cd2e8c595b95512642cd3f8ae6f3c4a2ee10c2fda214ffeb808274 SHA512 33e3a92242304f4e5900cb66915651f1c5ba78f40b27f41c1d81353390ef6baef5a6a03042441c200d4e489e70f251d782efe0644b916a2ff34833be8a8fd385 WHIRLPOOL 67c5cb73cc04381bf874222f9aa20d8ec063f074d139b8fa882bc9a84526f5d192f066b621a429086f93b1a55ea235e98623dfcb69952451dd870bcf316bd928
+EBUILD nx_util-0.52.1.ebuild 937 SHA256 5505df8d8ffacab6c3c3b9c8263102781306b95a9336060524971069911e5387 SHA512 c1813fb0456476a16d77e51a63d7e41554f365d8059dd3b8a0d15ed30e7fa09294389f1d972de3b6fb5544d161f97b161e0cdcd2ee8926c5858fa88dd0d8f718 WHIRLPOOL 49537011accf16958b9e619eaea2ac3a589810d409860ec981e80295cf3e257b73b21f990c57783874ab9b1924d4ff1f16093af83ce60ce3e0970d023a2b8166
+EBUILD nx_util-0.53.1.ebuild 938 SHA256 572c45d242276ca847adf1bf44b286b364597ce442347f45ac45419b5fd81d71 SHA512 aab6d59065cf4b914ac60c5b7740b083b56e45cd9061e080b3372e20c2f2762808c34f7d9788c0331557e21934d8b528d0e595d1f303e86541ee4e0780498651 WHIRLPOOL eef1710197c8db1f380658bfd3c9a809c6d913308748bac396f4752952604fd0f2d16370cc1ecb8d764b875b0a0301995445bc8560376110d4fa220a0f739132
+MISC ChangeLog 2309 SHA256 c5b5ee5f905277b185b7f36cfa1719d8fe33a7ef7cf693f50a31858b324d311e SHA512 29a926c77b5eba8e9933dc3f78f7150683516df5ac12dc3854b2036428e4efac74e0951ccf970bd1ecbcf120d773a17c8467179a4ebf8586a0fc6e97f08b425f WHIRLPOOL 121f93ad26dedd34fcbafd6993291be7e5f0ebd548b9d8770465378cdd931146ef7778171ff9212f1e7d966f7d86d16af1634afaa5ee2587327728ad948c0ef6
+MISC ChangeLog-2015 971 SHA256 26797c136da3b387ce07fad0c78ab4325bb7a7d811e2f7a87d27704a4e5547d7 SHA512 da75de2676f71e16e3404fc1b18e796e96481042369038409308c5ac87f94caddd992f66ac2505ac44dbb6e7cc41cc9010be669870127b9e78e5480097caf8dc WHIRLPOOL 719737e25aee94c7c140188abdfdf9016533ab34a79fcb28211c3c1a08bb51c4a419f8ef50ac8ff605a7e48d998de89c8533e1684738200b732b0cec84798445
+MISC metadata.xml 381 SHA256 a238d571535ddcfcae6fc8440721010383128174e49ba1200c820568ff6e5dbf SHA512 9da7d67a3663f7ab3bc28cfa880d60a8ad70706a106dc00d181146b099e550f1c66940113c9c26f52b0639e7013407eafd9ee58d53f41a55f1330eb203d345f5 WHIRLPOOL 45def46f434d1490001e2a155c44bfb15e13660200b4026d5f084b7d6db20d89c5e35f5e40f5d313de62fc002bb06edee01257e40c8c265b8cb929b57e4eebb2
diff --git a/www-misc/nx_util/files/0.52.1-fix-install-paths.patch b/www-misc/nx_util/files/0.52.1-fix-install-paths.patch
new file mode 100644
index 000000000000..1a2752e3b20b
--- /dev/null
+++ b/www-misc/nx_util/files/0.52.1-fix-install-paths.patch
@@ -0,0 +1,49 @@
+diff --git a/nx_util/nx_util.conf b/nx_util/nx_util.conf
+index cd2a591..818daaf 100644
+--- a/nx_util/nx_util.conf
++++ b/nx_util/nx_util.conf
+@@ -1,4 +1,4 @@
+ [nx_util]
+-data_dir=/usr/local/nx_datas
++data_dir=/usr/share/nx_datas
+ database_dir=
+ naxsi_core_rules=/etc/nginx/naxsi_core.rules
+diff --git a/nx_util/nx_util.py b/nx_util/nx_util.py
+old mode 100644
+new mode 100755
+index 0509b51..38be37e
+--- a/nx_util/nx_util.py
++++ b/nx_util/nx_util.py
+@@ -62,8 +62,8 @@ if __name__ == "__main__":
+
+ # Configuration
+ parser.add_option("-c", "--config", dest="conf_path",
+- help="Path to configuration (defaults to /usr/local/etc/nx_util.conf)",
+- type="string", default="/usr/local/etc/nx_util.conf")
++ help="Path to configuration (defaults to /etc/nx_util.conf)",
++ type="string", default="/etc/nx_util.conf")
+
+ # Filtering options should go here :)
+ parser.add_option("-f", "--filters", dest="usr_filter",
+diff --git a/nx_util/setup.py b/nx_util/setup.py
+index cc48a5c..b855459 100644
+--- a/nx_util/setup.py
++++ b/nx_util/setup.py
+@@ -8,14 +8,14 @@ setup(name='nx_util',
+ author='Naxsi Dev Team',
+ author_email='thibault.koechlin@nbs-system.com',
+ url='naxsi.googlecode.com',
+- scripts=['nx_util.py'],
++ scripts=['nx_util'],
+ packages=['nx_lib'],
+- data_files=[('nx_datas', ['nx_datas/bootstrap.min.css',
++ data_files=[('/usr/share/nx_datas', ['nx_datas/bootstrap.min.css',
+ 'nx_datas/bootstrap-responsive.min.css',
+ 'nx_datas/highcharts.js',
+ 'nx_datas/map.tpl',
+ 'nx_datas/bootstrap.min.js',
+ 'nx_datas/country2coords.txt']),
+ ('/usr/share/man/man1', ['nx_util.1.gz']),
+- ('/usr/local/etc/', ['nx_util.conf'])]
++ ('/etc/', ['nx_util.conf'])]
+ )
diff --git a/www-misc/nx_util/metadata.xml b/www-misc/nx_util/metadata.xml
new file mode 100644
index 000000000000..ac4aa6c210b4
--- /dev/null
+++ b/www-misc/nx_util/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">naxsi</remote-id>
+ <remote-id type="github">nbs-system/naxsi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/nx_util/nx_util-0.52.1.ebuild b/www-misc/nx_util/nx_util-0.52.1.ebuild
new file mode 100644
index 000000000000..0a83e644c16f
--- /dev/null
+++ b/www-misc/nx_util/nx_util-0.52.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+DISTUTILS_SINGLE_IMPL=true
+
+inherit distutils-r1 versionator
+
+MY_PV="$(replace_version_separator 2 '-')"
+
+DESCRIPTION="Whitelist & Reports generation for Naxsi (Web Application Firewall module for Nginx)"
+HOMEPAGE="https://github.com/nbs-system/naxsi"
+# keep the name in sync with what's in the nginx ebuild to avoid duplication
+SRC_URI="https://github.com/nbs-system/naxsi/archive/${MY_PV}.tar.gz -> ngx_http_naxsi-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2+ Apache-2.0 CC-BY-NC-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="www-servers/nginx[nginx_modules_http_naxsi]"
+
+PATCHES=( "${FILESDIR}/${PV}-fix-install-paths.patch" )
+
+S="${WORKDIR}/naxsi-${MY_PV}/nx_util"
+
+src_prepare() {
+ distutils-r1_src_prepare
+ mv nx_util{.py,} || die "renaming script failed"
+}
diff --git a/www-misc/nx_util/nx_util-0.53.1.ebuild b/www-misc/nx_util/nx_util-0.53.1.ebuild
new file mode 100644
index 000000000000..aba910cabe96
--- /dev/null
+++ b/www-misc/nx_util/nx_util-0.53.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+DISTUTILS_SINGLE_IMPL=true
+
+inherit distutils-r1 versionator
+
+MY_PV="$(replace_version_separator 2 '-')"
+
+DESCRIPTION="Whitelist & Reports generation for Naxsi (Web Application Firewall module for Nginx)"
+HOMEPAGE="https://github.com/nbs-system/naxsi"
+# keep the name in sync with what's in the nginx ebuild to avoid duplication
+SRC_URI="https://github.com/nbs-system/naxsi/archive/${MY_PV}.tar.gz -> ngx_http_naxsi-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2+ Apache-2.0 CC-BY-NC-SA-3.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="www-servers/nginx[nginx_modules_http_naxsi]"
+
+PATCHES=( "${FILESDIR}/0.52.1-fix-install-paths.patch" )
+
+S="${WORKDIR}/naxsi-${MY_PV}/nx_util"
+
+src_prepare() {
+ distutils-r1_src_prepare
+ mv nx_util{.py,} || die "renaming script failed"
+}