debian/0000755000000000000000000000000012320337750007170 5ustar debian/copyright0000644000000000000000000000262512155550063011130 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: do_postgres Source: http://github.com/datamapper/do Files: * Copyright: 2007-2011 Yehuda Katz 2007-2011 Dirkjan Bussink License: Expat Files: debian/* Copyright: 2011-2013 Cédric Boutillier 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/changelog0000644000000000000000000000700112320337742011041 0ustar ruby-dataobjects-postgres (0.10.13-1ubuntu1) trusty; urgency=medium * Add build dependency on postgresql-server-dev-9.3. -- Matthias Klose Sun, 06 Apr 2014 22:57:46 +0200 ruby-dataobjects-postgres (0.10.13-1build1) trusty; urgency=medium * No-change upload to drop dependencies on ruby1.8. -- Matthias Klose Sun, 06 Apr 2014 21:03:48 +0200 ruby-dataobjects-postgres (0.10.13-1) unstable; urgency=low * New upstream version * debian/control: + remove obsolete DM-Upload-Allowed flag + use canonical URI in Vcs-* fields + dump transitional packages + bump Standards-Version to 3.9.4 (no changes needed) + update version dep on ruby-dataobjects + update my email address * debian/copyright: update my email address and years * debian/rules: fix target to install upstream changelog * update in debian/TODO instructions to run the tests manually * remove lintian overrides, about transitional packages -- Cédric Boutillier Tue, 11 Jun 2013 09:31:21 +0200 ruby-dataobjects-postgres (0.10.8-2) unstable; urgency=low * Bump build dependency on gem2deb to >= 0.3.0~ -- Cédric Boutillier Tue, 26 Jun 2012 09:23:53 +0200 ruby-dataobjects-postgres (0.10.8-1) unstable; urgency=low * New upstream version * Bump Standards-Version to 3.9.3 (no changes needed) * (build-)depend on ruby-dataobjects >= 0.10.8 * Update Format: URL for DEP5 copyright file -- Cédric Boutillier Wed, 28 Mar 2012 16:13:02 +0200 ruby-dataobjects-postgres (0.10.7-1) unstable; urgency=low * New upstream release * Conversion to gem2deb packaging + rename source and binary packages * Apply 0010_remove_rubygems_from_specs.patch * Apply 0020_remove_loadpath_manipulation_in_specs.patch * override lintian warning about duplicate description for transitional packages * Disable test suite as long as we are not able to start the postgres server during the build with fakeroot * Add myself as an uploader -- Cédric Boutillier Mon, 07 Nov 2011 00:36:41 +0100 libdataobjects-postgres-ruby (0.10.2-1) unstable; urgency=low * New upstream release * debian/watch + updated source to gemwatch. * debian/control + corrected typo error. + updated depends to libddataobjects-ruby1.9 to 1.9.1. + updated metapackage description. -- Deepak Tripathi Fri, 28 May 2010 12:32:00 +0530 libdataobjects-postgres-ruby (0.10.1-1) unstable; urgency=low * New upstream release. * Bumped standard version * Update debian/copyright * Added debian/source/format * Modified debian/watch for .gem * Ported to ruby1.9.1 * debian/control + added DM-Upload field. + added Homepage and Vcs-* entry + keeping under pkg-ruby-extras group. + taking over from Sebestien. -- Deepak Tripathi Mon, 10 May 2010 08:38:19 +0000 libdataobjects-postgres-ruby (0.9.11-1) unstable; urgency=low * New upstream release. * Added debian watch/file. * Conform to latest policy. -- Sebastien Delafond Wed, 19 Aug 2009 11:49:38 +0200 libdataobjects-postgres-ruby (0.2.4-2) unstable; urgency=low * Depend on libdataobjects-ruby. -- Sebastien Delafond Mon, 12 May 2008 15:21:57 -0700 libdataobjects-postgres-ruby (0.2.4-1) unstable; urgency=low * Initial Release. -- Sebastien Delafond Mon, 12 May 2008 14:57:06 -0700 debian/TODO0000644000000000000000000000125212155551050007655 0ustar make start_postgres_and_auto_building work, and uncomment override_dh_auto_build: target in debian/rules. The main problem is to be able to run the postgres server with postgres user using su while the package is being built with fakeroot. Is it even possible? For the moment, to run the tests, - I run the first half of start_postgres_and_auto_install.sh with postgres user (until dh_autoinstall). - I build the package with a simple ruby-tests.rake: ---8<------ require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) do |spec| spec.pattern = './spec/*_spec.rb' end task :default => :spec --->8------- - I run the second half of the script with postgres user. debian/start_postgres_and_auto_install.sh0000755000000000000000000000436711772261340016225 0ustar #!/bin/sh # # start_postgres.sh - starts an instance of postgres before # auto_installing and running do_mysql's test suite. It is inspired by # debian/test_mysql.sh from libdbi-drivers source package and # t/dbdpg_test_setup.pl from libdbd-pg-perl. set -evx MYTEMP_DIR=`mktemp -d` SCRIPT_USER=`stat -c %U $0` ME=`whoami` BINDIR=`pg_config --bindir` INFO=`${BINDIR}/initdb -D --locale=C -E UTF-8 ${MYTEMP_DIR} 2>&1 || true` #if we are root, we need to find another user to run the server if echo $INFO | grep "root"; then FOUNDUSER=0 USER_LIST="$ME $SCRIPT_USER postgres" for x in $USER_LIST; do if [ "$x" = "root" ] ; then continue fi TEST_USER=$x chown -vR $TEST_USER $MYTEMP_DIR || break SU_USER=$x FOUNDUSER=$((FOUNDUSER + 1)) ( cd $MYTEMP_DIR ; INFO=`su -m $SU_USER -c "${BINDIR}/initdb --locale=C -E UTF-8 -D ${MYTEMP_DIR} 2>&1"` ) || continue [ $? -eq 0 ] && break done if [ "$SU_USER" = "" ]; then TEST_USER=`echo $INFO | sed -e "s/owned by user (\.+)/$1/"` fi fi # environment variables for ruby-dataobjects-postgres test suite export DO_POSTGRES_USER=${SU_USER} #export DO_POSTGRES_PASS= export DO_POSTGRES_DBNAME=do_test export DO_POSTGRES_DATABASE=/do_test # start postgres server if [ ! "$SU_USER" = "" ]; then su -m $SU_USER -c "${BINDIR}/pg_ctl -D ${MYTEMP_DIR} -o\"-h '' -k ${MYTEMP_DIR}\" -l /tmp/pgres.log start" else ${BINDIR}/postgres -D ${MYTEMP_DIR} -k ${MYTEMP_DIR} & fi attempts=0 while ! [ -e ${MYTEMP_DIR}/postmaster.pid ] ; do attempts=$((attempts+1)) if [ "${attempts}" -gt 10 ] ; then echo "skipping test, postgres pid file was not created after 30 seconds" exit 0 fi sleep 3 echo `date`: retrying... done : # Set the env. var so that pgsql client doesn't use networking export PGHOST=${MYTEMP_DIR} #create test database if [ "$SU_USER" = "" ]; then createdb -e ${DO_POSTGRES_DBNAME} else su -m $SU_USER -c "createdb -e ${DO_POSTGRES_DBNAME}" fi dh_auto_install ecode=$? # ## Kill the postgress process and wait of it to shutdown if [ "$SU_USER" = "" ]; then dropdb -e ${DO_POSTGRES_DBNAME} $BINDIR/pg_ctl stop -D ${MYTEMP_DIR} else su -m $SU_USER -c "dropdb -e ${DO_POSTGRES_DBNAME}" su -m $SU_USER -c "$BINDIR/pg_ctl stop -D ${MYTEMP_DIR}" fi rm -rf $MYTEMP_DIR exit $ecode debian/compat0000644000000000000000000000000211772261340010367 0ustar 7 debian/ruby-dataobjects-postgres.docs0000644000000000000000000000002011772261340015141 0ustar README.markdown debian/patches/0000755000000000000000000000000011772261340010620 5ustar debian/patches/0200_remove_LOAD_PATH_manipulation_from_specs.patch0000644000000000000000000000253011772261340022212 0ustar Description: disable $LOAD_PATH manipulations in specs The tests should use the copy of the library installed in debian/ruby-dataobjects-postgres/ by gem2deb. Author: Cédric Boutillier Last-Update: 2011-12-20 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -7,16 +7,16 @@ require 'fileutils' require 'win32console' if RUBY_PLATFORM =~ /mingw|mswin/ -driver_lib = File.expand_path('../../lib', __FILE__) -$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib) +#driver_lib = File.expand_path('../../lib', __FILE__) +#$LOAD_PATH.unshift(driver_lib) unless $LOAD_PATH.include?(driver_lib) # Prepend data_objects/do_jdbc in the repository to the load path. # DO NOT USE installed gems, except when running the specs from gem. -repo_root = File.expand_path('../../..', __FILE__) -(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib| - lib_path = "#{repo_root}/#{lib}/lib" - $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path) -end +#repo_root = File.expand_path('../../..', __FILE__) +#(['data_objects'] << ('do_jdbc' if JRUBY)).compact.each do |lib| +# lib_path = "#{repo_root}/#{lib}/lib" +# $LOAD_PATH.unshift(lib_path) if File.directory?(lib_path) && !$LOAD_PATH.include?(lib_path) +#end require 'data_objects' require 'data_objects/spec/setup' debian/patches/0100_remove_rubygems_from_specs.patch0000644000000000000000000000061211772261340017732 0ustar Description: remove requirement on rubygems from specs Author: Cédric Boutillier Last-Update: 2011-11-08 --- ruby-dataobjects-postgres-0.10.7.orig/spec/spec_helper.rb +++ ruby-dataobjects-postgres-0.10.7/spec/spec_helper.rb @@ -1,7 +1,6 @@ $TESTING=true JRUBY = RUBY_PLATFORM =~ /java/ -require 'rubygems' require 'rspec' require 'date' require 'ostruct' debian/patches/series0000644000000000000000000000013211772261340012031 0ustar 0100_remove_rubygems_from_specs.patch 0200_remove_LOAD_PATH_manipulation_from_specs.patch debian/control0000644000000000000000000000205412320337710010570 0ustar Source: ruby-dataobjects-postgres Section: ruby Priority: optional Maintainer: Debian Ruby Extras Maintainers Uploaders: Cédric Boutillier Build-Depends: debhelper (>= 7.0.50~), gem2deb (>= 0.3.0~), libpq-dev (>= 9.1), ruby-rspec (>= 2.5), ruby-dataobjects (>= 0.10.13-1~), postgresql-server-dev-9.3 Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-dataobjects-postgres.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=pkg-ruby-extras/ruby-dataobjects-postgres.git;a=summary Homepage: https://github.com/datamapper/do XS-Ruby-Versions: all Package: ruby-dataobjects-postgres Architecture: any XB-Ruby-Versions: ${ruby:Versions} Depends: ${shlibs:Depends}, ${misc:Depends}, ruby | ruby-interpreter, ruby-dataobjects (>= 0.10.13-1~) Description: PostgreSQL adapter for ruby-dataobjects The purpose of DataObjects.rb is to propose a single interface for Ruby to various databases. This package provides the adapter for PostgreSQL to this unified interface. debian/rules0000755000000000000000000000142512155406330010247 0ustar #!/usr/bin/make -f #export DH_VERBOSE=1 # # Uncomment to ignore all test failures (but the tests will run anyway) #export DH_RUBY_IGNORE_TESTS=all # # Uncomment to ignore some test failures (but the tests will run anyway). # Valid values: #export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 require-rubygems export DH_RUBY_IGNORE_TESTS=ruby1.8 ruby1.9.1 # # If you need to specify the .gemspec (eg there is more than one) #export DH_RUBY_GEMSPEC=gem.gemspec %: dh $@ --buildsystem=ruby --with ruby #install upstream changelog override_dh_installchangelogs: dh_installchangelogs ChangeLog.markdown ## start postgres server before auto_installing ## not working yet #override_dh_auto_install: # chmod +x debian/start_postgres_and_auto_install.sh # debian/start_postgres_and_auto_install.sh debian/source/0000755000000000000000000000000011772261340010471 5ustar debian/source/format0000644000000000000000000000001411772261340011677 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000015311772261340010221 0ustar version=3 http://pkg-ruby-extras.alioth.debian.org/cgi-bin/gemwatch/do_postgres .*/do_postgres-(.*).tar.gz