diff -Nru node-rai-0.1.12/debian/changelog node-rai-0.1.12/debian/changelog --- node-rai-0.1.12/debian/changelog 2015-09-02 17:53:36.000000000 +0000 +++ node-rai-0.1.12/debian/changelog 2016-02-24 18:38:54.000000000 +0000 @@ -1,3 +1,18 @@ +node-rai (0.1.12-3) unstable; urgency=medium + + * snakeoil stuff is not accessible during tests, so better + create own cert stuff + * use other default values for key and cert + + -- Thorsten Alteholz Wed, 24 Feb 2016 19:21:53 +0100 + +node-rai (0.1.12-2) unstable; urgency=medium + + * add 001-use-ssl-cert-snakeoil-as-default.patch to allow CI build + * use secure VCS-URLs + + -- Thorsten Alteholz Sun, 21 Feb 2016 11:21:53 +0100 + node-rai (0.1.12-1) unstable; urgency=low * Initial release diff -Nru node-rai-0.1.12/debian/control node-rai-0.1.12/debian/control --- node-rai-0.1.12/debian/control 2015-09-02 17:53:06.000000000 +0000 +++ node-rai-0.1.12/debian/control 2016-02-21 11:24:29.000000000 +0000 @@ -7,16 +7,17 @@ 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 +Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-rai.git +Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-javascript/node-rai.git Package: node-rai 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 -Nru node-rai-0.1.12/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch node-rai-0.1.12/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch --- node-rai-0.1.12/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch 1970-01-01 00:00:00.000000000 +0000 +++ node-rai-0.1.12/debian/patches/001-use-ssl-cert-snakeoil-as-default.patch 2016-02-24 09:26:12.000000000 +0000 @@ -0,0 +1,17 @@ +Author: Thorsten Alteholz +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/node-rai/cert/test-rai.key"), ++ cert: fs.readFileSync("/etc/node-rai/cert/test-rai.csr") + }; + + // Expose to the world diff -Nru node-rai-0.1.12/debian/patches/series node-rai-0.1.12/debian/patches/series --- node-rai-0.1.12/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ node-rai-0.1.12/debian/patches/series 2016-02-21 11:13:15.000000000 +0000 @@ -0,0 +1 @@ +001-use-ssl-cert-snakeoil-as-default.patch diff -Nru node-rai-0.1.12/debian/tests/control node-rai-0.1.12/debian/tests/control --- node-rai-0.1.12/debian/tests/control 2015-09-01 12:21:54.000000000 +0000 +++ node-rai-0.1.12/debian/tests/control 2016-02-24 09:36:57.000000000 +0000 @@ -1,2 +1,2 @@ Tests: require -Depends: node-rai +Depends: openssl, node-rai diff -Nru node-rai-0.1.12/debian/tests/require node-rai-0.1.12/debian/tests/require --- node-rai-0.1.12/debian/tests/require 2015-09-01 12:21:54.000000000 +0000 +++ node-rai-0.1.12/debian/tests/require 2016-02-24 09:46:23.000000000 +0000 @@ -1,3 +1,25 @@ -#!/bin/sh +#!/bin/bash + set -e + +OPENSSL=/usr/bin/openssl + +cleanup() { + [ -z "$DIR" ] || rm -rf "$DIR" +} + +#DIR=`mktemp -p . -d` +DIR=/etc/node-rai/cert +mkdir -p $DIR + +trap cleanup EXIT ERR + +$OPENSSL genrsa -passout pass:blubber -des3 -out $DIR/test-rai.key 1024 &> /dev/null +$OPENSSL req -passin pass:blubber -passout pass:blubber -new -key $DIR/test-rai.key -out $DIR/test-rai.csr -batch &> /dev/null +$OPENSSL x509 -passin pass:blubber -req -days 365 -in $DIR/test-rai.csr -signkey $DIR/test-rai.key -out $DIR/test-rai.crt &> /dev/null + +ls -l $DIR + nodejs -e "require('rai');" + +exit 0