aboutsummaryrefslogtreecommitdiffstats
path: root/testing/naxsi-utils/nx_util.patch
blob: 7d5c3c0c8b3c8c2c0ab718845a537f4b4670e28e (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
--- nx_util/nx_util.conf
+++ nx_util/nx_util.conf
@@ -1,4 +1,4 @@
 [nx_util]
-data_dir=/usr/local/nx_datas
-database_dir=
+data_dir=/usr/share/nginx-naxsi/nx_datas
+database_dir=/usr/share/nginx-naxsi
 naxsi_core_rules=/etc/nginx/naxsi_core.rules
--- nx_util/nx_util.py
+++ nx_util/nx_util.py
@@ -62,8 +62,8 @@
 	
 	# 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/nginx/nx_util.conf)", 
+			  type="string", default="/etc/nginx/nx_util.conf")
 	
 	# Filtering options should go here :)
 	parser.add_option("-f", "--filters", dest="usr_filter",
--- nx_util/setup.py
+++ nx_util/setup.py
@@ -7,15 +7,15 @@
       description='Naxsi log parser, whitelist & report generator',
       author='Naxsi Dev Team',
       author_email='thibault.koechlin@nbs-system.com',
-      url='naxsi.googlecode.com',
+      url='https://github.com/nbs-system/naxsi',
       scripts=['nx_util.py'],
       packages=['nx_lib'],
-      data_files=[('nx_datas', ['nx_datas/bootstrap.min.css',
+      data_files=[('/usr/share/nginx-naxsi/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/nginx/', ['nx_util.conf'])]
       )