[Pkg-javascript-commits] [node-rai] 03/04: use snakeoil cert instead of internal stuff

Thorsten Alteholz alteholz at moszumanska.debian.org
Sun Feb 21 12:00:06 UTC 2016


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

alteholz pushed a commit to branch master
in repository node-rai.

commit b1a80bf5385d31fd6cb772eb649f51865ea70799
Author: Thorsten Alteholz <debian at alteholz.de>
Date:   Sun Feb 21 12:21:29 2016 +0100

    use snakeoil cert instead of internal stuff
---
 debian/changelog                                        |  6 ++++++
 debian/control                                          |  3 ++-
 .../patches/001-use-ssl-cert-snakeoil-as-default.patch  | 17 +++++++++++++++++
 debian/patches/series                                   |  1 +
 4 files changed, 26 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 8dd4062..ebe43f7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-rai (0.1.12-2) unstable; urgency=medium
+
+  * add 001-use-ssl-cert-snakeoil-as-default.patch to allow CI build
+
+ -- Thorsten Alteholz <debian at alteholz.de>  Sun, 21 Feb 2016 11:21:53 +0100
+
 node-rai (0.1.12-1) unstable; urgency=low
 
   * Initial release
diff --git a/debian/control b/debian/control
index 07b54eb..4aa332b 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,7 @@ Build-Depends:
  debhelper (>= 9)
  , dh-buildinfo
  , nodejs
-Standards-Version: 3.9.6
+Standards-Version: 3.9.7
 Homepage: https://github.com/andris9/rai
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-rai.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-rai.git
@@ -17,6 +17,7 @@ Architecture: all
 Depends:
  ${misc:Depends}
  , nodejs
+ , ssl-cert
 Description: Request-Answer-Interface for generating text based command servers (SMTP,POP)     
  rai is a node.js module to easily generate text based command line servers. 
  When a client sends something to the server, the first word of the line is 
diff --git a/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch b/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch
new file mode 100644
index 0000000..f3a7eb9
--- /dev/null
+++ b/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch
@@ -0,0 +1,17 @@
+Author: Thorsten Alteholz <debian at alteholz.de>
+Description: use ssl-cert-snakeoil instead of included stuff
+Index: node-rai/lib/rai.js
+===================================================================
+--- node-rai.orig/lib/rai.js	2016-02-21 11:51:59.000000000 +0100
++++ node-rai/lib/rai.js	2016-02-21 12:11:40.000000000 +0100
+@@ -15,8 +15,8 @@
+ 
+ // Default credentials for starting TLS server
+ var defaultCredentials = {
+-    key: fs.readFileSync(__dirname+"/../cert/server.key"),
+-    cert: fs.readFileSync(__dirname+"/../cert/server.crt")
++    key: fs.readFileSync("/etc/ssl/private/ssl-cert-snakeoil.key"),
++    cert: fs.readFileSync("/etc/ssl/certs/ssl-cert-snakeoil.pem")
+ };
+ 
+ // Expose to the world
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7a2f290
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+001-use-ssl-cert-snakeoil-as-default.patch

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



More information about the Pkg-javascript-commits mailing list