Code

patches: Added css-js-path.dpatch.
authorSebastian Harl <sh@tokkee.org>
Fri, 3 Jun 2011 17:40:40 +0000 (19:40 +0200)
committerSebastian Harl <sh@tokkee.org>
Fri, 3 Jun 2011 17:40:40 +0000 (19:40 +0200)
This patch adjusts the path to CSS and JavaScript files.

debian/README.source [new file with mode: 0644]
debian/changelog
debian/control
debian/patches/css-js-path.dpatch [new file with mode: 0644]
debian/patches/series [new file with mode: 0644]
debian/rules

diff --git a/debian/README.source b/debian/README.source
new file mode 100644 (file)
index 0000000..92cdadc
--- /dev/null
@@ -0,0 +1,4 @@
+This package uses quilt to manage all modifications to the upstream source.
+See /usr/share/doc/quilt/README.source for instructions how to generate the
+patched source, add a new modification, and remove an existing one.
+
index e840671d24a7908ab9c198e06849fca187e9a12d..a6698d2bb09d299676166de17ba3e617dc055f5e 100644 (file)
@@ -4,5 +4,7 @@ collection4 (4.0.0-1) experimental; urgency=low
   * Uploading to experimental, since this is still an alpha release and work-
     in-progress.
   * Install into /usr/{share,lib}/collection4/.
+  * debian/patches:
+    - Added css-js-path.dpatch to adjust the path to CSS and JavaScript files.
 
- -- Sebastian Harl <tokkee@debian.org>  Fri, 03 Jun 2011 17:32:48 +0200
+ -- Sebastian Harl <tokkee@debian.org>  Fri, 03 Jun 2011 19:39:53 +0200
index e7b073e859ddbbc3f6975cbb61107dc8c963ac95..36ba351836a4af5135509afad636d5f973f8a462 100644 (file)
@@ -2,7 +2,7 @@ Source: collection4
 Section: web
 Priority: optional
 Maintainer: Sebastian Harl <tokkee@debian.org>
-Build-Depends: debhelper (>= 7), autotools-dev, libfcgi-dev, librrd-dev, libyajl-dev, bison
+Build-Depends: debhelper (>= 7), quilt, autotools-dev, libfcgi-dev, librrd-dev, libyajl-dev, bison
 Standards-Version: 3.9.1
 Homepage: http://octo.it/c4/
 Vcs-Git: git://git.tokkee.org/pkg-collection4.git
diff --git a/debian/patches/css-js-path.dpatch b/debian/patches/css-js-path.dpatch
new file mode 100644 (file)
index 0000000..c0e43e8
--- /dev/null
@@ -0,0 +1,29 @@
+Description: Adjust path to CSS and JavaScript files.
+Author: Sebastian Harl <tokkee@debian.org>
+Forwarded: not-needed
+
+--- a/src/utils_cgi.c
++++ b/src/utils_cgi.c
+@@ -687,16 +687,16 @@
+   printf ("<html>\n"
+       "  <head>\n"
+       "    <title>%s</title>\n"
+-      "    <link rel=\"stylesheet\" type=\"text/css\" href=\"../share/style.css\" />\n"
+-      "    <script type=\"text/javascript\" src=\"../share/jquery-1.4.2.min.js\">\n"
++      "    <link rel=\"stylesheet\" type=\"text/css\" href=\"css/style.css\" />\n"
++      "    <script type=\"text/javascript\" src=\"js/jquery-1.4.2.min.js\">\n"
+       "    </script>\n"
+-      "    <script type=\"text/javascript\" src=\"../share/raphael-min.js\">\n"
++      "    <script type=\"text/javascript\" src=\"js/raphael-min.js\">\n"
+       "    </script>\n"
+-      "    <script type=\"text/javascript\" src=\"../share/g.raphael-min.js\">\n"
++      "    <script type=\"text/javascript\" src=\"js/g.raphael-min.js\">\n"
+       "    </script>\n"
+-      "    <script type=\"text/javascript\" src=\"../share/g.line-min.js\">\n"
++      "    <script type=\"text/javascript\" src=\"js/g.line-min.js\">\n"
+       "    </script>\n"
+-      "    <script type=\"text/javascript\" src=\"../share/collection.js\">\n"
++      "    <script type=\"text/javascript\" src=\"js/collection.js\">\n"
+       "    </script>\n"
+       "  </head>\n",
+       title_html);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644 (file)
index 0000000..dcf7c86
--- /dev/null
@@ -0,0 +1 @@
+css-js-path.dpatch
index f06402fe26d8866fe6cd421b8f1a522bbb388eb3..69e4d3cb3e668b80a440a07fa1a8775b8a91ea97 100755 (executable)
@@ -3,6 +3,8 @@
 #
 # Written by Sebastian Harl <tokkee@debian.org>
 
+include /usr/share/quilt/quilt.make
+
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
@@ -32,14 +34,14 @@ config.status: configure
 
 build: build-stamp
 
-build-stamp: config.status
+build-stamp: $(QUILT_STAMPFN) config.status
        dh_testdir
        
        $(MAKE)
        
        touch build-stamp
 
-clean:
+clean: unpatch
        dh_testdir
        dh_testroot
        rm -f build-stamp