debian/0000755000000000000000000000000011730655324007174 5ustar debian/source/0000755000000000000000000000000011730654122010467 5ustar debian/source/format0000644000000000000000000000001411730654122011675 0ustar 3.0 (quilt) debian/control0000644000000000000000000000320011730654122010565 0ustar Source: apq-postgresql Section: libs Priority: optional Maintainer: Adrian-Ken Rueegsegger Uploaders: Reto Buerki DM-Upload-Allowed: yes Build-Depends: debhelper (>= 8), gnat, gnat-4.6, gcc (>= 4.6), gprbuild, chrpath, libpq-dev, libapq3.2.0-dev Standards-Version: 3.9.3 Homepage: http://framework.kow.com.br/ Vcs-Browser: http://git.codelabs.ch/?p=debian/apq-postgresql.git Vcs-Git: http://git.codelabs.ch/git/debian/apq-postgresql.git Package: libapq-postgresql3.2.0 Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends}, libapq3.2.0 Description: APQ Ada 95 Postgresql Binding Plugin (library) APQ is a pluggable Ada 95 Binding to various database systems. This Plugin provides the Binding to PostgreSQL. Package: libapq-postgresql3.2.0-dev Section: libdevel Architecture: any Depends: ${misc:Depends}, libapq-postgresql3.2.0 (= ${binary:Version}), libpq-dev, libapq3.2.0-dev, gnat, gnat-4.6 Conflicts: libapq-postgresql-dev Replaces: libapq-postgresql-dev Description: APQ Ada 95 Postgresql Binding Plugin (development) APQ is a pluggable Ada 95 Binding to various database systems. This Plugin provides the Binding to PostgreSQL. . This package contains the development files. Package: libapq-postgresql3.2.0-dbg Section: debug Priority: extra Architecture: any Depends: ${misc:Depends}, libapq-postgresql3.2.0 (= ${binary:Version}), libapq-postgresql3.2.0-dev (= ${binary:Version}) Description: APQ Ada 95 Postgresql Binding Plugin (debug) APQ is a pluggable Ada 95 Binding to various database systems. This Plugin provides the Binding to PostgreSQL. . This package contains the debugging symbols. debian/libapq-postgresql3.2.0-dev.examples0000644000000000000000000000005211730654122015532 0ustar samples/*.gpr samples/src/* samples/sql/* debian/patches/0000755000000000000000000000000011730654122010616 5ustar debian/patches/03-Force-linking-to-libpq.patch0000644000000000000000000000064311730654122016276 0ustar Author: Adrian-Ken Rueegsegger Description: Force linking against libpq --- a/src-in/apq-postgresql.gpr.in +++ b/src-in/apq-postgresql.gpr.in @@ -41,7 +41,7 @@ for Languages use ( "Ada", "C" ); for Source_Dirs use ( "../../src/" & Project'Library_Name & "/" ); for Library_kind use external( "LIBRARY_KIND", "static" ); - + for Library_Options use ("-lpq"); case Debug is when "true" => debian/patches/02-Make-check_project-more-robust.patch0000644000000000000000000000106211730654122020007 0ustar Author: Adrian-Ken Rueegsegger Description: Create auto-generated config files in current directory --- a/scripts/buildutil.sh +++ b/scripts/buildutil.sh @@ -27,7 +27,7 @@ check_project(){ proj=$1; echo -n "Looking for project $proj ... " - ${GPRBUILD} -ws -P$proj 2>&- || { echo "[false]"; echo "${GPRBUILD} can't find $proj in ADA_PROJECT_PATH"; exit -1;} && echo "[ok]"; + ${GPRBUILD} -ws -P$proj --autoconf=$proj.cgpr 2>&- || { echo "[false]"; echo "${GPRBUILD} can't find $proj in ADA_PROJECT_PATH"; exit -1;} && echo "[ok]"; } debian/patches/01-Add-PGSQL-Include-path.patch0000644000000000000000000000140111730654122015740 0ustar Author: Adrian-Ken Rueegsegger Description: Add PGSQL include path to CFLAGS Index: apq-postgresql/configure.local =================================================================== --- apq-postgresql.orig/configure.local 2012-02-20 19:33:00.771738334 +0000 +++ apq-postgresql/configure.local 2012-02-20 19:33:17.190714451 +0000 @@ -44,10 +44,10 @@ POSTGRESQL_INCLUDE_PATH="${POSTGRESQL_PATH}\include" else check_in_path pg_config - POSTGRESQL_CFLAGS=`pg_config --cflags` + POSTGRESQL_INCLUDE_PATH=`pg_config --includedir` + POSTGRESQL_CFLAGS="`pg_config --cflags` -I${POSTGRESQL_INCLUDE_PATH}" POSTGRESQL_LIBDIR=`pg_config --libdir` POSTGRESQL_LIBS="-L${POSTGRESQL_LIBDIR} -lpq" - POSTGRESQL_INCLUDE_PATH=`pg_config --includedir` fi debian/patches/series0000644000000000000000000000015011730654122012027 0ustar 01-Add-PGSQL-Include-path.patch 02-Make-check_project-more-robust.patch 03-Force-linking-to-libpq.patch debian/changelog0000644000000000000000000000425611730654355011060 0ustar apq-postgresql (3.2.0-2) unstable; urgency=low [ Adrian-Ken Rueegsegger ] * Add missing build dependencies (Closes: #663622) -- Reto Buerki Fri, 16 Mar 2012 16:14:29 +0100 apq-postgresql (3.2.0-1) unstable; urgency=low * Imported Upstream version 3.2.0 * Update to Standards-Version 3.9.3 (no changes) * Update to debhelper 8 * Update Vcs-Git URL * Update copyright information * Set package names to new library version 3.2.0 * Migrate to gnat-4.6 (Closes: #660527) * Update patches * Update GNAT project file * Provide project file for example code * Update rules * Switch to 3.0 (quilt) source package format * Fix binary-control-field-duplicates-source warning * Add uploaders and allow DM upload -- Adrian-Ken Rueegsegger Wed, 07 Mar 2012 12:24:18 +0100 apq-postgresql (3.0-4) unstable; urgency=low * Use current dir to construct helper lib path (Closes: #570887). * Fix missing-debian-source-format lintian warning. -- Adrian-Ken Rueegsegger Tue, 13 Apr 2010 20:41:17 +0200 apq-postgresql (3.0-3) unstable; urgency=low * Pass helper library directory to linker (Closes: #570887). -- Adrian-Ken Rueegsegger Thu, 01 Apr 2010 20:58:01 +0200 apq-postgresql (3.0-2) unstable; urgency=low * Add missing depends to dev package. -- Adrian-Ken Rueegsegger Fri, 19 Feb 2010 15:06:55 +0100 apq-postgresql (3.0-1) unstable; urgency=low * Merging upstream version 3.0. * Update to new upstream URL. * Bump Standards-Version to 3.8.3. * Fix git Vcs URLs. * Build with GNAT 4.4 (Closes: #555097). * Update patches. * Update rules. * Update dev install and example files. * Update lintian overrides. * Make package compliant to latest Debian Ada Policy. * Remove unneeded linker switches. * Add README.source file. * Fix debhelper-but-no-misc-depends lintian warning. * Update to Standards-Version 3.8.4 (no changes). -- Adrian-Ken Rueegsegger Wed, 17 Feb 2010 22:06:29 +0100 apq-postgresql (3.0~b1-1) unstable; urgency=low * Initial Release. -- Adrian-Ken Rueegsegger Thu, 14 May 2009 23:48:45 +0200 debian/libapq-postgresql3.2.0-dev.install0000644000000000000000000000006711730654122015370 0ustar /usr/lib/*.a /usr/lib/*.so /usr/lib/ada /usr/share/ada debian/README.source0000644000000000000000000000046511730654122011353 0ustar This package uses quilt to manage all modifications to the upstream source. Changes are stored in the source package as diffs in debian/patches and applied during the build. Please see: /usr/share/doc/quilt/README.source for more information on how to apply the patches, modify patches, or remove a patch. debian/rules0000755000000000000000000000340011730654122010244 0ustar #!/usr/bin/make -f PN = apq-postgresql PV = 3.2.0 LIBDIR = debian/tmp/usr/lib/$(PN)-debug/relocatable CPUS := $(shell getconf _NPROCESSORS_ONLN) %: dh ${@} override_dh_auto_clean: $(MAKE) distclean # Restore project file to its original state -mv -f debian/$(PN).gpr.in gnat/$(PN).gpr.in rm -f samples/$(PN)-examples.gpr rm -f *.cgpr override_dh_auto_configure: # Save project file so we can restore it on clean cp -f gnat/$(PN).gpr.in debian/$(PN).gpr.in ./configure --enable-debug --prefix=./debian/tmp/usr/ --processor=$(CPUS) override_dh_auto_install: dh_auto_install rm -f $(LIBDIR)/lib$(PN).so chmod 644 $(LIBDIR)/* chmod 644 debian/tmp/usr/lib/$(PN)-debug/static/lib$(PN).a mv $(LIBDIR)/*.so* debian/tmp/usr/lib mv debian/tmp/usr/lib/$(PN)-debug/static/lib$(PN).a debian/tmp/usr/lib chrpath -d debian/tmp/usr/lib/lib$(PN).so.*.* # Create symlinks for library and helper ln -sf lib$(PN).so.`basename debian/tmp/usr/lib/lib$(PN).so.*.* | sed -e 's/lib$(PN).so.//'` debian/tmp/usr/lib/lib$(PN).so mkdir -p debian/tmp/usr/share/ada/adainclude mv debian/tmp/usr/src/$(PN) debian/tmp/usr/share/ada/adainclude rm -f debian/tmp/usr/share/ada/adainclude/$(PN).ads-e chmod -R 444 debian/tmp/usr/share/ada/adainclude/$(PN)/* cp debian/misc/$(PN).gpr debian/tmp/usr/share/ada/adainclude cp debian/misc/$(PN)-examples.gpr samples mkdir -p debian/tmp/usr/lib/ada/adalib/$(PN) mv $(LIBDIR)/*.ali debian/tmp/usr/lib/ada/adalib/$(PN) chmod -R 444 debian/tmp/usr/lib/ada/adalib/$(PN)/* rm -rf debian/tmp/usr/lib/$(PN) rm -rf debian/tmp/usr/lib/$(PN)-debug rm -rf debian/tmp/usr/lib/gnat override_dh_install: dh_install --fail-missing override_dh_compress: dh_compress -X.ads -X.adb -XMakefile override_dh_strip: dh_strip --dbg-package=lib$(PN)$(PV)-dbg debian/libapq-postgresql3.2.0.README.Debian0000644000000000000000000000060211730654122015257 0ustar APQ-Postgresql 3.0 for Debian ----------------------------- To use APQ Postgresql in your programs, write a GNAT project file for your program and add the following line before the "project" keyword: with "APQ.Postgresql"; See the file /usr/share/ada/adainclude/apq-postgresql.gpr for more instructions. -- Adrian-Ken Rueegsegger Sun, 26 Apr 2009 20:00:18 +0200 debian/copyright0000644000000000000000000000456011730654122011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: APQ::PostgreSQL Upstream-Contact: Marcelo Coraça de Freitas Source: http://framework.kow.com.br/projects/apq-postgresql/files Files: * Copyright: (C) 2002-2007 Warren W. Gay (C) 2007-2012 KOW Framework Project License: GPL-2+ with Ada exception 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 of the License, 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . As a special exception, if other files instantiate generics from this unit, or you link this unit with other files to produce an executable, this unit does not by itself cause the resulting executable to be covered by the GNU General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU Public License. Files: debian/* Copyright: (C) 2009-2012 Adrian-Ken Rueegsegger 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 of the License, 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, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. . On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL-2 file. debian/libapq-postgresql3.2.0.install0000644000000000000000000000002011730654122014601 0ustar /usr/lib/*.so.* debian/compat0000644000000000000000000000000211730654122010365 0ustar 8 debian/misc/0000755000000000000000000000000011730654122010122 5ustar debian/misc/apq-postgresql-examples.gpr0000644000000000000000000000133111730654122015430 0ustar -- Build file for KOW_Lib. -- -- author Marcelo Coraça de Freitas -- -- Adapted for Debian by Adrian-Ken Rueegsegger with "apq"; with "apq-postgresql"; with "apq-samples"; project APQ.PostgreSQL.Examples is -------------------- -- Main Variables -- -------------------- version := "3.2.0"; ---------------- -- Parameters -- ---------------- for Languages use ("Ada"); for Main use ("add_user", "list_users"); for Source_Dirs use ("src"); for Exec_Dir use "bin"; ---------------------- -- Compiler Package -- ---------------------- package Compiler is for Default_Switches ("Ada") use ("-O2", "-gnat05", "-fPIC"); end Compiler; end APQ.PostgreSQL.Examples; debian/misc/apq-postgresql.gpr0000644000000000000000000000241411730654122013617 0ustar -- APQ PostgreSQL project file for use with GNAT -- Copyright (c) 2009-2012 Adrian-Ken Rueegsegger -- -- 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 of the License, 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. -- -- This project file is designed to help build applications that use -- APQ Postgresql. Here is an example of how to use this project file: -- -- with "apq-postgresql"; -- project Example is -- for Object_Dir use "obj"; -- for Exec_Dir use "."; -- for Main use ("example"); -- end Example; with "apq"; library project APQ.PostgreSQL is for Source_Dirs use ("/usr/share/ada/adainclude/apq-postgresql"); for Library_Name use "apq-postgresql"; for Library_Dir use "/usr/lib"; for Library_ALI_Dir use "/usr/lib/ada/adalib/apq-postgresql"; for Library_Kind use "dynamic"; for Externally_Built use "true"; end APQ.PostgreSQL;