--- libalog-0.3.orig/debian/libalog1-base-dev.install
+++ libalog-0.3/debian/libalog1-base-dev.install
@@ -0,0 +1,4 @@
+/usr/lib/*.a
+/usr/lib/*.so
+/usr/lib/ada
+/usr/share/ada/adainclude
--- libalog-0.3.orig/debian/libalog0.3-base.lintian-overrides
+++ libalog-0.3/debian/libalog0.3-base.lintian-overrides
@@ -0,0 +1,2 @@
+libalog0.3-base: package-name-doesnt-match-sonames libalog0.3
+libalog0.3-base: shlib-with-executable-stack usr/lib/libalog.so.0.3
--- libalog-0.3.orig/debian/rules
+++ libalog-0.3/debian/rules
@@ -0,0 +1,106 @@
+#!/usr/bin/make -f
+
+include /usr/share/quilt/quilt.make
+
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+ rm -rf base
+ rm -rf full
+ rm -rf debian/tmp-base
+ rm -rf debian/tmp-full
+
+ $(MAKE) distclean
+
+ dh_clean
+
+build: build-base build-full
+
+build-base: build-base-stamp
+build-base-stamp: $(QUILT_STAMPFN)
+ dh_testdir
+ $(MAKE) distclean
+
+ $(MAKE)
+ $(MAKE) LIBRARY_KIND=static
+
+ $(MAKE) tests
+
+ touch build-base-stamp
+
+build-full: build-full-stamp
+build-full-stamp: $(QUILT_STAMPFN)
+ dh_testdir
+ $(MAKE) TARGET=full clean
+
+ $(MAKE) TARGET=full
+ $(MAKE) TARGET=full LIBRARY_KIND=static
+
+ $(MAKE) TARGET=full tests
+
+ touch build-full-stamp
+
+install: install-base install-full
+
+install-base: build-base
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ $(MAKE) PREFIX=$(CURDIR)/debian/tmp-base/usr install
+ $(MAKE) PREFIX=$(CURDIR)/debian/tmp-base/usr LIBRARY_KIND=static install
+
+ mv debian/tmp-base/usr/lib/alog/libalog.* debian/tmp-base/usr/lib
+
+ mkdir -p debian/tmp-base/usr/share/ada/adainclude
+ mv debian/tmp-base/usr/include/alog debian/tmp-base/usr/share/ada/adainclude
+
+ mkdir -p debian/tmp-base/usr/lib/ada/adalib/alog
+ mv debian/tmp-base/usr/lib/alog/*.ali debian/tmp-base/usr/lib/ada/adalib/alog
+ rm -rf debian/tmp-base/usr/lib/alog
+ cp debian/misc/alog.gpr debian/tmp-base/usr/share/ada/adainclude
+
+install-full: build-full
+ dh_testdir
+ dh_testroot
+ dh_prep
+ dh_installdirs
+
+ $(MAKE) TARGET=full PREFIX=$(CURDIR)/debian/tmp-full/usr install
+ $(MAKE) TARGET=full PREFIX=$(CURDIR)/debian/tmp-full/usr LIBRARY_KIND=static install
+ mv debian/tmp-full/usr/lib/alog/libalog.* debian/tmp-full/usr/lib
+
+ mkdir -p debian/tmp-full/usr/share/ada/adainclude
+ mv debian/tmp-full/usr/include/alog debian/tmp-full/usr/share/ada/adainclude
+
+ mkdir -p debian/tmp-full/usr/lib/ada/adalib/alog
+ mv debian/tmp-full/usr/lib/alog/*.ali debian/tmp-full/usr/lib/ada/adalib/alog
+ rm -rf debian/tmp-full/usr/lib/alog
+ cp debian/misc/alog.gpr debian/tmp-full/usr/share/ada/adainclude
+
+binary: binary-arch
+
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs CHANGELOG
+ dh_installdocs
+ dh_install -p libalog0.3-base -p libalog1-base-dev --fail-missing --sourcedir=debian/tmp-base
+ dh_install -p libalog0.3-full -p libalog1-full-dev --fail-missing --sourcedir=debian/tmp-full
+ dh_lintian
+ dh_strip -Xlibalog0.3-full --dbg-package=libalog-base-dbg
+ dh_strip -Xlibalog0.3-base --dbg-package=libalog-full-dbg
+ dh_compress
+ dh_fixperms
+ dh_makeshlibs
+ dh_installdeb
+ dh_shlibdeps
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
+
+binary-indep:
+
+.PHONY: clean build build-base build-full install install-base install-full binary binary-arch binary-indep
--- libalog-0.3.orig/debian/control
+++ libalog-0.3/debian/control
@@ -0,0 +1,90 @@
+Source: libalog
+Section: libs
+Priority: optional
+Maintainer: Adrian-Ken Rueegsegger <ken@codelabs.ch>
+Uploaders: Reto Buerki <reet@codelabs.ch>
+Build-Depends: debhelper (>= 7), quilt, gnat, gnat-4.4, libahven1-dev, libaws2.7-dev,
+ libapq-postgresql1-dev (>= 3.0-2)
+Standards-Version: 3.8.4
+Homepage: http://www.nongnu.org/alog/
+Vcs-Git: git://git.savannah.nongnu.org/alog.git
+Vcs-Browser: http://git.savannah.nongnu.org/gitweb/?p=alog.git
+
+Package: libalog0.3-base
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, gnat-4.4
+Conflicts: libalog0, libalog0.3-full
+Replaces: libalog0, libalog0.3-full
+Description: Logging framework for Ada (base)
+ Alog is a logging framework for Ada and aims to be straight forward to use and
+ easily extendable. Alog base provides file-based and syslog logging facilities
+ and log-level support.
+
+Package: libalog0.3-full
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, gnat-4.4
+Conflicts: libalog0, libalog0.3-base
+Replaces: libalog0, libalog0.3-base
+Description: Logging framework for Ada (full)
+ Alog is a logging framework for Ada and aims to be straight forward to use and
+ easily extendable. Alog full offers more facilities than Alog base, notably
+ SMTP, PostgreSQL and XMPP/Jabber.
+
+Package: libalog1-base-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libalog0.3-base (= ${binary:Version}), gnat-4.4
+Conflicts: libalog-dev, libalog1-full-dev
+Replaces: libalog-dev, libalog1-full-dev
+Description: Logging framework for Ada (development)
+ Alog is a logging framework for Ada and aims to be straight forward to use and
+ easily extendable. Alog base provides file-based and syslog logging facilities
+ and log-level support.
+ .
+ This package contains the development files.
+
+Package: libalog1-full-dev
+Section: libdevel
+Architecture: any
+Depends: ${misc:Depends}, libalog0.3-full (= ${binary:Version}), libaws2.7-dev,
+ libapq-postgresql1-dev (>= 3.0-2), gnat-4.4
+Conflicts: libalog-dev, libalog1-base-dev
+Replaces: libalog-dev, libalog1-base-dev
+Description: Logging framework for Ada (development)
+ Alog is a logging framework for Ada and aims to be straight forward to use and
+ easily extendable. Alog full offers more facilities than Alog base, notably
+ SMTP, PostgreSQL and XMPP/Jabber.
+ .
+ This package contains the development files.
+
+Package: libalog-base-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, libalog0.3-base (= ${binary:Version}),
+ libalog1-base-dev (= ${binary:Version})
+Conflicts: libalog-full-dbg
+Replaces: libalog-full-dbg
+Description: Logging framework for Ada (debug)
+ Alog is a logging framework for Ada and aims to be straight forward to use and
+ easily extendable. Alog base provides file-based and syslog logging facilities
+ and log-level support.
+ .
+ This package contains the debugging symbols.
+
+Package: libalog-full-dbg
+Section: debug
+Priority: extra
+Architecture: any
+Depends: ${misc:Depends}, libalog0.3-full (= ${binary:Version}),
+ libalog1-full-dev (= ${binary:Version})
+Conflicts: libalog-base-dbg
+Replaces: libalog-base-dbg
+Description: Logging framework for Ada (debug)
+ Alog is a logging framework for Ada and aims to be straight forward to use and
+ easily extendable. Alog full offers more facilities than Alog base, notably
+ SMTP, PostgreSQL and XMPP/Jabber.
+ .
+ This package contains the debugging symbols.
--- libalog-0.3.orig/debian/README.source
+++ libalog-0.3/debian/README.source
@@ -0,0 +1,8 @@
+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.
--- libalog-0.3.orig/debian/libalog0.3-full.lintian-overrides
+++ libalog-0.3/debian/libalog0.3-full.lintian-overrides
@@ -0,0 +1,2 @@
+libalog0.3-full: package-name-doesnt-match-sonames libalog0.3
+libalog0.3-full: shlib-with-executable-stack usr/lib/libalog.so.0.3
--- libalog-0.3.orig/debian/copyright
+++ libalog-0.3/debian/copyright
@@ -0,0 +1,26 @@
+Authors:
+ Reto Buerki <reet@codelabs.ch>
+ Adrian-Ken Rueegsegger <ken@codelabs.ch>
+Download: http://www.nongnu.org/alog/downloads.html
+
+Files: *
+Copyright:
+ (C) 2008-2010 Reto Buerki <reet@codelabs.ch>
+ (C) 2008-2010 Adrian-Ken Rueegsegger <ken@codelabs.ch>
+License: LGPL-2.1+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+ .
+ This library 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
+ Lesser General Public License for more details.
+ .
+ You should have received a copy of the GNU Lesser General Public
+ License along with this library; 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 Lesser General Public License
+ can be found in /usr/share/common-licenses/LGPL-2.1 file.
--- libalog-0.3.orig/debian/changelog
+++ libalog-0.3/debian/changelog
@@ -0,0 +1,49 @@
+libalog (0.3-2) unstable; urgency=low
+
+ * Disable stack checks (Closes: #506681).
+ * Use $(QUILT_STAMPFN) instead of patch target.
+
+ -- Adrian-Ken Rueegsegger <ken@codelabs.ch> Sat, 20 Feb 2010 03:19:18 +0100
+
+libalog (0.3-1) unstable; urgency=low
+
+ * Adding latest debian version (Closes: #514824).
+ * Fix dependencies and package names (Closes: #555098, #562378,
+ #533153).
+ * Convert to latest libaws jabber API.
+ * Fix lintian warning debian-watch-file-in-native-package.
+ * Adjust install and doc to new package names.
+ * Update copyright to include current year.
+ * Adjust installed alog project file.
+ * Override lintian warnings (false positives).
+ * Make alog compilable with libaws2.7.
+ * Update to Standards-Version 3.8.4 (no changes).
+ * Tighten apq-postgresql dep to version >= 3.0-2.
+
+ -- Adrian-Ken Rueegsegger <ken@codelabs.ch> Fri, 19 Feb 2010 20:27:13 +0100
+
+libalog (0.1-4) unstable; urgency=low
+
+ * Remove hppa as supported architecture (see #506681).
+ * New email addresses.
+
+ -- Adrian-Ken Rueegsegger <ken@codelabs.ch> Mon, 24 Nov 2008 15:19:19 +0100
+
+libalog (0.1-3) unstable; urgency=low
+
+ * Build against transition of latest ahven package.
+
+ -- Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch> Tue, 2 Sep 2008 11:31:29 +0200
+
+libalog (0.1-2) unstable; urgency=low
+
+ * Only building libalog on supported architectures.
+
+ -- Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch> Wed, 25 Jun 2008 15:14:42 +0200
+
+libalog (0.1-1) unstable; urgency=low
+
+ * Initial release.
+ * Applied gnat-4.3 fixes from git.
+
+ -- Adrian-Ken Rueegsegger <rueegsegger@swiss-it.ch> Mon, 16 Jun 2008 17:24:10 +0200
--- libalog-0.3.orig/debian/libalog0.3-full.docs
+++ libalog-0.3/debian/libalog0.3-full.docs
@@ -0,0 +1 @@
+README
--- libalog-0.3.orig/debian/libalog1-full-dev.install
+++ libalog-0.3/debian/libalog1-full-dev.install
@@ -0,0 +1,4 @@
+/usr/lib/*.a
+/usr/lib/*.so
+/usr/lib/ada
+/usr/share/ada/adainclude
--- libalog-0.3.orig/debian/libalog0.3-base.install
+++ libalog-0.3/debian/libalog0.3-base.install
@@ -0,0 +1 @@
+/usr/lib/*.so.*
--- libalog-0.3.orig/debian/libalog0.3-base.docs
+++ libalog-0.3/debian/libalog0.3-base.docs
@@ -0,0 +1 @@
+README
--- libalog-0.3.orig/debian/libalog0.3-full.install
+++ libalog-0.3/debian/libalog0.3-full.install
@@ -0,0 +1 @@
+/usr/lib/*.so.*
--- libalog-0.3.orig/debian/compat
+++ libalog-0.3/debian/compat
@@ -0,0 +1 @@
+7
--- libalog-0.3.orig/debian/patches/Disable-Stack-Checks.patch
+++ libalog-0.3/debian/patches/Disable-Stack-Checks.patch
@@ -0,0 +1,13 @@
+Author: Adrian-Ken Rueegsegger <ken@codelabs.ch>
+Description: Disable stack checks.
+
+--- alog.orig/alog_common.gpr
++++ alog/alog_common.gpr
+@@ -34,7 +34,6 @@
+ "-gnat05",
+ "-gnatwal",
+ "-gnatf",
+- "-fstack-check",
+ "-gnato");
+ end Alog_Common;
+
--- libalog-0.3.orig/debian/patches/Convert-to-latest-libaws-jabber-API.patch
+++ libalog-0.3/debian/patches/Convert-to-latest-libaws-jabber-API.patch
@@ -0,0 +1,85 @@
+Author: Adrian-Ken Rueegsegger <ken@codelabs.ch>
+Description: Convert to latest libaws jabber API.
+
+--- alog.orig/src/alog-facilities-xmpp.adb
++++ alog/src/alog-facilities-xmpp.adb
+@@ -22,7 +22,7 @@
+
+ with Ada.Exceptions;
+
+-with AWS.Jabber;
++with AWS.Jabber.Client;
+
+ package body Alog.Facilities.XMPP is
+
+@@ -30,7 +30,7 @@
+
+ procedure Set_Recipient
+ (Facility : in out Instance;
+- JID : String)
++ JID : String)
+ is
+ begin
+ Facility.Recipient := To_Unbounded_String (JID);
+@@ -87,38 +87,34 @@
+ end if;
+
+ declare
+- Server : AWS.Jabber.Server;
+- Status : AWS.Jabber.Presence_Status;
++ Client : AWS.Jabber.Client.Account;
++ Recipient : constant AWS.Jabber.Client.Jabber_ID :=
++ AWS.Jabber.Client.To_Jabber_ID
++ (Username => "ken",
++ Server => "swissjabber.org");
+ begin
+- -- Init xmpp server.
+- AWS.Jabber.Connect
+- (Server,
+- To_String (Facility.Server),
+- To_String (Facility.Sender.JID),
+- To_String (Facility.Sender.Password));
+-
+- -- Check presence of recipient
+- AWS.Jabber.Check_Presence
+- (Server,
+- To_String (Facility.Recipient),
+- Status);
+- if Status not in Available .. Do_Not_Disturb then
+- raise Recipient_Not_Present;
+- end if;
+-
+- -- Try to send message.
+- Send_Message
+- (Server,
+- JID => To_String (Facility.Recipient),
+- Subject => To_String (Facility.Subject),
+- Content => Msg);
++ AWS.Jabber.Client.Set_Host
++ (Account => Client,
++ Host => To_String (Facility.Server));
++ AWS.Jabber.Client.Set_Login_Information
++ (Account => Client,
++ User => To_String (Facility.Sender.JID),
++ Password => To_String (Facility.Sender.Password));
++
++ AWS.Jabber.Client.Connect (Account => Client);
++
++ AWS.Jabber.Client.Send
++ (Account => Client,
++ JID => Recipient,
++ Content => Msg,
++ Subject => To_String (Facility.Subject));
+
+- AWS.Jabber.Close (Server);
++ AWS.Jabber.Client.Close (Account => Client);
+
+ exception
+- when Error : Server_Error =>
++ when Error : AWS.Jabber.Client.Server_Error =>
+ -- Make sure that connecion to server is closed.
+- AWS.Jabber.Close (Server);
++ AWS.Jabber.Client.Close (Account => Client);
+ -- Raise Delivery_Failure exception, something went wrong.
+ raise Delivery_Failed
+ with Ada.Exceptions.Exception_Message (Error);
--- libalog-0.3.orig/debian/patches/series
+++ libalog-0.3/debian/patches/series
@@ -0,0 +1,2 @@
+Disable-Stack-Checks.patch
+Convert-to-latest-libaws-jabber-API.patch
--- libalog-0.3.orig/debian/misc/alog.gpr
+++ libalog-0.3/debian/misc/alog.gpr
@@ -0,0 +1,31 @@
+-- Alog project file for use with GNAT
+-- Copyright (c) 2010 Adrian-Ken Rueegsegger <ken@codelabs.ch>
+--
+-- 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
+-- Alog. Here is an example of how to use this project file:
+--
+-- with "alog";
+-- project Example is
+-- for Object_Dir use "obj";
+-- for Exec_Dir use ".";
+-- for Main use ("example");
+-- end Example;
+
+project Alog is
+ for Source_Dirs use ("/usr/share/ada/adainclude/alog");
+ for Library_Name use "alog";
+ for Library_Dir use "/usr/lib";
+ for Library_ALI_Dir use "/usr/lib/ada/adalib/alog";
+ for Library_Kind use "dynamic";
+ for Externally_Built use "true";
+end Alog;