debian/0000755000000000000000000000000012223557026007172 5ustar debian/watch0000644000000000000000000000023412026555444010225 0ustar version=3 opts=dversionmangle=s/\+ds\d// \ https://alioth.debian.org/~dapal/npmjs.php?id=bones \ http://registry.npmjs.org/bones/-/bones-(\d+[\d\.]*)\.tgz debian/links0000644000000000000000000000007412026555444010241 0ustar usr/lib/nodejs/bones/bones.js usr/lib/nodejs/bones/index.js debian/rules0000755000000000000000000000114712026555444010260 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 ifndef UPVER UPVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\ -f2 | cut -d- -f1 | cut -d+ -f1) endif %: dh $@ override_dh_install: dh_install dh_buildinfo get-orig-source: uscan \ --verbose \ --force-download \ --download-version $(UPVER) \ --rename \ --destdir . tar xvf node-bones_$(UPVER).orig.tar.gz rm -rf package/assets/jquery.js tar cf node-bones_$(UPVER)+ds1.orig.tar package/ gzip -9 node-bones_$(UPVER)+ds1.orig.tar rm -rf package/ node-bones_$(UPVER).orig.tar.gz debian/install0000644000000000000000000000037112026555444010567 0ustar bones.js usr/lib/nodejs/bones/ assets/debug.js usr/lib/nodejs/bones/assets/ client/ usr/lib/nodejs/bones/ commands/ usr/lib/nodejs/bones/ server/ usr/lib/nodejs/bones/ servers/ usr/lib/nodejs/bones/ shared/ usr/lib/nodejs/bones/ debian/examples0000644000000000000000000000001312026555444010730 0ustar examples/* debian/copyright0000644000000000000000000000470212026555444011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0 Upstream-Name: bones Files: * Copyright: © Development Seed License: BSD-3 Files: debian/* Copyright: © 2011-2012, David Paleino License: GPL-2.0+ License: BSD-3 Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: . * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. . * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . * Neither the name "Development Seed" nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. . THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. License: GPL-2.0+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. . You should have received a copy of the GNU General Public License along with this program. If not, see . On Debian systems, the complete text of the GNU General Public License version 2 can be found in "/usr/share/common-licenses/GPL-2". debian/docs0000644000000000000000000000001212026555444010041 0ustar README.md debian/source/0000755000000000000000000000000012026555444010475 5ustar debian/source/format0000644000000000000000000000001412026555444011703 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012026555444010624 5ustar debian/patches/02-migrate_to_nodejs.patch0000644000000000000000000000055212026555444015562 0ustar From: David Paleino Subject: migrate from node to nodejs Forwarded: not-needed --- examples/simple/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- node-bones.orig/examples/simple/index.js +++ node-bones/examples/simple/index.js @@ -1,4 +1,4 @@ -#!/usr/bin/env node +#!/usr/bin/nodejs var bones = require('bones') debian/patches/00-depend_on_systemwide_modules.patch0000644000000000000000000000113412026555444020021 0ustar From: David Paleino Subject: depend on system-wide node-jquery Origin: vendor Forwarded: no --- servers/Route.bones | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- node-bones.orig/servers/Route.bones +++ node-bones/servers/Route.bones @@ -12,7 +12,7 @@ var options = { // TODO: This should be moved to the initialize method! server.prototype.assets = { vendor: new mirror([ - require.resolve('bones/assets/jquery'), + require.resolve('jquery'), require.resolve('underscore'), require.resolve('backbone') ], { type: '.js' }), debian/patches/01-dont_use_package-json.patch0000644000000000000000000000135212026555444016326 0ustar From: David Paleino Subject: drop the need of package.json Origin: vendor Forwarded: no --- servers/Asset.bones | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- node-bones.orig/servers/Asset.bones +++ node-bones/servers/Asset.bones @@ -7,8 +7,7 @@ server = Bones.Server.extend({}); server.prototype.initialize = function(app) { app.directories.forEach(function(dir) { - var pkg = JSON.parse(fs.readFileSync(path.join(dir, 'package.json'), 'utf8')); - this.use('/assets/' + pkg.name, middleware['static']( + this.use('/assets/bones', middleware['static']( path.join(dir, 'assets'), { maxAge: env === 'production' ? 3600 * 1000 : 0 } // 1 hour )); debian/patches/series0000644000000000000000000000014012026555444012034 0ustar 00-depend_on_systemwide_modules.patch 01-dont_use_package-json.patch 02-migrate_to_nodejs.patch debian/compat0000644000000000000000000000000212026555444010373 0ustar 8 debian/control0000644000000000000000000000214512223557016010576 0ustar Source: node-bones Section: web Priority: extra Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Javascript Maintainers Uploaders: David Paleino Build-Depends: debhelper (>= 8~) , dh-buildinfo , nodejs Standards-Version: 3.9.4 Homepage: https://github.com/developmentseed/bones Vcs-Git: git://git.debian.org/collab-maint/node-bones.git Vcs-Browser: http://git.debian.org/?p=collab-maint/node-bones.git;a=summary Package: node-bones Architecture: any Depends: ${misc:Depends} , nodejs (>= 0.6.19~dfsg1-3~) , node-underscore , node-jquery , node-backbone , node-mirror , node-optimist , node-express Description: framework for using backbone.js on client and server for NodeJS Bones provides conventions for Backbone applications, and it allows most code to be shared on the server and the client. Bones exposes your Backbone routes as regular paths on the server so they can be accessed by non-JavaScript agents, while capable clients can enjoy the normal client-side Backbone experience. debian/changelog0000644000000000000000000000361612223557020011044 0ustar node-bones (2.0.1+ds1-4ubuntu1) saucy; urgency=low * Artificially build-depend on nodejs, to ensure that this package only builds on architectures where nodejs is available. -- Colin Watson Fri, 04 Oct 2013 16:26:07 +0100 node-bones (2.0.1+ds1-4) unstable; urgency=low * Fixed needed version of nodejs -- David Paleino Thu, 20 Sep 2012 11:00:16 +0200 node-bones (2.0.1+ds1-3) unstable; urgency=low * Migrate from node to nodejs (Closes: #686883) * Standards-Version bump to 3.9.4, no changes needed -- David Paleino Thu, 20 Sep 2012 10:43:47 +0200 node-bones (2.0.1+ds1-2) unstable; urgency=low * Drop (wrong) alternative dependency on libjs-backbone. -- David Paleino Thu, 12 Apr 2012 01:05:05 +0200 node-bones (2.0.1+ds1-1) unstable; urgency=low * New upstream version * Standards-Version bump to 3.9.3, no changes needed * Updated debian/copyright * Fix debian/watch version mangling -- David Paleino Thu, 22 Mar 2012 19:44:55 +0100 node-bones (2.0.0+ds1-2) unstable; urgency=low * Make Route.bones depend on systemwide node-jquery * Drop the need for package.json, which doesn't get installed * Fixed debian/watch to mangle Debian version -- David Paleino Wed, 02 Nov 2011 10:35:54 +0100 node-bones (2.0.0+ds1-1) unstable; urgency=low * Added debian/watch file * Implemented get-orig-source target to get rid of unused jquery.js file -- David Paleino Sun, 16 Oct 2011 22:20:16 +0200 node-bones (2.0.0-2) unstable; urgency=low * Package renamed to node-bones, due to new Debian Javascript Policy -- David Paleino Sat, 15 Oct 2011 23:47:59 +0200 node-bones (2.0.0-1) unstable; urgency=low * Initial release (Closes: #645188) -- David Paleino Thu, 13 Oct 2011 13:46:40 +0200