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

Andrew Kelley andrewrk-guest at moszumanska.debian.org
Sat Jul 5 00:49:17 UTC 2014


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

andrewrk-guest pushed a commit to branch master
in repository node-multiparty.

commit abf53297a3858d91115f4c60f5597348d5cd2930
Author: Jérémy Lal <kapouer at melix.org>
Date:   Fri Oct 18 00:18:07 2013 +0200

    Initial debianization
---
 debian/changelog                          |  5 +++++
 debian/compat                             |  1 +
 debian/control                            | 27 +++++++++++++++++++++++++++
 debian/copyright                          | 27 +++++++++++++++++++++++++++
 debian/docs                               |  1 +
 debian/examples                           |  1 +
 debian/install                            |  1 +
 debian/patches/2001_readable_stream.patch | 14 ++++++++++++++
 debian/patches/2002_stream_counter.patch  | 29 +++++++++++++++++++++++++++++
 debian/patches/series                     |  2 ++
 debian/rules                              |  8 ++++++++
 debian/source/format                      |  1 +
 debian/watch                              |  3 +++
 13 files changed, 120 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e83b26b
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+node-multiparty (2.2.0-1) unstable; urgency=low
+
+  * Initial release (Closes: #725215)
+
+ -- Jérémy Lal <kapouer at melix.org>  Fri, 18 Oct 2013 00:18:16 +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..f8f0abf
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,27 @@
+Source: node-multiparty
+Section: web
+Priority: extra
+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.0.0)
+ , dh-buildinfo
+ , nodejs
+Standards-Version: 3.9.4
+Homepage: https://github.com/superjoe30/node-multiparty
+Vcs-Git: git://anonscm.debian.org/collab-maint/node-multiparty.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-multiparty.git
+
+Package: node-multiparty
+Architecture: all
+Depends:
+ ${misc:Depends}
+ , nodejs
+Description: Multipart/form-data parser for Node.js
+ node-multiparty is a well-tested multipart/form-data parser for
+ requests sent by HTTP clients. Files uploads are properly handled
+ as streams, and are not written to disk by default.
+ .
+ This module is a fork of node-formidable.
+ .
+ Node.js is an event-based server-side javascript engine.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..6674e75
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,27 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: multiparty
+
+Files: *
+Copyright: 2011-2013 Felix Geisendörfer, Andrew Kelley
+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/examples b/debian/examples
new file mode 100644
index 0000000..4cd66f8
--- /dev/null
+++ b/debian/examples
@@ -0,0 +1 @@
+examples/*
\ No newline at end of file
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..61334fe
--- /dev/null
+++ b/debian/install
@@ -0,0 +1 @@
+index.js usr/lib/nodejs/multiparty
diff --git a/debian/patches/2001_readable_stream.patch b/debian/patches/2001_readable_stream.patch
new file mode 100644
index 0000000..d530186
--- /dev/null
+++ b/debian/patches/2001_readable_stream.patch
@@ -0,0 +1,14 @@
+Description: readable-stream is only needed for nodejs 0.8 compat
+Author: Jérémy Lal <kapouer at melix.org>
+Forwarded: not-needed
+Last-Update: 2013-10-18
+--- a/index.js
++++ b/index.js
+@@ -1,6 +1,6 @@
+ exports.Form = Form;
+ 
+-var stream = require('readable-stream')
++var stream = require('stream')
+   , util = require('util')
+   , fs = require('fs')
+   , crypto = require('crypto')
diff --git a/debian/patches/2002_stream_counter.patch b/debian/patches/2002_stream_counter.patch
new file mode 100644
index 0000000..696f5a2
--- /dev/null
+++ b/debian/patches/2002_stream_counter.patch
@@ -0,0 +1,29 @@
+Description: add trivial StreamCounter implementation
+Author: Jérémy Lal <kapouer at melix.org>
+Forwarded: not-needed
+Last-Update: 2013-10-18
+--- a/index.js
++++ b/index.js
+@@ -7,7 +7,6 @@
+   , path = require('path')
+   , os = require('os')
+   , StringDecoder = require('string_decoder').StringDecoder
+-  , StreamCounter = require('stream-counter')
+ 
+ var START = 0
+   , START_BOUNDARY = 1
+@@ -616,3 +615,14 @@
+   return c | 0x20;
+ }
+ 
++function StreamCounter(options) {
++  stream.Writable.call(this, options);
++  this.bytes = 0;
++}
++util.inherits(StreamCounter, stream.Writable);
++
++StreamCounter.prototype._write = function(chunk, encoding, cb) {
++  this.bytes += chunk.length;
++  this.emit('progress');
++  cb();
++};
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..fb20673
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+2001_readable_stream.patch
+2002_stream_counter.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..218df65
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+	dh $@
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..0c1f2dd
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-multiparty-$1.tar.gz/ \
+https://github.com/superjoe30/node-multiparty/tags .*/archive/v?([\d\.]+).tar.gz	

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



More information about the Pkg-javascript-commits mailing list