[Pkg-javascript-commits] [node-browserify-aes] 01/01: Improve packaging
Bastien Roucariès
rouca at moszumanska.debian.org
Fri Sep 8 09:56:23 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browserify-aes.
commit 7c38b8bebc2eb68a5871d62d50acf117d78cf09f
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date: Thu Sep 7 21:52:55 2017 +0200
Improve packaging
---
debian/changelog | 6 ++++++
debian/control | 10 ++++++----
debian/install | 14 +++-----------
debian/tests/control | 5 ++++-
debian/tests/require | 2 +-
debian/tests/runtestsuite | 15 +++++++++++++++
6 files changed, 35 insertions(+), 17 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b4d7767..94a5565 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+node-browserify-aes (1.0.8-1) unstable; urgency=medium
+
+ * New upstream version
+
+ -- Bastien Roucariès <rouca at debian.org> Thu, 07 Sep 2017 16:33:35 +0200
+
node-browserify-aes (1.0.6-1) unstable; urgency=low
* Initial release (Closes: #862339)
diff --git a/debian/control b/debian/control
index cefd9f3..936b7c7 100644
--- a/debian/control
+++ b/debian/control
@@ -9,10 +9,11 @@ Build-Depends:
, dh-buildinfo
, nodejs (>= 4.1)
, node-create-hash (>= 1.1.0) <!nocheck>
- , node-evp-bytestokey (>= 1.0.0) <!nocheck>
+ , node-evp-bytestokey (>= 1.0.3) <!nocheck>
, node-cipher-base (>= 1.0.0) <!nocheck>
, node-inherits (>= 2.0.1) <!nocheck>
- , node-buffer-xor (>= 1.0.2) <!nocheck>
+ , node-buffer-xor (>= 1.0.3) <!nocheck>
+ , node-safe-buffer (>= 5.0.1) <!nocheck>
, node-tape (>=4.6) <!nocheck>
Standards-Version: 3.9.8
Homepage: https://github.com/crypto-browserify/browserify-aes
@@ -25,10 +26,11 @@ Depends:
${misc:Depends}
, nodejs (>= 4.1)
, node-create-hash (>= 1.1.0)
- , node-evp-bytestokey (>= 1.0.0)
+ , node-evp-bytestokey (>= 1.0.3)
, node-cipher-base (>= 1.0.0)
, node-inherits (>= 2.0.1)
- , node-buffer-xor (>= 1.0.2)
+ , node-buffer-xor (>= 1.0.3)
+ , node-safe-buffer (>= 5.0.1)
Description: AES implementation written in pure javascript
The Advanced Encryption Standard (AES), also known by its original
name Rijndael is an algorithm for the encryption of data
diff --git a/debian/install b/debian/install
index 8e299f9..71c0e3c 100644
--- a/debian/install
+++ b/debian/install
@@ -1,12 +1,4 @@
-index.js usr/lib/nodejs/browserify-aes/
-browser.js usr/lib/nodejs/browserify-aes/
-encrypter.js usr/lib/nodejs/browserify-aes/
-decrypter.js usr/lib/nodejs/browserify-aes/
-modes usr/lib/nodejs/browserify-aes/
-aes.js usr/lib/nodejs/browserify-aes/
-streamCipher.js usr/lib/nodejs/browserify-aes/
-authCipher.js usr/lib/nodejs/browserify-aes/
-modes.js usr/lib/nodejs/browserify-aes/
-ghash.js usr/lib/nodejs/browserify-aes/
-package.json usr/lib/nodejs/browserify-aes/
+*.js usr/lib/nodejs/browserify-aes/
+modes usr/lib/nodejs/browserify-aes/
+package.json usr/lib/nodejs/browserify-aes/
diff --git a/debian/tests/control b/debian/tests/control
index 6357e2f..cc3bb22 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -1,2 +1,5 @@
Tests: require
-Depends: node-browserify-aes
+Depends: node-browserify-aes, nodejs (>= 6)
+
+Tests: runtestsuite
+Depends: node-browserify-aes, node-tape (>= 4.6)
diff --git a/debian/tests/require b/debian/tests/require
index d45668f..7462cf3 100644
--- a/debian/tests/require
+++ b/debian/tests/require
@@ -1,3 +1,3 @@
#!/bin/sh
set -e
-nodejs -e "require('browserify-aes');"
+node -e "require('browserify-aes');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..8df06ef
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,15 @@
+#!/bin/sh
+set -e
+# notice the / at end in order to load this module
+PACKAGE='browserify-aes'
+SEDCMD="s,require\s*[(]\s*'[.][.],require('$PACKAGE,g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test "$tmpdir"
+find test/ -name '*.js' -print0 |
+ xargs -0 -n1 \
+ sh -c 'set -e; echo "TESTING: $3"; sed -e "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+cd "$tmpdir"
+tape test/*.js
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browserify-aes.git
More information about the Pkg-javascript-commits
mailing list