debian/0000775000000000000000000000000012032301105007153 5ustar debian/compat0000664000000000000000000000000211666470021010371 0ustar 7 debian/changelog0000664000000000000000000001004712032301105011027 0ustar node-postgres (0.7.1-1ubuntu1) quantal; urgency=low * Cope with node -> nodejs renaming. -- Michael Bienia Mon, 01 Oct 2012 13:44:48 +0200 node-postgres (0.7.1-1) unstable; urgency=low * New upstream release. + Use node-gyp as preferred build helper. * Restructure build routines to apply security hardening build flags. * Directly use github.com URL (not githubredir.debian.net redirctor) when fetching upstream source. * Add debian/patches/README documenting patch numbering micro-policy. -- Jonas Smedegaard Fri, 22 Jun 2012 21:16:33 +0200 node-postgres (0.7.0-1) unstable; urgency=low * New upstream release. + Include command metadata with native query result callback. + Use correct parse function for float arrays. + Ignore writes to unwritable sockets. + Reduce complexity of test runner. -- Jonas Smedegaard Fri, 01 Jun 2012 10:18:30 +0200 node-postgres (0.6.18-1) unstable; urgency=low * New upstream release. -- Jonas Smedegaard Thu, 10 May 2012 11:12:40 +0200 node-postgres (0.6.15-1) unstable; urgency=low * New upstream release. * Use anonscm.debian.org for Vcs-Browser field. * Extend my copyright for Debian packaging. -- Jonas Smedegaard Thu, 05 Apr 2012 14:45:34 +0200 node-postgres (0.6.14-1) unstable; urgency=low * New upstream release. * Update copyright file: + Shorten and quote license strings in comments. -- Jonas Smedegaard Mon, 19 Mar 2012 20:53:35 +0100 node-postgres (0.6.13-1) unstable; urgency=low * New upstream release. -- Jonas Smedegaard Sat, 03 Mar 2012 02:38:05 +0100 node-postgres (0.6.12-1) unstable; urgency=low * Bump copyright file format to 1.0. * Bump standards-version to 3.9.3. -- Jonas Smedegaard Thu, 01 Mar 2012 20:31:47 +0100 node-postgres (0.6.10-1) unstable; urgency=low * New upstream release. -- Jonas Smedegaard Tue, 07 Feb 2012 13:17:12 +0100 node-postgres (0.6.9-1) unstable; urgency=low * New upstream release. * Update watch file to use more flexible regex. -- Jonas Smedegaard Sun, 08 Jan 2012 14:59:13 +0100 node-postgres (0.6.8-1) unstable; urgency=low * New upstream release. * Git-ignore quilt .pc dir. * (Build-)depend on node-generic-pool. * Drop dpkg local-options hints from packaging source: now defaults. * Bump debhelper compatilibity level to 7. * Rename binary package libnode-pg → node-pg. Replace and conflict with old name. * Relax to build-depend unversioned on debhelper: needed version satisfied even in oldstable. * Update copyright file: Fix syntax of License field. Thanks to lintian. * Fix build and install native code. Build-depend on nodejs-dev and libpq-dev. Make binary package arch-any. * Add patch 2001 to fix path for native binding. * Enable copyright-check: Build-depend on devscripts. -- Jonas Smedegaard Sun, 04 Dec 2011 10:56:03 +0700 node-postgres (0.4.0-1) unstable; urgency=low * New upstream release. -- Jonas Smedegaard Mon, 18 Apr 2011 12:02:26 +0200 node-postgres (0.3.3-1) unstable; urgency=low * New upstream release. * Bump policy compliance to standards-version 3.9.2. * Bump copyright file format to draft 174 of DEP-5. -- Jonas Smedegaard Sat, 16 Apr 2011 11:07:02 +0200 node-postgres (0.3.2-1) unstable; urgency=low * New upstream release. * Update copyright file: + Bump DEP5 format to daft Subversion rev.173. + Shorten and rewrap a comment. -- Jonas Smedegaard Thu, 17 Mar 2011 01:38:52 +0100 node-postgres (0.3.0-1) unstable; urgency=low * New upstream release. * Package now team-maintained: + Set Debian Javascript Maintainers as maintainer. + Set myself as uploader. -- Jonas Smedegaard Sat, 12 Mar 2011 11:07:04 +0100 node-postgres (0.2.6-1) experimental; urgency=low * Initial release. Closes: Bug#611679. -- Jonas Smedegaard Mon, 31 Jan 2011 23:09:20 +0100 debian/copyright_hints0000664000000000000000000000756211771141570012346 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: FIXME Upstream-Contact: FIXME Source: FIXME Disclaimer: Autogenerated by CDBS Files: Makefile benchmark/js-versus-native-bench.js benchmark/large-datatset-bench.js benchmark/simple-query-bench.js binding.gyp debian/compat debian/control debian/control.in debian/gbp.conf debian/install debian/patches/2001_native_binding_path.patch debian/patches/README debian/patches/series debian/source/format debian/watch lib/arrayParser.js lib/binaryParsers.js lib/client.js lib/connection.js lib/defaults.js lib/native/index.js lib/native/query.js lib/query.js lib/result.js lib/textParsers.js lib/types.js lib/utils.js lib/writer.js package.json script/create-test-tables.js script/dump-db-types.js script/list-db-types.js script/test-connection.js src/binding.cc test/buffer-list.js test/cli.js test/integration/client/api-tests.js test/integration/client/array-tests.js test/integration/client/big-simple-query-tests.js test/integration/client/cancel-query-tests.js test/integration/client/configuration-tests.js test/integration/client/drain-tests.js test/integration/client/empty-query-tests.js test/integration/client/error-handling-tests.js test/integration/client/huge-numeric-tests.js test/integration/client/no-data-tests.js test/integration/client/notice-tests.js test/integration/client/prepared-statement-tests.js test/integration/client/result-metadata-tests.js test/integration/client/simple-query-tests.js test/integration/client/test-helper.js test/integration/client/transaction-tests.js test/integration/client/type-coercion-tests.js test/integration/connection-pool/double-connection-tests.js test/integration/connection-pool/ending-pool-tests.js test/integration/connection-pool/error-tests.js test/integration/connection-pool/idle-timeout-tests.js test/integration/connection-pool/max-connection-tests.js test/integration/connection-pool/optional-config-tests.js test/integration/connection-pool/single-connection-tests.js test/integration/connection-pool/test-helper.js test/integration/connection-pool/unique-name-tests.js test/integration/connection-pool/waiting-connection-tests.js test/integration/connection/bound-command-tests.js test/integration/connection/notification-tests.js test/integration/connection/query-tests.js test/integration/connection/test-helper.js test/integration/gh-issues/130.js test/integration/gh-issues/131.js test/integration/test-helper.js test/native/callback-api-tests.js test/native/connection-tests.js test/native/error-tests.js test/native/evented-api-tests.js test/native/stress-tests.js test/test-buffers.js test/test-helper.js test/unit/client/cleartext-password-tests.js test/unit/client/configuration-tests.js test/unit/client/connection-string-tests.js test/unit/client/md5-password-tests.js test/unit/client/notification-tests.js test/unit/client/prepared-statement-tests.js test/unit/client/query-queue-tests.js test/unit/client/query-tests.js test/unit/client/result-metadata-tests.js test/unit/client/simple-query-tests.js test/unit/client/test-helper.js test/unit/client/typed-query-results-tests.js test/unit/connection/error-tests.js test/unit/connection/inbound-parser-tests.js test/unit/connection/outbound-sending-tests.js test/unit/connection/startup-tests.js test/unit/connection/test-helper.js test/unit/test-helper.js test/unit/utils-tests.js test/unit/writer-tests.js wscript Copyright: *No copyright* License: UNKNOWN FIXME Files: debian/rules Copyright: 2011-2012, Jonas Smedegaard License: GPL-2+ FIXME Files: README.md Copyright: 2010, Brian Carlson (brian.m.carlson@gmail.com) HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER License: MIT/X11 (BSD like) FIXME Files: lib/index.js Copyright: === 'string' ? c : c.user+c.host+c.port+c.database; License: UNKNOWN FIXME debian/watch0000664000000000000000000000012011771141106010211 0ustar version=3 https://github.com/brianc/node-postgres/tags .*/tarball/v?(\d[\d\.]+) debian/control.in0000664000000000000000000000154612032301111011166 0ustar Source: node-postgres Section: web Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Javascript Maintainers Uploaders: Jonas Smedegaard Build-Depends: @cdbs@ Standards-Version: 3.9.3 Homepage: https://github.com/brianc/node-postgres Vcs-Git: git://git.debian.org/git/collab-maint/node-postgres Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-postgres.git Package: node-pg Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${cdbs:Depends} Suggests: postgresql Conflicts: libnode-pg Provides: libnode-pg Description: PostgreSQL client library for Node Node is an event-based server-side JavaScript engine. . node-postgres is a non-blocking (async) pure JavaScript PostgreSQL client library for Node. debian/copyright0000664000000000000000000000436111737311604011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: node-postgres Upstream-Contact: http://github.com/brianc/node-postgres/issues/ Brian Carlson Source: https://github.com/brianc/node-postgres/downloads git://github.com/brianc/node-postgres Files: * Copyright: 2010, Brian Carlson License: Expat Files: debian/* Copyright: 2011-2012, Jonas Smedegaard License: GPL-2+ 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. License: GPL-2+ This program 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, or (at your option) any later version. . This program 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. Comment: On Debian systems the 'GNU General Public License' version 2 is located in '/usr/share/common-licenses/GPL-2'. . You should have received a copy of the 'GNU General Public License' along with this program. If not, see . debian/rules0000775000000000000000000000620611771141160010253 0ustar #!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2011, 2012 Jonas Smedegaard # Description: Main Debian packaging script for node-postgres # # This program 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, or (at your option) # any later version. # # This program 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 . -include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/utils.mk include /usr/share/cdbs/1/class/langcore.mk include /usr/share/cdbs/1/rules/debhelper.mk libpkgname = node-pg # Needed both by upstream build process and at runtime common-depends = node-generic-pool CDBS_BUILD_DEPENDS += , nodejs-dev, libpq-dev, $(common-depends) CDBS_DEPENDS_$(libpkgname) = $(common-depends), nodejs # suppress optional build-dependencies CDBS_BUILD_DEPENDS_rules_upstream-tarball = DEB_UPSTREAM_URL = https://github.com/brianc/$(DEB_UPSTREAM_PACKAGE)/tarball DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION) DEB_UPSTREAM_TARBALL_DELIMITER = DEB_UPSTREAM_TARBALL_EXTENSION = DEB_UPSTREAM_RECEIVED_EXTENSION = tar.gz DEB_UPSTREAM_WGET_OPTS += --no-check-certificate DEB_UPSTREAM_TARBALL_MD5 = 801729bb5dae7ca1402e711a17973030 DEB_INSTALL_DOCS_$(libpkgname) += README.md DEB_INSTALL_EXAMPLES_$(libpkgname) += lib/defaults.js # node-waf build routines NODE-PATH = $(cdbs_curdestdir)usr/lib/nodejs/pg/native NODE-WAF-BUILDFLAGS = CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" CPPFLAGS="$(CPPFLAGS)" LINKFLAGS="$(LDFLAGS)" NODE-WAF = NOCOLOR=1 NODE_PATH="$(NODE-PATH)" node-waf -v configure/$(libpkgname):: debian/stamp-node-waf-configure debian/stamp-node-waf-configure: $(NODE-WAF-BUILDFLAGS) $(NODE-WAF) configure touch $@ build/$(libpkgname):: debian/stamp-node-waf-build debian/stamp-node-waf-build: $(NODE-WAF) build $(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,make test) touch $@ install/$(libpkgname):: $(NODE-WAF) install clean:: rm -rf build rm -f .lock-wscript rm -f debian/stamp-node-waf-configure debian/stamp-node-waf-build binary-post-install/$(libpkgname):: mkdir -p "$(cdbs_curdestdir)/etc/nodejs/pg" mv "$(cdbs_curdestdir)/usr/lib/nodejs/pg/defaults.js" "$(cdbs_curdestdir)/etc/nodejs/pg/" ln -sT "/etc/nodejs/pg/defaults.js" "$(cdbs_curdestdir)/usr/lib/nodejs/pg/defaults.js" # Node modules have an uncommon extension preventing autodetection by # dh_shlibdeps, so we do it manually binary-strip-IMPL/$(libpkgname):: $(if $(is_debug_package)$(filter nostrip,$(DEB_BUILD_OPTIONS)),,find "$(cdbs_curdestdir)" -name "*.node" -exec strip --remove-section=.comment --remove-section=.note --strip-unneeded {} +) binary-predeb-IMPL/$(libpkgname):: find "$(cdbs_curdestdir)" -name "*.node" -exec dpkg-shlibdeps -Tdebian/$(cdbs_curpkg).substvars {} + debian/install0000664000000000000000000000003011666566577010603 0ustar lib/* usr/lib/nodejs/pg debian/patches/0000775000000000000000000000000012032300764010614 5ustar debian/patches/2002_rename-nodejs.patch0000664000000000000000000000163412032300764015033 0ustar Index: node-postgres-0.7.1/Makefile =================================================================== --- node-postgres-0.7.1.orig/Makefile 2012-06-19 05:41:48.000000000 +0200 +++ node-postgres-0.7.1/Makefile 2012-10-01 13:43:41.000000000 +0200 @@ -4,7 +4,7 @@ params := $(connectionString) -node-command := xargs -n 1 -I file node file $(params) +node-command := xargs -n 1 -I file nodejs file $(params) .PHONY : test test-connection test-integration bench test-native build/default/binding.node test: test-unit @@ -21,10 +21,10 @@ @find test/unit -name "*-tests.js" | $(node-command) test-connection: - @node script/test-connection.js $(params) + @nodejs script/test-connection.js $(params) test-connection-binary: - @node script/test-connection.js $(params) binary + @nodejs script/test-connection.js $(params) binary test-native: build/default/binding.node @echo "***Testing native bindings***" debian/patches/series0000664000000000000000000000007012032300613012017 0ustar 2001_native_binding_path.patch 2002_rename-nodejs.patch debian/patches/2001_native_binding_path.patch0000664000000000000000000000060511666563653016320 0ustar --- a/lib/native/index.js +++ b/lib/native/index.js @@ -6,10 +6,10 @@ try{ //v0.5.x - binding = require(__dirname + '/../../build/Release/binding.node'); + binding = require(__dirname + '/binding.node'); } catch(e) { //v0.4.x - binding = require(__dirname + '/../../build/default/binding'); + binding = require(__dirname + '/binding'); } var Connection = binding.Connection; debian/patches/README0000664000000000000000000000021111347270217011475 0ustar 0xxx: Grabbed from upstream development. 1xxx: Possibly relevant for upstream adoption. 2xxx: Only relevant for official Debian release. debian/control0000664000000000000000000000170612032301111010557 0ustar Source: node-postgres Section: web Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Javascript Maintainers Uploaders: Jonas Smedegaard Build-Depends: cdbs (>= 0.4.72~), devscripts, debhelper, dh-buildinfo, nodejs-dev, libpq-dev, node-generic-pool Standards-Version: 3.9.3 Homepage: https://github.com/brianc/node-postgres Vcs-Git: git://git.debian.org/git/collab-maint/node-postgres Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/node-postgres.git Package: node-pg Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends}, ${cdbs:Depends} Suggests: postgresql Conflicts: libnode-pg Provides: libnode-pg Description: PostgreSQL client library for Node Node is an event-based server-side JavaScript engine. . node-postgres is a non-blocking (async) pure JavaScript PostgreSQL client library for Node. debian/gbp.conf0000664000000000000000000000014611442224275010613 0ustar # Configuration file for git-buildpackage and friends [DEFAULT] pristine-tar = True sign-tags = True debian/source/0000775000000000000000000000000011666470010010471 5ustar debian/source/format0000664000000000000000000000001411442224275011701 0ustar 3.0 (quilt)