[Pkg-javascript-commits] [node-evp-bytestokey] 29/29: New upstream release
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Sep 8 09:56:51 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-evp-bytestokey.
commit 6ab180311e07d8ebb56875b6082dd577b3b96e73
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Sep 7 15:36:52 2017 +0200
New upstream release
---
debian/changelog | 6 ++++++
debian/control | 9 +++++++--
debian/copyright | 4 +++-
debian/rules | 9 +++++++--
debian/tests/control | 7 ++++++-
debian/tests/runtestsuite | 36 ++++++++++++++++++++++++++++--------
6 files changed, 57 insertions(+), 14 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9ea678b..5ab689e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-evp-bytestokey (1.0.3-1) unstable; urgency=medium
+
+ * New upstream version (Closes: #872580).
+
+ -- Bastien Roucariès <rouca at debian.org> Thu, 07 Sep 2017 11:59:43 +0200
+
node-evp-bytestokey (1.0.0-3) unstable; urgency=medium
* Fix autopkgtestsuite
diff --git a/debian/control b/debian/control
index 1ff8e21..e181e26 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,11 @@ Build-Depends:
, dh-buildinfo
, nodejs (>= 4.7)
, dpkg-dev (>= 1.17.14)
- , node-create-hash (>= 1.1.1) <!nocheck>
+ , node-md5.js (>= 1.3.4) <!nocheck>
+ , node-safe-buffer (>= 5.1.1) <!nocheck>
+ , node-bindings (>= 1.2.1) <!nocheck>
+ , node-nan (>= 2.4.0) <!nocheck>
+ , libssl1.0-dev <!nocheck>
, node-tape (>= 4.6) <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/crypto-browserify/EVP_BytesToKey
@@ -20,7 +24,8 @@ Architecture: all
Depends:
${misc:Depends}
, nodejs (>= 4.7)
- , node-create-hash (>= 1.1.1)
+ , node-md5.js (>= 1.3.4)
+ , node-safe-buffer (>= 5.1.1)
Description: secure key derivation algorithm in pure javascript
This package derives a key and IV using well known
cipher and message digest algorithm, thus creating secure IV and
diff --git a/debian/copyright b/debian/copyright
index 1f8a336..507de81 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -4,7 +4,9 @@ Upstream-Contact: https://github.com/crypto-browserify/EVP_BytesToKey/issues
Source: https://github.com/crypto-browserify/EVP_BytesToKey
Files: *
-Copyright: 2015 Calvin Metcalf <calvin.metcalf at gmail.com>
+Copyright: 2015-2017 Calvin Metcalf <calvin.metcalf at gmail.com>
+ 2015-2017 Kirill Fomichev <fanatid at ya.ru
+ 2016-2017 Daniel Cousens <dcousens at users.noreply.github.com>
License: Expat
Files: debian/*
diff --git a/debian/rules b/debian/rules
index 9a7c6a7..136c7b4 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,8 +10,9 @@
#override_dh_auto_build:
override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- nodejs test.js
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ V=1 node-gyp rebuild
+ tape test/*.js
else
@echo '**********************************************************'
@echo 'Skip test suite '
@@ -19,3 +20,7 @@ else
endif
+override_dh_auto_clean:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ V=1 node-gyp clean
+endif
diff --git a/debian/tests/control b/debian/tests/control
index e3b91d5..e11eb05 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -2,4 +2,9 @@ Tests: require
Depends: node-evp-bytestokey
Tests: runtestsuite
-Depends: node-evp-bytestokey, node-tape (>= 4.6)
+Depends: node-evp-bytestokey
+ , node-bindings (>= 1.2.1)
+ , node-nan (>= 2.4.0)
+ , libssl1.0-dev
+ , node-tape (>= 4.6)
+ , build-essential
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
index 7b11476..3c8970c 100755
--- a/debian/tests/runtestsuite
+++ b/debian/tests/runtestsuite
@@ -1,14 +1,34 @@
#!/bin/sh
set -e
-# notice the / at end in order to load this module
-PACKAGE='evp_bytestokey'
-SEDCMD="s,require\s*[(]\s*'[.]/,require('$PACKAGE,g"
+
+# for verbose make
+V=1
+export V
+
+PACKAGE="evp-bytestokey"
+SEDCMD="s,require(['][.][.]/?['],require('$PACKAGE',g"
tmpdir=$(mktemp -d)
trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
-cp test.js $tmpdir/test.js
-echo 'test.js' | \
- xargs -n1 \
- sh -c 'set -e; echo "TESTING: $3"; sed "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
-nodejs $tmpdir/test.js
+sed_move_to_stderr() {
+ sed -e "/$1/w /dev/stderr" -e "/$1/d"
+}
+
+
+cp -r test "$tmpdir"
+cp binding.gyp "$tmpdir"
+cp -r build "$tmpdir"
+cp package.json "$tmpdir"
+
+
+cd "$tmpdir"
+sed -i "s,require('[.][.]/*,require('$PACKAGE,g" test/index.js
+sed -i "s/require('[.][.]')/require('$PACKAGE')/g" binding.gyp
+exec 5>&1
+exec 3>&1
+error_gyp=$( ( ( (node-gyp clean && node-gyp rebuild) 2>&1 >&3 3>&- ; echo $? >&4) | sed_move_to_stderr 'it worked if it ends' 2>&1 >&3 3>&- ) 4>&1 >&5)
+exec 3>&-
+exec 5>&-
+test "X$error_gyp" = "X0"
+tape test/*.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-evp-bytestokey.git
More information about the Pkg-javascript-commits
mailing list