[Pkg-javascript-commits] [node-ipaddr.js] 02/02: initial debian commit

Leo Iannacone l3on-guest at moszumanska.debian.org
Sat Jul 5 10:18:49 UTC 2014


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

l3on-guest pushed a commit to branch master
in repository node-ipaddr.js.

commit e9f218e6d606aea1a14350c5c12f76f912da4b49
Author: Leo Iannacone <l3on at ubuntu.com>
Date:   Sat Jul 5 12:18:21 2014 +0200

    initial debian commit
---
 debian/changelog              |  6 ++++++
 debian/compat                 |  1 +
 debian/control                | 48 +++++++++++++++++++++++++++++++++++++++++++
 debian/copyright              | 37 +++++++++++++++++++++++++++++++++
 debian/libjs-ipaddr.docs      |  1 +
 debian/libjs-ipaddr.install   |  2 ++
 debian/node-ipaddr.js.docs    |  1 +
 debian/node-ipaddr.js.install |  2 ++
 debian/patches/cakefile.patch | 30 +++++++++++++++++++++++++++
 debian/patches/series         |  1 +
 debian/rules                  | 17 +++++++++++++++
 debian/source/format          |  1 +
 debian/watch                  |  5 +++++
 13 files changed, 152 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..606b7b8
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,6 @@
+node-ipaddr.js (0.1.2+dfsg-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #753804)
+
+ -- Leo Iannacone <l3on at ubuntu.com>  Wed, 05 Jul 2014 12:14:52 +0200
+
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..09f6a27
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,48 @@
+Source: node-ipaddr.js
+Section: web
+Priority: extra
+Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
+Uploaders: Leo Iannacone <l3on at ubuntu.com>
+Build-Depends:
+ debhelper (>= 8)
+ , dh-buildinfo
+ , nodejs
+ , coffeescript
+ , node-uglify
+Standards-Version: 3.9.5
+Homepage: https://github.com/whitequark/ipaddr.js
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-ipaddr.js.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/node-ipaddr.js.git
+
+Package: node-ipaddr.js
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Description: utility to manipulate IPv4 and IPv6 addresses - Node.js module
+ ipaddr.js is a small library for manipulating IP addresses in JavaScript
+ environments. It runs on both CommonJS runtimes, e.g. Node.js, and in a
+ web browser.
+ .
+ ipaddr.js allows to verify and parse string representation of an IP address,
+ match it against a CIDR range or range list, determine if it falls
+ into some reserved ranges (examples include loopback and private ranges),
+ and convert between IPv4 and IPv4-mapped IPv6 addresses.
+ .
+ Node.js is an event-based server-side JavaScript engine.
+
+Package: libjs-ipaddr
+Architecture: all
+Recommends: javascript-common
+Depends:
+ ${misc:Depends}
+Description: utility to manipulate IPv4 and IPv6 addresses - JavaScript library
+ ipaddr.js is a small library for manipulating IP addresses in JavaScript
+ environments. It runs on both CommonJS runtimes, e.g. Node.js, and in a
+ web browser.
+ .
+ ipaddr.js allows to verify and parse string representation of an IP address,
+ match it against a CIDR range or range list, determine if it falls
+ into some reserved ranges (examples include loopback and private ranges),
+ and convert between IPv4 and IPv4-mapped IPv6 addresses..
+ Node.js is an event-based server-side JavaScript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..c1b6d89
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,37 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: ipaddr.js
+Upstream-Contact: https://github.com/whitequark/ipaddr.js/issues
+Source: https://github.com/whitequark/ipaddr.js
+ Repackaged, excluding pre-compiled JavaScript files
+Files-Excluded: lib/ipaddr.js
+ ipaddr.min.js
+
+Files: *
+Copyright: 2011 Peter Zotov <whitequark at whitequark.org>
+License: Expat
+
+Files: debian/*
+Copyright: 2014 Leo Iannacone <l3on at ubuntu.com>
+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/libjs-ipaddr.docs b/debian/libjs-ipaddr.docs
new file mode 120000
index 0000000..c7aaf72
--- /dev/null
+++ b/debian/libjs-ipaddr.docs
@@ -0,0 +1 @@
+node-ipaddr.js.docs
\ No newline at end of file
diff --git a/debian/libjs-ipaddr.install b/debian/libjs-ipaddr.install
new file mode 100644
index 0000000..b5a4293
--- /dev/null
+++ b/debian/libjs-ipaddr.install
@@ -0,0 +1,2 @@
+lib/ipaddr.js usr/share/javascript/ipaddr/
+ipaddr.min.js usr/share/javascript/ipaddr/
diff --git a/debian/node-ipaddr.js.docs b/debian/node-ipaddr.js.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/node-ipaddr.js.docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/node-ipaddr.js.install b/debian/node-ipaddr.js.install
new file mode 100644
index 0000000..7ba3747
--- /dev/null
+++ b/debian/node-ipaddr.js.install
@@ -0,0 +1,2 @@
+package.json usr/lib/nodejs/ipaddr.js/
+lib usr/lib/nodejs/ipaddr.js/
diff --git a/debian/patches/cakefile.patch b/debian/patches/cakefile.patch
new file mode 100644
index 0000000..55e7c89
--- /dev/null
+++ b/debian/patches/cakefile.patch
@@ -0,0 +1,30 @@
+Description: Do not require nodeunit during build. It is still not present
+ in Debian and it is needed only for tests.
+ .
+ Also do not call compress internally. It uses uglify version 2.x while
+ actually in Debian there is only uglify version 1.x. Minifying will be
+ called by debian/rules.
+Author: Leo Iannacone <l3on at ubuntu.com>
+Forwarded: not-needed
+
+---
+ Cakefile |    3 ---
+ 1 file changed, 3 deletions(-)
+
+--- a/Cakefile
++++ b/Cakefile
+@@ -1,14 +1,11 @@
+ fs           = require 'fs'
+ CoffeeScript = require 'coffee-script'
+-nodeunit     = require 'nodeunit'
+ UglifyJS     = require 'uglify-js'
+
+ task 'build', 'build the JavaScript files from CoffeeScript source', build = (cb) ->
+   source = fs.readFileSync 'src/ipaddr.coffee'
+   fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString()
+
+-  invoke 'test'
+-  invoke 'compress'
+
+ task 'test', 'run the bundled tests', (cb) ->
+   nodeunit.reporters.default.run ['test']
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..725cc5d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+cakefile.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..1fd60e7
--- /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_clean:
+	rm -f lib/ipaddr.js ipaddr.min.js
+
+override_dh_auto_build:
+	cake.coffeescript build
+	uglifyjs -o ipaddr.min.js lib/ipaddr.js
+
+#override_dh_auto_test:
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/watch b/debian/watch
new file mode 100644
index 0000000..a3cae73
--- /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-ipaddr.js-$1.tar.gz/ \
+ https://github.com/whitequark/ipaddr.js/tags .*/archive/v?([\d\.]+).tar.gz

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



More information about the Pkg-javascript-commits mailing list