Commit f66165c3 authored by Robert Edmonds's avatar Robert Edmonds

Use Debian packaged JS/CSS dependencies

Based on a patch from Casey Deccio.
parent 7ec93639
...@@ -18,7 +18,14 @@ X-Python-Version: 2.7 ...@@ -18,7 +18,14 @@ X-Python-Version: 2.7
Package: dnsviz Package: dnsviz
Architecture: all Architecture: all
Depends: ${misc:Depends}, ${python:Depends}, dns-root-data Depends:
${misc:Depends},
${python:Depends},
dns-root-data,
libjs-jquery,
libjs-jquery-ui,
libjs-jquery-ui-theme-redmond,
libjs-raphael,
Description: Tools for analyzing and visualizing DNS and DNSSEC behavior Description: Tools for analyzing and visualizing DNS and DNSSEC behavior
DNSViz is a tool suite for analysis and visualization of Domain Name System DNSViz is a tool suite for analysis and visualization of Domain Name System
(DNS) behavior, including its security extensions (DNSSEC). This tool suite (DNS) behavior, including its security extensions (DNSSEC). This tool suite
......
...@@ -11,10 +11,21 @@ from distutils.dist import Distribution ...@@ -11,10 +11,21 @@ from distutils.dist import Distribution
from distutils.command.install import install from distutils.command.install import install
from distutils.command.build import build from distutils.command.build import build
JQUERY_UI_PATH = "'http://code.jquery.com/ui/1.11.4/jquery-ui.min.js'" # Requires libjs-jquery-ui
JQUERY_UI_CSS_PATH = "'http://code.jquery.com/ui/1.11.4/themes/redmond/jquery-ui.css'" JQUERY_UI_PATH = \
JQUERY_PATH = "'http://code.jquery.com/jquery-1.11.3.min.js'" "'file:///usr/share/javascript/jquery-ui/jquery-ui.min.js'"
RAPHAEL_PATH = "'http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.4/raphael-min.js'"
# Requires libjs-jquery-ui-theme-redmond
JQUERY_UI_CSS_PATH = \
"'file:///usr/share/javascript/jquery-ui-themes/redmond/jquery-ui.css'"
# Requires libjs-jquery
JQUERY_PATH = \
"'file:///usr/share/javascript/jquery/jquery.min.js'"
# Requires libjs-raphael
RAPHAEL_PATH = \
"'file:///usr/share/javascript/raphael/raphael.min.js'"
def apply_substitutions(filename, install_prefix): def apply_substitutions(filename, install_prefix):
assert filename.endswith('.in'), 'Filename supplied for customization must end with \'.in\': %s' % (filename) assert filename.endswith('.in'), 'Filename supplied for customization must end with \'.in\': %s' % (filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment