debian/0000755000000000000000000000000012232754506007174 5ustar debian/patches/0000755000000000000000000000000012232754436010625 5ustar debian/patches/2001_drop_pause.patch0000644000000000000000000000232512232754436014453 0ustar Subject: drop pause module and use Node.js api only Author: Jérémy Lal Last-Update: 2013-10-26 Forwarded: not-needed, upstream want nodejs < 0.10 compat https://github.com/jaredhanson/passport/pull/106 --- a/lib/passport/strategies/session.js +++ b/lib/passport/strategies/session.js @@ -1,8 +1,7 @@ /** * Module dependencies. */ -var pause = require('pause') - , util = require('util') +var util = require('util') , Strategy = require('../strategy'); @@ -45,23 +44,16 @@ // listening for events emitted from request. For discussion on the // matter, refer to: https://github.com/jaredhanson/passport/pull/106 - var paused = options.pauseStream ? pause(req) : null; req._passport.instance.deserializeUser(su, function(err, user) { if (err) { return self.error(err); } if (!user) { delete req._passport.session.user; self.pass(); - if (paused) { - paused.resume(); - } return; }; var property = req._passport.instance._userProperty || 'user'; req[property] = user; self.pass(); - if (paused) { - paused.resume(); - } }); } else { self.pass(); debian/patches/1001_replace_pkginfo.patch0000644000000000000000000000140712232751324015432 0ustar From: David Paleino , Jérémy Lal Subject: require package.json instead of depending on pkginfo pkginfo is near to being useless, see also https://github.com/indexzero/node-pkginfo/pull/10 Last-Update: 2013-10-26 Forwarded: https://github.com/jaredhanson/passport/pull/178 --- lib/passport/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/passport/index.js +++ b/lib/passport/index.js @@ -431,7 +431,7 @@ /** * Framework version. */ -require('pkginfo')(module, 'version'); +exports.version = require('../../package.json').version; /** * Expose constructors. @@ -450,4 +450,4 @@ /** * HTTP extensions. */ -require('./http/request'); \ No newline at end of file +require('./http/request'); debian/patches/series0000644000000000000000000000006112232752660012034 0ustar 1001_replace_pkginfo.patch 2001_drop_pause.patch debian/docs0000644000000000000000000000001212232744461010037 0ustar README.md debian/watch0000644000000000000000000000024012232746431010217 0ustar version=3 opts=filenamemangle=s/.*\/v?([\d\.-]+)\.tar\.gz/node-passport-$1.tar.gz/ \ https://github.com/jaredhanson/passport/tags .*/archive/v?([\d\.]+).tar.gz debian/control0000644000000000000000000000220012232752520010563 0ustar Source: passportjs Section: web Priority: extra Maintainer: Debian Javascript Maintainers Uploaders: David Paleino , Jérémy Lal Build-Depends: debhelper (>= 8~), nodejs Standards-Version: 3.9.4 Homepage: http://passportjs.org Vcs-Git: git://anonscm.debian.org/pkg-javascript/passportjs.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/passportjs.git Package: node-passport Architecture: all Depends: ${misc:Depends} , nodejs Description: simple, unobtrusive authentication system for Node.js Passport is an authentication middleware for Node.js. Extremely flexible and modular, Passport can be unobtrusively dropped in to any Connect/Express-based web application. . It provides a comprehensive set of authentication systems: using a username and password, social networks credentials, OpenID, and more. . This package only provides the general framework and the "session" authorization strategy: other systems are packaged separately, please install the ones you need. . Node.js is an event-based server-side javascript engine. debian/copyright0000644000000000000000000000254312232747234011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: passportjs Source: https://github.com/jaredhanson/passport Files: * Copyright: © 2011-2013 Jared Hanson License: Expat Files: debian/* Copyright: © 2012, David Paleino 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. debian/install0000644000000000000000000000010112232747634010561 0ustar lib usr/lib/nodejs/passport package.json usr/lib/nodejs/passport debian/source/0000755000000000000000000000000012232744461010473 5ustar debian/source/format0000644000000000000000000000001412232744461011701 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212232744461010371 0ustar 8 debian/rules0000755000000000000000000000030412232744461010250 0ustar #!/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: override_dh_auto_clean: # nothing debian/changelog0000644000000000000000000000105212232753342011041 0ustar passportjs (0.1.17-1) unstable; urgency=low * Upstream update * Standards-Version 3.9.4 * Update 1001 patch to match current practice. Forward upstream * Add 2001 patch to get rid of dependency on node-pause * Keep tree when installing * Build-Depends nodejs, so it is available where installable * Rename license from MIT to Expat -- Jérémy Lal Sat, 26 Oct 2013 16:51:13 +0200 passportjs (0.1.8-1) unstable; urgency=low * Initial release -- David Paleino Sun, 08 Apr 2012 21:33:36 +0200