[Pkg-javascript-commits] [node-policyfile] 07/17: Add patch: 001_debian-policyfile-examples.patch. Make example files work from their installation location.

Mike Gabriel sunweaver at debian.org
Wed Aug 20 13:38:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

sunweaver pushed a commit to branch master
in repository node-policyfile.

commit f038c62c2ba30ad40ef046e09e0e41c5c6d19448
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Wed May 15 23:01:41 2013 +0200

    Add patch: 001_debian-policyfile-examples.patch. Make example files work from their installation location.
---
 debian/changelog                                    |  2 ++
 debian/links                                        |  1 +
 debian/patches/001_debian-policyfile-examples.patch | 19 +++++++++++++++++++
 debian/patches/series                               |  1 +
 4 files changed, 23 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 490b147..0c8bbd7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ node-policyfile (0.0.5-2) UNRELEASED; urgency=low
 
   * /debian/control:
     + Fix versioned dependency on nodejs.
+  * Add patch: 001_debian-policyfile-examples.patch. Make example files
+    work from their installation location.
 
  -- Mike Gabriel <sunweaver at debian.org>  Wed, 15 May 2013 11:17:44 +0200
 
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..cbf7632
--- /dev/null
+++ b/debian/links
@@ -0,0 +1 @@
+usr/lib/nodejs/policyfile usr/share/doc/node-policyfile/examples/lib/policyfile
\ No newline at end of file
diff --git a/debian/patches/001_debian-policyfile-examples.patch b/debian/patches/001_debian-policyfile-examples.patch
new file mode 100644
index 0000000..fb2e60b
--- /dev/null
+++ b/debian/patches/001_debian-policyfile-examples.patch
@@ -0,0 +1,19 @@
+--- a/examples/basic.fallback.js
++++ b/examples/basic.fallback.js
+@@ -1,5 +1,5 @@
+ var http = require('http')
+-  , fspfs = require('../');
++  , fspfs = require('./lib/policyfile');
+ 
+ var server = http.createServer(function(q,r){ r.writeHead(200); r.end(':3') }) 
+   , flash = fspfs.createServer();
+--- a/examples/basic.js
++++ b/examples/basic.js
+@@ -1,5 +1,5 @@
+ var http = require('http')
+-  , fspfs = require('../');
++  , fspfs = require('./lib/policyfile');
+ 
+ var flash = fspfs.createServer();
+ flash.listen();
+\ No newline at end of file
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..f42d407
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001_debian-policyfile-examples.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-policyfile.git



More information about the Pkg-javascript-commits mailing list