diff options
author | makefu <github@syntax-fehler.de> | 2015-10-04 22:27:46 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2015-10-04 22:27:46 +0200 |
commit | 15201886b97ee607bb494d85eea8e3a7096c6a14 (patch) | |
tree | 87d04e8217c0db7c7872c34ea1cffa0750720c87 | |
parent | 4e9aa988069d80142548b7b6a78e91d46234e941 (diff) |
minor fixes for tinc_graphs
-rw-r--r-- | retiolum/scripts/adv_graphgen/MANIFEST.in | 1 | ||||
-rw-r--r-- | retiolum/scripts/adv_graphgen/Makefile | 4 | ||||
-rwxr-xr-x | retiolum/scripts/adv_graphgen/scripts/all-the-graphs | 2 | ||||
-rwxr-xr-x | retiolum/scripts/adv_graphgen/scripts/build-graphs | 2 | ||||
-rw-r--r-- | retiolum/scripts/adv_graphgen/setup.py | 3 |
5 files changed, 5 insertions, 7 deletions
diff --git a/retiolum/scripts/adv_graphgen/MANIFEST.in b/retiolum/scripts/adv_graphgen/MANIFEST.in new file mode 100644 index 00000000..bb3ec5f0 --- /dev/null +++ b/retiolum/scripts/adv_graphgen/MANIFEST.in @@ -0,0 +1 @@ +include README.md diff --git a/retiolum/scripts/adv_graphgen/Makefile b/retiolum/scripts/adv_graphgen/Makefile deleted file mode 100644 index fafac84e..00000000 --- a/retiolum/scripts/adv_graphgen/Makefile +++ /dev/null @@ -1,4 +0,0 @@ -install: - #punani install graphviz - echo "add this line to your tinc.conf if you dare:" - echo 'GraphDumpFile = |/krebs/retiolum/scripts/adv_graphgen /srv/http/tmp/graphs/' diff --git a/retiolum/scripts/adv_graphgen/scripts/all-the-graphs b/retiolum/scripts/adv_graphgen/scripts/all-the-graphs index 889a9fe0..bfd71dcf 100755 --- a/retiolum/scripts/adv_graphgen/scripts/all-the-graphs +++ b/retiolum/scripts/adv_graphgen/scripts/all-the-graphs @@ -6,7 +6,7 @@ export GEODB="${GEODB:-}" export TINC_HOSTPATH=${TINC_HOSTPATH:-~/painload/retiolum/hosts} mapfile="$INTERNAL_FOLDER/map.html" -if test -n "$GEOCITYDB";then +if test -n "$GEODB";then if test ! -e "$mapfile";then echo "copying map to $map.html" copy-map "$mapfile" diff --git a/retiolum/scripts/adv_graphgen/scripts/build-graphs b/retiolum/scripts/adv_graphgen/scripts/build-graphs index 89151671..2adc450d 100755 --- a/retiolum/scripts/adv_graphgen/scripts/build-graphs +++ b/retiolum/scripts/adv_graphgen/scripts/build-graphs @@ -8,7 +8,7 @@ TYPE=svg TYPE2=png DOTFILE=`mktemp` -trap 'rm "$DOTFILE"' INT TERM KILL EXIT +trap 'rm -f "$DOTFILE"' INT TERM KILL EXIT tinc-stats2json | tinc-build-graph "$mode" > "$DOTFILE" diff --git a/retiolum/scripts/adv_graphgen/setup.py b/retiolum/scripts/adv_graphgen/setup.py index a692ebef..5a9dcdfe 100644 --- a/retiolum/scripts/adv_graphgen/setup.py +++ b/retiolum/scripts/adv_graphgen/setup.py @@ -3,7 +3,7 @@ from setuptools import setup setup( name='tinc_graphs', - version='0.2.4', + version='0.2.12', description='Create Graphs from tinc Stats', long_description=open("README.md").read(), @@ -17,6 +17,7 @@ setup( install_requires = [ 'pygeoip' ], scripts = ['scripts/all-the-graphs', 'scripts/build-graphs'], packages=['tinc_graphs'], + package_data = {'tinc_graphs' : ['static/*'] }, entry_points={ 'console_scripts' : [ 'tinc-stats2json = tinc_graphs.Log2JSON:main', |