[Pkg-javascript-commits] [sockjs-client] 432/434: Add Debian build rules.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:30 UTC 2014


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

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 56eb887e0528c4867fbc68263379206abc6ab5b7
Author: Tonnerre LOMBARD <tonnerre at ancient-solutions.com>
Date:   Tue Dec 31 22:14:15 2013 +0100

    Add Debian build rules.
---
 debian/changelog                     |  5 ++++
 debian/compat                        |  1 +
 debian/control                       | 28 ++++++++++++++++++++++
 debian/copyright                     | 45 ++++++++++++++++++++++++++++++++++++
 debian/docs                          |  2 ++
 debian/install                       |  2 ++
 debian/patches/fix-coffee-path.patch | 42 +++++++++++++++++++++++++++++++++
 debian/patches/series                |  1 +
 debian/rules                         | 12 ++++++++++
 debian/source/format                 |  1 +
 debian/watch                         |  3 +++
 11 files changed, 142 insertions(+)

diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..3b3d06e
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+sockjs-client (0.3.4-1) unstable; urgency=low
+
+  * Initial release. Closes: #733821
+
+ -- Tonnerre LOMBARD <tonnerre at ancient-solutions.com>  Tue, 31 Dec 2013 15:15:11 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..c22b646
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: sockjs-client
+Section: web
+Priority: optional
+Maintainer: Tonnerre LOMBARD <tonnerre at ancient-solutions.com>
+Build-Depends: coffeescript, debhelper (>= 9), libjs-optparse, node-static,
+ node-uglify, nodejs
+Standards-Version: 3.9.5
+Homepage: https://github.com/sockjs/sockjs-client
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/sockjs-client.git
+Vcs-Git: git://anonscm.debian.org/pkg-javascript/sockjs-client.git
+
+Package: libjs-sockjs
+Architecture: all
+Depends: ${misc:Depends}
+Recommends: javascript-common
+Description: WebSocket emulation - Javascript client
+ SockJS is a browser JavaScript library that provides a WebSocket-like object.
+ SockJS gives you a coherent, cross-browser, Javascript API which creates a low
+ latency, full duplex, cross-domain communication channel between the browser
+ and the web server.
+ .
+ Under the hood SockJS tries to use native WebSockets first. If that fails it
+ can use a variety of browser-specific transport protocols and presents them
+ through WebSocket-like abstractions.
+ .
+ SockJS is intended to work for all modern browsers and in environments which
+ don't support WebSocket protocol, for example behind restrictive corporate
+ proxies.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3ffdcad
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,45 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: sockjs-client
+Source: https://github.com/sockjs/sockjs-client
+
+Files: *
+Copyright: 2011-2013 VMware, Inc.
+License: Expat
+
+Files: lib/trans-jsonp-receiver.js
+Copyright: 2010 Guillermo Rauch <guillermo at learnboost.com>,
+ Julian Aubourg <j at ubourg.net>, VMware, Inc.
+License: Expat
+
+Files: lib/info.js lib/utils.js
+Copyright: Douglas Crockford <douglas at crockford.com>, VMware, Inc.
+License: public-domain
+
+Files: lib/trans-jsonp-polling.js lib/trans-sender.js
+ tests/html/example-cursors.html tests/html/smoke-reconnect.html
+ tests/html/smoke-latency.html
+Copyright: Julian Aubourg <j at ubourg.net>, VMware, Inc.
+License: Expat
+
+Files: debian/*
+Copyright: 2013 Tonnerre Lombard <tonnerre at ancient-solutions.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/docs b/debian/docs
new file mode 100644
index 0000000..c1dde37
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1,2 @@
+README.md
+LICENSE-MIT-SockJS
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..590ea08
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+sockjs.js		/usr/share/javascript/sockjs
+sockjs.min.js		/usr/share/javascript/sockjs
diff --git a/debian/patches/fix-coffee-path.patch b/debian/patches/fix-coffee-path.patch
new file mode 100644
index 0000000..dc10a05
--- /dev/null
+++ b/debian/patches/fix-coffee-path.patch
@@ -0,0 +1,42 @@
+Description: Fix coffee path and nodejs binary name
+ sockjs, for some reason, has a default coffee path set to
+ ./node_modules/.bin, which is not what most people have. We use the
+ coffeescript binary shipped with Debian so we want to simply set this
+ to "coffee".
+ .
+ Also, the binary of nodejs is called nodejs under Debian, fix that in
+ the Makefile.
+Author: Tonnerre LOMBARD <tonnerre at ancient-solutions.com>
+Forwarded: not-needed
+Last-Update: 2013-12-31
+
+Index: sockjs/Makefile
+===================================================================
+--- sockjs.orig/Makefile	2013-12-31 15:41:41.000000000 +0100
++++ sockjs/Makefile	2013-12-31 19:26:42.848006583 +0100
+@@ -1,6 +1,6 @@
+ .PHONY: all build tests test serve clean
+ 
+-COFFEE:=./node_modules/.bin/coffee
++COFFEE:=coffee
+ 
+ all: sockjs.js
+ 
+@@ -31,7 +31,7 @@
+ 
+ test: tests
+ tests: build_tests
+-	node tests/server.js
++	nodejs tests/server.js
+ 
+ 
+ serve:
+@@ -98,7 +98,7 @@
+ 	(cd ../sockjs-client-gh-pages;	\
+ 		git add $(ARTIFACTS); \
+ 		git commit -m "Release $(VER)"; \
+-		node generate_index.js > index.html; \
++		nodejs generate_index.js > index.html; \
+ 		git add index.html; \
+ 		git commit --amend -m "Release $(VER)";)
+ 	@echo ' [*] Now run: '
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..5567c73
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-coffee-path.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ce9c7b5
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,12 @@
+#!/usr/bin/make -f
+
+export NODE_PATH=/usr/lib/nodejs/optparse
+
+# We cannot run the tests, we'd need sockjs-node for that.
+override_dh_auto_test:
+
+override_dh_auto_build:
+	make build
+
+%:
+	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..dabe9fd
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+opts=uversionmangle=s/v?(\d)[_\.\-\+]?((RC|rc|pre|dev|beta|alpha)\d*)$/$1~$2/ \
+ https://github.com/sockjs/sockjs-client/tags .*/v(\d\S*)\.tar\.gz 

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



More information about the Pkg-javascript-commits mailing list