[Pkg-javascript-commits] [node-randomfill] 46/47: Debianization

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:52:54 UTC 2017


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

rouca pushed a commit to branch master
in repository node-randomfill.

commit f7e2dfbe20af902a85f0f0ca79f52fe599ba3409
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Fri Dec 8 14:02:04 2017 +0100

    Debianization
---
 debian/changelog          |  6 ++++++
 debian/compat             |  1 +
 debian/control            | 33 +++++++++++++++++++++++++++++++++
 debian/copyright          | 35 +++++++++++++++++++++++++++++++++++
 debian/docs               |  1 +
 debian/install            |  3 +++
 debian/rules              | 15 +++++++++++++++
 debian/tests/control      |  7 +++++++
 debian/tests/require      |  3 +++
 debian/tests/runtestsuite | 17 +++++++++++++++++
 debian/watch              |  5 +++++
 11 files changed, 126 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..7cbc28c
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-randomfill (1.0.3-1) unstable; urgency=low
+
+  * Initial release (Closes: #883398)
+
+ -- Bastien Roucariès <rouca at debian.org>  Fri, 08 Dec 2017 13:57:26 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..f599e28
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+10
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..8ba35e2
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,33 @@
+Source: node-randomfill
+Section: javascript
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Bastien Roucariès <rouca at debian.org>
+Build-Depends:
+ debhelper (>= 10)
+ , dh-buildinfo
+ , nodejs (>= 6) <!nocheck>
+ , node-randombytes (>= 2.0.5) <!nocheck>
+ , node-safe-buffer (>= 5.1.0) <!nocheck>
+ , node-tape (>= 4.6.3) <!nocheck>
+ , node-tap (>= 8) <!nocheck>
+Standards-Version: 4.1.1
+Homepage: https://github.com/crypto-browserify/randombytes
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-randomfill.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-randomfill.git
+
+Package: node-randomfill
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+ , node-randombytes (>= 2.0.5)
+ , node-safe-buffer (>= 5.1.0)
+Description: Pure javascript buffer filling with random value
+ This package allows one to fill a buffer with random value using well
+ known Node.js API in browser context
+ .
+ This a dependency of browserify. Browserify is a javaScript tool that allows
+ developers to write Node.js-style modules that compile for use in the browser.
+ .
+ Node.js is an event-based server-side JavaScript engine
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..eac2d77
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: randomfill
+Upstream-Contact: https://github.com/crypto-browserify/randombytes/issues
+Source: https://github.com/crypto-browserify/randombytes
+
+Files: *
+Copyright: 2017  Calvin Metcalf <cmetcalf at appgeo.com>
+ 2017 crypto-browserify (team)
+License: Expat
+
+Files: debian/*
+Copyright: 2017 Bastien Roucariès <rouca at debian.org>
+License: Expat
+
+License: Expat
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..3f56431
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,3 @@
+package.json usr/lib/nodejs/randomfill/
+browser.js usr/lib/nodejs/randomfill/
+index.js usr/lib/nodejs/randomfill/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..be8de7a
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+#override_dh_auto_build:
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+	tap -R spec test.js
+endif
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..2c26303
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,7 @@
+Tests: require
+Depends: node-randomfill, nodejs (>= 6)
+
+Tests: runtestsuite
+Depends: node-randomfill, nodejs (>= 6)
+ , node-tape (>= 4.6.3)
+ , node-tap (>= 8)
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..ca3121b
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+node -e "require('randomfill');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..6ad4616
--- /dev/null
+++ b/debian/tests/runtestsuite
@@ -0,0 +1,17 @@
+#!/bin/sh
+set -e
+# adapted from node-bn.js
+# notice the / at end in order to load this module
+PACKAGE='randomfill'
+SEDCMD="s,require\s*[(]\s*'[.]/?([^']*)'\s*[)],require('$PACKAGE/\1'),g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp test.js "$tmpdir"
+find . -name 'test.js' -print0 | \
+    xargs -0 -n1  \
+	  sh -c 'set -e; echo "Create: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+
+cd "$tmpdir"
+tap -R spec test.js
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..0d13943
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=4
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-tap-$1.tar.gz/ \
+ https://github.com/crypto-browserify/randomfill/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list