[Pkg-javascript-commits] [node-foreground-child] 64/69: First debianization

Bastien Roucariès rouca at moszumanska.debian.org
Fri Aug 25 11:43:08 UTC 2017


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

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

commit 336ad31dda244a1efb6c4eb8df2d94ac157ed6f7
Author: Bastien ROUCARIÈS <roucaries.bastien at gmail.com>
Date:   Sun Aug 20 16:19:32 2017 +0200

    First debianization
---
 debian/changelog          |  6 ++++++
 debian/compat             |  1 +
 debian/control            | 35 +++++++++++++++++++++++++++++++++++
 debian/copyright          | 26 ++++++++++++++++++++++++++
 debian/docs               |  1 +
 debian/install            |  2 ++
 debian/rules              | 17 +++++++++++++++++
 debian/tests/control      |  5 +++++
 debian/tests/require      |  3 +++
 debian/tests/runtestsuite | 15 +++++++++++++++
 debian/watch              |  5 +++++
 11 files changed, 116 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..6d37362
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-foreground-child (1.5.6-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #nnnn)
+
+ -- Bastien Roucariès <rouca at debian.org>  Sun, 20 Aug 2017 15:26:16 +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..dc46ce3
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,35 @@
+Source: node-foreground-child
+Section: web
+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
+ , dpkg-dev (>= 1.17.14)
+ , node-tap (>= 8.0.0) <!nocheck>
+Standards-Version: 4.0.1
+Homepage: https://github.com/tapjs/foreground-child#readme
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/node-foreground-child.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/node-foreground-child.git
+
+Package: node-foreground-child
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+ , node-signal-exit (>= 3.0.0)
+ , node-cross-spawn (>= 4)
+Description: helper running a child process as a foreground process
+ This Node.js module emulate simple control group in pure javacript.
+ It runs a child process as foreground process redirecting output
+ to stdout and exiting main process as soon as child exist.
+ .
+ This module could be used for implementating TAP test
+ for Node.js.
+ .
+ TAP is a simple text-based interface between testing modules
+ implemented in many popular languages.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..d6364c0
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: foreground-child
+Upstream-Contact: https://github.com/tapjs/foreground-child/issues
+Source: https://github.com/tapjs/foreground-child#readme
+
+Files: *
+Copyright: 2015-2017 Isaac Z. Schlueter <i at izs.me> (http://blog.izs.me/)
+License: ISC
+
+Files: debian/*
+Copyright: 2017 Bastien Roucariès <rouca at debian.org>
+License: ISC
+
+License: ISC
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice appear in all copies.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 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..0574d3b
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/foreground-child/
+index.js usr/lib/nodejs/foreground-child/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..789be3e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,17 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+	tap -R spec test/*.js
+else
+	@echo '**********************************************************'
+	@echo 'Skip test suite                                           '
+	@echo '**********************************************************'
+endif
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..4917cc3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,5 @@
+Tests: require
+Depends: node-foreground-child
+
+Test: runtestsuite
+Depends: node-foreground-child, node-tap (>= 8.0.0)
\ No newline at end of file
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..c36d932
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('foreground-child');"
diff --git a/debian/tests/runtestsuite b/debian/tests/runtestsuite
new file mode 100755
index 0000000..793f47e
--- /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='foreground-child'
+SEDCMD="s,require\s*[(]\s*'[.][.]/?([^']*)'\s*[)],require('$PACKAGE/\1'),g"
+
+tmpdir=$(mktemp -d)
+trap 'rm -rf "$tmpdir"' EXIT INT TERM HUP
+
+cp -r test/ $tmpdir/test
+find test/ -name '*.js' -print0 | \
+    xargs -0 -n1  \
+	  sh -c 'set -e; echo "Create: $3"; sed -E "$1" < "$3" > "$2/$3"' sedtape "$SEDCMD" "$tmpdir"
+
+tap -R spec test/*.js
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..9255af8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,5 @@
+version=3
+opts=\
+dversionmangle=s/\+(debian|dfsg|ds|deb)(\.\d+)?$//,\
+filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-foreground-child-$1.tar.gz/ \
+ https://github.com/tapjs/foreground-child/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list