Control: tags 695890 + patch

Attached is a simple patch for option 0.

Regards,

        --dkg
commit 968f109828863171554cc82f01961a97299273fd
Author: Daniel Kahn Gillmor <d...@fifthhorseman.net>
Date:   Thu Dec 13 22:29:10 2012 -0500

    use local jquery instead of phoning home to ajax.googleapis.com.

diff --git a/debian/changelog b/debian/changelog
index 9634355..2f43c05 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+powertop (2.0-0.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * html output now uses libjs-jquery in html output instead of needing to
+    access ajax.googleapis.com over the network. (Closes: #695890)
+
+ -- Daniel Kahn Gillmor <d...@fifthhorseman.net>  Thu, 13 Dec 2012 22:31:42 -0500
+
 powertop (2.0-0.2) unstable; urgency=low
 
   * Non-maintainer upload.
diff --git a/debian/control b/debian/control
index 01d9854..69077b6 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Homepage: https://01.org/powertop/
 Package: powertop
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
-Suggests: cpufrequtils, laptop-mode-tools
+Suggests: cpufrequtils, laptop-mode-tools, libjs-jquery
 Description: Linux tool to find out what is using power on a laptop
  PowerTOP is a Linux tool that finds the software component(s) that
  make your laptop use more power than necessary while it is idle. As of
diff --git a/debian/patches/series b/debian/patches/series
index e69de29..5e2ac88 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -0,0 +1 @@
+switch-to-local-jquery.patch
diff --git a/debian/patches/switch-to-local-jquery.patch b/debian/patches/switch-to-local-jquery.patch
new file mode 100644
index 0000000..4ca9d8e
--- /dev/null
+++ b/debian/patches/switch-to-local-jquery.patch
@@ -0,0 +1,25 @@
+diff --git a/src/css.h b/src/css.h
+index f3e66d9..34e71eb 100644
+--- a/src/css.h
++++ b/src/css.h
+@@ -4,7 +4,7 @@
+ const char css[] = 
+ 	"<!DOCTYPE html PUBLIC \"-//W3C/DTD HTML 4.01//EN\">\n"
+ 	"<html>\n"
+-	"<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\";></script>\n"
++	"<script type=\"text/javascript\" src=\"file:///usr/share/javascript/jquery/jquery.min.js\"></script>\n"
+ 	"<script>\n"
+ 	"$(document).ready(function(){ \n"
+ 	"     \n"
+diff --git a/src/powertop.css b/src/powertop.css
+index 4a67c7f..a178f7b 100644
+--- a/src/powertop.css
++++ b/src/powertop.css
+@@ -1,6 +1,6 @@
+ <!DOCTYPE html PUBLIC \"-//W3C/DTD HTML 4.01//EN\">
+ <html>
+-<script type=\"text/javascript\" src=\"http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js\";></script>
++<script type=\"text/javascript\" src=\"file:///usr/share/javascript/jquery/jquery.min.js\"></script>
+ <script>
+ $(document).ready(function(){ 
+      

Reply via email to