[Pkg-javascript-commits] [node-tosource] 02/02: Initial debianization

Jérémy Lal kapouer at moszumanska.debian.org
Thu Nov 5 12:08:47 UTC 2015


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

kapouer pushed a commit to branch master
in repository node-tosource.

commit 24f753009f422dfad7a38af8e67aff38042839ff
Author: Jérémy Lal <kapouer at melix.org>
Date:   Thu Nov 5 13:08:38 2015 +0100

    Initial debianization
---
 debian/changelog     |  6 ++++++
 debian/compat        |  1 +
 debian/control       | 29 +++++++++++++++++++++++++++++
 debian/copyright     | 27 +++++++++++++++++++++++++++
 debian/docs          |  1 +
 debian/install       |  2 ++
 debian/rules         | 18 ++++++++++++++++++
 debian/source/format |  1 +
 debian/tests/control |  2 ++
 debian/tests/require |  3 +++
 debian/watch         |  5 +++++
 11 files changed, 95 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..862f094
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-tosource (1.0.0-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #nnnn)
+
+ -- Jérémy Lal <kapouer at melix.org>  Thu, 05 Nov 2015 12:51:02 +0100
+
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..f9d24aa
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,29 @@
+Source: node-tosource
+Section: web
+Priority: optional
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Jérémy Lal <kapouer at melix.org>
+Build-Depends:
+ debhelper (>= 8)
+ , dh-buildinfo
+ , nodejs
+Standards-Version: 3.9.6
+Homepage: https://github.com/marcello3d/node-tosource
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-tosource.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-tosource.git
+
+Package: node-tosource
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Description: converts JavaScript objects back to source - Node.js module
+ This module provides a quick and simple way to serialize Node.js code.
+ It supports:
+ - basic types like strings, integers, dates and regular expressions
+ - functions without closures
+ - circular reference detection
+ .
+ This module is not meant to serialize complex code.
+ .
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..22abf44
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: tosource
+Upstream-Contact: https://github.com/marcello3d/node-tosource/issues
+Source: https://github.com/marcello3d/node-tosource
+
+Files: *
+Copyright: 2011-2015 Marcello Bastéa-Forte <marcello at cellosoft.com> (http://marcello.cellosoft.com/)
+License: zlib
+ This software is provided 'as-is', without any express or implied
+ warranty. In no event will the authors be held liable for any damages
+ arising from the use of this software.
+ .
+ Permission is granted to anyone to use this software for any purpose,
+ including commercial applications, and to alter it and redistribute it
+ freely, subject to the following restrictions:
+ .
+ 1. The origin of this software must not be misrepresented; you must not
+ claim that you wrote the original software. If you use this software
+ in a product, an acknowledgment in the product documentation would be
+ appreciated but is not required.
+ .
+ 2. Altered source versions must be plainly marked as such, and must not be
+ misrepresented as being the original software.
+ .
+ 3. This notice may not be removed or altered from any source
+ distribution.
+
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..ad1245d
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+Readme.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..1efad86
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/tosource/
+tosource.js usr/lib/nodejs/tosource/
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..9d2c80c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,18 @@
+#!/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.js
+
+override_dh_installchangelogs:
+	dh_installchangelogs -k HISTORY.md
+
+
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..a86ed26
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: require
+Depends: node-tosource
diff --git a/debian/tests/require b/debian/tests/require
new file mode 100644
index 0000000..911a2f6
--- /dev/null
+++ b/debian/tests/require
@@ -0,0 +1,3 @@
+#!/bin/sh
+set -e
+nodejs -e "require('tosource');"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..68c3492
--- /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-tosource-$1.tar.gz/ \
+ https://github.com/marcello3d/node-tosource/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list