diff options
author | Stuart Cardall <developer@it-offshore.co.uk> | 2015-04-03 01:31:50 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-22 16:24:51 +0000 |
commit | 92b5bfa243aafa1b1ee3a85f3cb77826c2280ba7 (patch) | |
tree | 8c0ff69cd38d8a77eee4a7d47a58ccc6f2838f02 /testing/nxapi/fix-config-location.patch | |
parent | ab910b003cfbb4a5a58a625e0322cf478a27a328 (diff) | |
download | aports-92b5bfa243aafa1b1ee3a85f3cb77826c2280ba7.tar.bz2 aports-92b5bfa243aafa1b1ee3a85f3cb77826c2280ba7.tar.xz |
testing/nxapi: new aport
log tools for nginx-naxsi (replaces naxsi-utils)
Diffstat (limited to 'testing/nxapi/fix-config-location.patch')
-rw-r--r-- | testing/nxapi/fix-config-location.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/testing/nxapi/fix-config-location.patch b/testing/nxapi/fix-config-location.patch new file mode 100644 index 0000000000..31ad21afdb --- /dev/null +++ b/testing/nxapi/fix-config-location.patch @@ -0,0 +1,26 @@ +--- nxapi/setup.py ++++ nxapi/setup.py.new +@@ -6,18 +6,18 @@ + import pprint + + f = {} +-data_files = [('/usr/local/nxapi/', ['nx_datas/country2coords.txt']), +- ('/usr/local/etc/', ['nxapi.json'])] ++data_files = [('/etc/nginx/nxapi/', ['nx_datas/country2coords.txt']), ++ ('/etc/nginx/nxapi/', ['nxapi.json'])] + #modules = [] + for dirname, dirnames, filenames in os.walk('tpl/'): + for filename in filenames: + if filename.endswith(".tpl"): + print dirname+"#"+filename +- if "/usr/local/nxapi/"+dirname not in f.keys(): ++ if "/etc/nginx/nxapi/"+dirname not in f.keys(): + +- f["/usr/local/nxapi/"+dirname] = [] ++ f["/etc/nginx/nxapi/"+dirname] = [] + +- f["/usr/local/nxapi/"+dirname].append(os.path.join(dirname, filename)) ++ f["/etc/nginx/nxapi/"+dirname].append(os.path.join(dirname, filename)) + + for z in f.keys(): + data_files.append( (z, f[z])) |