summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiziano Müller <dev-zero@gentoo.org>2013-05-14 21:39:23 +0000
committerTiziano Müller <dev-zero@gentoo.org>2013-05-14 21:39:23 +0000
commita24e956a699dbacd16922afbe0fde0d8e15afeec (patch)
tree161e289b65dc7c4822fea03c90b41cc04a587b2d /www-misc
parentVersion bump, drop old (diff)
downloadhistorical-a24e956a699dbacd16922afbe0fde0d8e15afeec.tar.gz
historical-a24e956a699dbacd16922afbe0fde0d8e15afeec.tar.bz2
historical-a24e956a699dbacd16922afbe0fde0d8e15afeec.zip
Initial commit, ebuild written by me.
Package-Manager: portage-2.1.11.63/cvs/Linux x86_64 Manifest-Sign-Key: 0x1E0CA85F!
Diffstat (limited to 'www-misc')
-rw-r--r--www-misc/nx_util/ChangeLog9
-rw-r--r--www-misc/nx_util/Manifest21
-rw-r--r--www-misc/nx_util/files/0.3-fix-install-paths.patch47
-rw-r--r--www-misc/nx_util/metadata.xml11
-rw-r--r--www-misc/nx_util/nx_util-0.3.ebuild30
5 files changed, 118 insertions, 0 deletions
diff --git a/www-misc/nx_util/ChangeLog b/www-misc/nx_util/ChangeLog
new file mode 100644
index 000000000000..9530361b890e
--- /dev/null
+++ b/www-misc/nx_util/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for www-misc/nx_util
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/nx_util/ChangeLog,v 1.1 2013/05/14 21:39:22 dev-zero Exp $
+
+*nx_util-0.3 (14 May 2013)
+
+ 14 May 2013; Tiziano Müller <dev-zero@gentoo.org>
+ +files/0.3-fix-install-paths.patch, +metadata.xml, +nx_util-0.3.ebuild:
+ Initial commit, ebuild written by me.
diff --git a/www-misc/nx_util/Manifest b/www-misc/nx_util/Manifest
new file mode 100644
index 000000000000..2b9b6dd7a47e
--- /dev/null
+++ b/www-misc/nx_util/Manifest
@@ -0,0 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA256
+
+AUX 0.3-fix-install-paths.patch 1839 SHA256 f257964851420aa909c912a345d475bd87a3d922d62ddb89dd4da6dc5806978c SHA512 0cb33c0820e61f8e64622f8c1f760932f5ffc92774db99f8375f7030b26c62480caf77fc1b109e8ce1593c9a79398bf4e4cca550d734e33d1f9108eff12fda54 WHIRLPOOL 33f08581358afa4520758b0ba29c2cd5cec3ced9d14bcaf3e6d8bd2c2c42cfb5e83fb631eaed721ce2a221c0451129539f1cd40b45312095823fa2e3147b17f5
+DIST nx_util-0.3.tgz 117551 SHA256 9259f18ecfd8f4a9521ba8c842b878236416fd9ba81d91c2a19746fbeba94386 SHA512 139860a54d597b53d6695eb032583d9d2fa3621f25e16e97c06cd3612e18a2b2d0faa0df649828e70d090615b53e559828880038818b387103e00688f2308157 WHIRLPOOL 411b21c97b1f70fb79a1e444fbf1d9888168b0232e8a37d3529d018a62718750fa7fc4c9dcb4d4414af5c80a53578c4fd61ec217bd1b81d395948f4f0d3fdd7d
+EBUILD nx_util-0.3.ebuild 798 SHA256 4b3928f4dd63a2fcb13028793ea23e06faf90c86c4c67e0990db204a1c3e000e SHA512 5790c6b9d1d28f33810a0bf5ca30020a6ebecc296fcc924f201aaa9e7f8355b69a1086465ac364f6ec36578f24b7fbe67b73762ccd14926d8242d8e648bc8b02 WHIRLPOOL 0852d3771aa0fdf005a28de2ed6052b3e1a9ed2e71e83ac032b499cc458985205ea60c5a5a4a5721bc2521a67aed00e6dbe4efc6c4001a3b6c1a67b6856f1d20
+MISC ChangeLog 402 SHA256 c074c3e96b95b4c0f98ca0c2aee00cff8a785a6808722aed49c71dab348e8fe1 SHA512 bcca54fbd641db53eca50cbfdc477b358cb106594ded4cb5130fa35bc225eed2ae5e72852dd6a741aa9e10959f814aa9ed0f21b3c66b54b032afb2b542b2d570 WHIRLPOOL c37ab101ae9ff86b0f67db2e3a06c960e4aa6b91564e5494bff6dd4e6b6703c5d7c6a46793806f32f657f51f44345d863cca4a0f5913d84e9ba778553fe71a40
+MISC metadata.xml 311 SHA256 c7b239c60e40439398894df82eafb76672ffe6b6ecc279f9b5aa0c91da6b2448 SHA512 20599c48752b0ec170f588b7dd71a211ec06e5676cd32db7ac5cc81248b85a1c5d2b3f8a7b822440679982b9bcd2aa190505bf2cf3616aae3e27d8a3859356f5 WHIRLPOOL c42c6d66e83176a61afc7f19c73cb70e06654df0250bf58dfbe9ed5cd37b1713bcc14cfef9968160bf82b4b18d83e7a9ac3574261352b5ba38c00658a2faa6b1
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQF8BAEBCABmBQJRkq8LXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ1RjI0QTQ0MjI1OURBNzI4MEIyREExRkQx
+RTdDRkM3NzFFMENBODVGAAoJEB58/HceDKhfeH8IAIK7ASn/1iqYT1HAB6+rJF6a
+8CUiBeCG0FCYWgAF2r1R9Zd/dPAZQvdtiEuIYHJETlP0C1tL5hOSplx/LPxN7ddP
+UlvU3tmTE4JrBeqFE0Pvj5R+E6pZtBLfQOAwq3jt2/aB0mH4o0eh+YokNXbHaz6t
+Y3Z+6CJ4q7sH4sHmFW7NKZZZdWlB2X8HszE9JmdcPFsAQLr8QSk4757Eu4FHZWKT
+ILoMCpSA2FTUMATsH2g82lV9YbGsdjE0CRrU4YLLwKghj9E0GcWu3UwVBl8MJxik
+h5fnQn7diSLlyU1bUJ0D3noA+vULwOmY41bkPGmGo9wO5wQAzd9qzyROdCt0Apk=
+=Odys
+-----END PGP SIGNATURE-----
diff --git a/www-misc/nx_util/files/0.3-fix-install-paths.patch b/www-misc/nx_util/files/0.3-fix-install-paths.patch
new file mode 100644
index 000000000000..919c94ac4ed4
--- /dev/null
+++ b/www-misc/nx_util/files/0.3-fix-install-paths.patch
@@ -0,0 +1,47 @@
+diff --git a/nx_util.conf b/nx_util.conf
+index cd2a591..818daaf 100644
+--- a/nx_util.conf
++++ b/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.py b/nx_util.py
+index 81c5030..eb7e888 100755
+--- a/nx_util.py
++++ b/nx_util.py
+@@ -61,8 +61,8 @@ nginx/naxsi log parser, whitelist and report generator.
+
+ # 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/setup.py b/setup.py
+index c08f4e6..7b15fd8 100644
+--- a/setup.py
++++ b/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..c8a6a20d555f
--- /dev/null
+++ b/www-misc/nx_util/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>dev-zero@gentoo.org</email>
+ <name>Tiziano Müller</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="google-code">naxsi</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/www-misc/nx_util/nx_util-0.3.ebuild b/www-misc/nx_util/nx_util-0.3.ebuild
new file mode 100644
index 000000000000..7d7e683932bd
--- /dev/null
+++ b/www-misc/nx_util/nx_util-0.3.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-misc/nx_util/nx_util-0.3.ebuild,v 1.1 2013/05/14 21:39:22 dev-zero Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="sqlite"
+DISTUTILS_SINGLE_IMPL=true
+
+inherit distutils-r1
+
+DESCRIPTION="Whitelist & Reports generation for Naxsi (Web Application Firewall module for Nginx)."
+HOMEPAGE="https://code.google.com/p/naxsi/"
+SRC_URI="https://naxsi.googlecode.com/files/${P}.tgz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+RDEPEND="www-servers/nginx[nginx_modules_http_naxsi]"
+
+PATCHES=( "${FILESDIR}/${PV}-fix-install-paths.patch" )
+
+src_prepare() {
+ distutils-r1_src_prepare
+ mv nx_util{.py,} || die "renaming script failed"
+}