[Pkg-javascript-commits] [node-shasum] 20/23: First debianization

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:06:25 UTC 2017


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

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

commit 765d867ca066536be111296127361a0e7a44fbdc
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sun Apr 30 23:44:31 2017 +0200

    First debianization
---
 debian/changelog     |  8 ++++++++
 debian/compat        |  1 +
 debian/control       | 38 ++++++++++++++++++++++++++++++++++++++
 debian/copyright     | 34 ++++++++++++++++++++++++++++++++++
 debian/docs          |  1 +
 debian/install       |  2 ++
 debian/rules         | 16 ++++++++++++++++
 debian/tests/control |  2 ++
 debian/tests/require |  3 +++
 debian/watch         |  6 ++++++
 10 files changed, 111 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..dc6e2e9
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,8 @@
+node-shasum (1.0.2-1) UNRELEASED; urgency=low
+
+  [ FIX_ME debian author  Sat, 29 Apr 2017 12:19:18 +0200 ]
+  * Initial release (Closes: #nnnn)
+
+  [ bastien ]
+
+ -- bastien <bastien at portable2015-bastien.roucariès.eu>  Sat, 29 Apr 2017 12:19:28 +0200
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..9706bec
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: node-shasum
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: FIX_ME debian author
+Build-Depends:
+ debhelper (>= 10)
+ , dh-buildinfo
+ , nodejs (>= 4.7)
+ , dpkg-dev (>= 1.17.14)
+ , node-json-stable-stringify <!nocheck>
+ , node-sha.js (>= 2.4.4) <!nocheck>
+Standards-Version: 3.9.8
+Homepage: https://github.com/dominictarr/shasum
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-shasum.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-shasum.git
+
+Package: node-shasum
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs  (>= 4.7)
+ , node-json-stable-stringify
+ , node-sha.js (>= 2.4.4)
+Description: Pure javascript function that return the sha1sum
+ This package emulate the well know function sha1sum of Node.js in pure
+ javascript allowing one to use this function in browser context.
+ .
+ In cryptography field, SHA-1 (Secure Hash Algorithm 1) is a cryptographic
+ hash function designed by the United States National Security Agency
+ and is a U.S. Federal Information Processing Standard published by the
+ United States NIST, SHA-1 produces a 160-bit (20-byte) hash value
+ known as a message digest. A SHA-1 hash value is typically rendered as
+ a hexadecimal number, 40 digits long.
+ .
+ This a dependency of browserify
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..cf30e3b
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,34 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: shasum
+Upstream-Contact: https://github.com/dominictarr/shasum/issues
+Source: https://github.com/dominictarr/shasum
+
+Files: *
+Copyright: 2017 'Dominic Tarr' <dominic.tarr at gmail.com> (http://dominictarr.com)
+License: Expat
+
+Files: debian/*
+Copyright: 2017 FIX_ME debian author
+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..2777aba
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/shasum/
+*.js usr/lib/nodejs/shasum/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..f3930e2
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/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:
+	nodejs test/index.js
+	nodejs test/index.js browser
+
+
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..143fa08
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-shasum
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..323c212
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('shasum');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..70831e3
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,6 @@
+version=4
+# upstream does not tag
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*=// \
+ http://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=npmjs/shasum .*=shasum-(\d.*)\.(?:tgz|tar\.(?:gz|bz2|xz))

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



More information about the Pkg-javascript-commits mailing list