--- libofx-0.9.0.orig/ofxconnect/ofxconnect.cpp +++ libofx-0.9.0/ofxconnect/ofxconnect.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include "libofx.h" #include /* Include config constants, e.g., VERSION TF */ #include --- libofx-0.9.0.orig/ofxconnect/ofxpartner.cpp +++ libofx-0.9.0/ofxconnect/ofxpartner.cpp @@ -34,7 +34,9 @@ #include #include +#include #include +#include using std::string; using std::vector; --- libofx-0.9.0.orig/ofxdump/ofxdump.cpp +++ libofx-0.9.0/ofxdump/ofxdump.cpp @@ -27,6 +27,8 @@ * (at your option) any later version. * * * ***************************************************************************/ +#include +#include #include #include #include --- libofx-0.9.0.orig/lib/ofx_utilities.cpp +++ libofx-0.9.0/lib/ofx_utilities.cpp @@ -16,12 +16,14 @@ * * ***************************************************************************/ #include +#include #include #include #include "ParserEventGeneratorKit.h" #include "SGMLApplication.h" #include +#include #include #include #include "messages.hh" --- libofx-0.9.0.orig/lib/ofx_request_statement.cpp +++ libofx-0.9.0/lib/ofx_request_statement.cpp @@ -21,6 +21,7 @@ #include #endif +#include #include #include "libofx.h" #include "ofx_utilities.hh" --- libofx-0.9.0.orig/lib/ofx_request_accountinfo.cpp +++ libofx-0.9.0/lib/ofx_request_accountinfo.cpp @@ -21,6 +21,7 @@ #include #endif +#include #include #include "libofx.h" #include "ofx_request_accountinfo.hh" --- libofx-0.9.0.orig/lib/ofx_request.cpp +++ libofx-0.9.0/lib/ofx_request.cpp @@ -21,6 +21,7 @@ #include #endif +#include #include #include "messages.hh" #include "libofx.h" --- libofx-0.9.0.orig/lib/ofx_preproc.cpp +++ libofx-0.9.0/lib/ofx_preproc.cpp @@ -76,7 +76,7 @@ ifstream input_file; ofstream tmp_file; char buffer[READ_BUFFER_SIZE]; - char iconv_buffer[READ_BUFFER_SIZE]; + char iconv_buffer[READ_BUFFER_SIZE * 2]; string s_buffer; char *filenames[3]; char tmp_filename[256]; @@ -150,7 +150,7 @@ fromcode=LIBOFX_DEFAULT_INPUT_ENCODING; } } - else if(ofx_encoding.compare("USASCII")==0) { + else if(ofx_encoding.compare("UTF-8")==0) { fromcode="UTF-8"; } else @@ -168,6 +168,9 @@ //Header processing header_name.assign(s_buffer.substr(0,header_separator_idx)); header_value.assign(s_buffer.substr(header_separator_idx+1)); + while ( header_value[header_value.length() -1 ] == '\n' || + header_value[header_value.length() -1 ] == '\r' ) + header_value.erase(header_value.length()-1); message_out(DEBUG,"ofx_proc_file():Header: "+header_name+" with value: "+header_value+" has been found"); if(header_name.compare("ENCODING")==0) { ofx_encoding.assign(header_value); @@ -182,9 +185,9 @@ s_buffer=sanitize_proprietary_tags(s_buffer); //cout<< s_buffer<<"\n"; #ifdef HAVE_ICONV - memset(iconv_buffer,0,READ_BUFFER_SIZE); + memset(iconv_buffer,0,READ_BUFFER_SIZE * 2); size_t inbytesleft = strlen(s_buffer.c_str()); - size_t outbytesleft = READ_BUFFER_SIZE; + size_t outbytesleft = READ_BUFFER_SIZE * 2 - 1; #ifdef OS_WIN32 const char * inchar = (const char *)s_buffer.c_str(); #else --- libofx-0.9.0.orig/lib/ofx_container_transaction.cpp +++ libofx-0.9.0/lib/ofx_container_transaction.cpp @@ -21,6 +21,7 @@ #include #endif +#include #include #include "messages.hh" #include "libofx.h" --- libofx-0.9.0.orig/debian/ofx.docs +++ libofx-0.9.0/debian/ofx.docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +totest.txt --- libofx-0.9.0.orig/debian/changelog +++ libofx-0.9.0/debian/changelog @@ -0,0 +1,466 @@ +libofx (1:0.9.0-3ubuntu3) natty; urgency=low + + * debian/applied-patches/libofx-utf8-rev1.patch: + + Patch by Yasuaki Taniguchi to better handle UTF-8 in OFX files. + (LP: #629996) + + -- Christopher James Halse Rogers Mon, 28 Feb 2011 09:47:23 +1100 + +libofx (1:0.9.0-3ubuntu2) karmic; urgency=low + + * No-change rebuild to drop dependency on libkrb53 + + -- Steve Langasek Mon, 19 Oct 2009 07:29:10 +0000 + +libofx (1:0.9.0-3ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes: + + debian/control: + - change build-depends from libcurl3-gnutls-dev to libcurl4-gnutls-dev + - update standards-version + + -- Emanuele Gentili Fri, 08 Aug 2008 05:14:15 +0200 + +libofx (1:0.9.0-3) unstable; urgency=low + + * lib/ofx_preproc.c (ofx_proc_file): Make iconv buffer twice as big in + case input files include non-ASCII UTF-8 characters. Patch thanks to + Jerome Vouillon (jerome.Vouillon@pps.jussieu.fr). (Closes: 493597) + + * Acknowledge NMU from Andreas Barth. (Thanks Andreas!) (Closes: #417361) + * Acknowledge NMU from Chris Lamb. (Thanks Chris!) (Closes: #474860) + + -- Thomas Bushnell, BSG Mon, 04 Aug 2008 23:16:30 -0700 + +libofx (1:0.9.0-2.2ubuntu1) intrepid; urgency=low + + * Merge from debian unstable, remaining changes (LP: #238266): + - Rebuild with libcurl4-gnutls (change build-depends from + libcurl3-gnutls-dev to libcurl4-gnutls-dev). + - debian/control: Change Maintainer to XSBC-Original-Maintainer. + + -- Nathan Handler Sat, 07 Jun 2008 23:17:55 -0500 + +libofx (1:0.9.0-2.2) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with GCC 4.3 (Closes: #474860) + * debian/control: + - Bump Standards-Version to 3.7.3. + - Use ${binary:Version} instead of ${Source-Version}. + * Call distclean in debian/rules clean target. + + -- Chris Lamb Sat, 12 Apr 2008 14:44:55 +0100 + +libofx (1:0.9.0-2.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS with gcc-4.3. Thanks to Martin Michlmayr. Closes: #417361 + + -- Andreas Barth Sun, 16 Mar 2008 22:48:14 +0000 + +libofx (1:0.9.0-2ubuntu1) hardy; urgency=low + + * new upstream release (LP: #181417) + * Rebuild with libcurl4-gnutls (change build-depends from + libcurl3-gnutls-dev to libcurl4-gnutls-dev). + * debian/control: Change Maintainer to XSBC-Original-Maintainer. + + -- Saïvann Carignan Wed, 06 Feb 2008 17:25:16 -0500 + +libofx (1:0.9.0-2) unstable; urgency=low + + * debian/control (libofx4): Don't Conflict, Provide, or Replace + the libofx2 packages. That job is for the old libofx3 only. + (Closes: #463854) + + -- Thomas Bushnell, BSG Mon, 04 Feb 2008 19:35:39 -0500 + +libofx (1:0.9.0-1) unstable; urgency=low + + * New upstream release. + * Regenerate autotools using Debian libtool by: + libtoolize --copy --force; aclocal-1.9; autoconf. + * debian/control (libofx4): Renamed package from libofx3. + (libofx-dev): Depend on libofx4 instead of libofx3. + * debian/rules (PACKNAME): Update to libofx4. + (version): Update to 0.9.0. + * libofx4.docs: Renamed from libofx3.docs. + + * debian/rules (major): Delete unused variable, and commented idle + code that mentioned it. + + * debian/copyright: Add proper authorship and copyright information, and + the license information for the OFX dtd's. (Closes: #460407) + + * debian/rules (binary-arch): Don't put /usr/include in the $(PACKNAME) + package. + + -- Thomas Bushnell, BSG Sun, 30 Dec 2007 21:24:51 -0800 + +libofx (1:0.8.2-3ubuntu2) gutsy; urgency=low + + * Rebuild for the libcurl4 -> libcurl3 transition mess. + + -- Steve Kowalik Thu, 5 Jul 2007 10:12:48 +1000 + +libofx (1:0.8.2-3ubuntu1) gutsy; urgency=low + + * Rebuild with libcurl4-gnutls (change build-depends from + libcurl3-gnutls-dev to libcurl4-gnutls-dev). + * debian/control: Change Maintainer to XSBC-Original-Maintainer. + + -- Michael Bienia Mon, 11 Jun 2007 18:20:46 +0200 + +libofx (1:0.8.2-3) unstable; urgency=low + + * debian/control (Standards-Version): Update to 3.7.2. + + -- Thomas Bushnell, BSG Fri, 20 Oct 2006 13:12:33 -0700 + +libofx (1:0.8.2-2) unstable; urgency=low + + * Acknowledge NMU. Thanks Matthias! (Closes: #385821, #385667, + #385880, #386068) + + -- Thomas Bushnell, BSG Thu, 28 Sep 2006 15:21:16 -0700 + +libofx (1:0.8.2-1.1) unstable; urgency=low + + * NMU. + * Drop build dependency on g++-4.0. Closes: #385821. + * New library package libofx3. Closes: #385667, #385880. + + -- Matthias Klose Tue, 5 Sep 2006 02:29:16 +0200 + +libofx (1:0.8.2-1) unstable; urgency=low + + * New upstream release. (Closes: #287388) + * debian/control (Build-Depends): Add libxml++1.0-dev. + * Regenerate autotools using Debian libtool by: + libtoolize --copy --force; aclocal-1.9; autoconf. + * debian/rules: Put pkgconfig files into the -dev package. + + -- Thomas Bushnell, BSG Tue, 29 Aug 2006 12:52:48 -0700 + +libofx (1:0.8.0-12) unstable; urgency=low + + * debian/rules (MAKEVARS): Include $(version) in the name of the + LIBOFX_DTD_DIR, so that we can put those files in the shared library + package and still have more than one version of the shared library + installed. + (binary-arch): Put the dtd files into the shared library package. + * debian/control (ofx): Don't mention the runtime support files here (or + anywhere else, actually). + + -- Thomas Bushnell, BSG Mon, 29 May 2006 11:23:51 -0700 + +libofx (1:0.8.0-11) unstable; urgency=low + + * debian/control (libofx2c2a): No longer depend on ofx. This was only + there because the old library package had the binaries which are now + in the separate package. These programs were not important enough for + this to be done, and circular dependencies are bad. Instead, use + "Suggests". (Closes: #358383, #345672) + (libofx-dev): Conflict with libofx1, which contained some development + files. + + * debian/ofx.docs: New file. + * debian/libofx2c2a.docs: Renamed from libofx2.docs. + * debian/libofx2.substvars, debian/libofx2.postinst.debhelper, + debian/libofx2.postrm.debhelper: Remove cruft. + (Closes: #361145) + + -- Thomas Bushnell, BSG Fri, 28 Apr 2006 18:41:04 -0700 + +libofx (1:0.8.0-10) unstable; urgency=low + + * debian/rules (PACKNAME, MAKEVARS): New variables, to reduce + redundancy. $(PACKNAME) replaces libofx2c2a. $(MAKEVARS) is prefixed + on all invocations of make. Specify LIBOFX_DTD_DIR on make + invocations. + (install): No longer move files into correct location, since + the new make variables just install them properly the first time. + (Closes: #343722) + + -- Thomas Bushnell, BSG Wed, 4 Jan 2006 12:03:47 -0800 + +libofx (1:0.8.0-9) unstable; urgency=low + + * Generate autotools using Debian libtool (rerun libtoolize --copy + --force, aclocal-1.9, autoconf). (Closes: #341190) + + -- Thomas Bushnell, BSG Tue, 29 Nov 2005 00:12:00 -0800 + +libofx (1:0.8.0-8) unstable; urgency=low + + * debian/control (libofx-dev): Conflict with libofx2, which in its + released versions, contained the .a archives which are now in + libofx-dev. (Don't actually declare a replacement here, because + that's not really correct; however, libofx-dev does depend on + libofx2c2a, which in turn does Replace libofx2.) (Closes: #340772) + + -- Thomas Bushnell, BSG Fri, 25 Nov 2005 13:20:38 -0800 + +libofx (1:0.8.0-7) unstable; urgency=low + + * ofxconnect/Makefile.am (ofxconnect_LDADD): Replace -lssl with + -lgnutls-openssl. Remove -lcrypt. + + -- Thomas Bushnell, BSG Wed, 23 Nov 2005 23:29:22 -0800 + +libofx (1:0.8.0-6) unstable; urgency=low + + * debian/rules (install, binary-arch): Put files in libofx2c2a package, + not deprecated libofx2. + + -- Thomas Bushnell, BSG Tue, 22 Nov 2005 17:57:13 -0800 + +libofx (1:0.8.0-5) unstable; urgency=low + + * debian/rules (libofx2c2a): New package name, replacing libofx2, to + signal ABI change. Add Conflicts/Replaces against libofx2. + (Build-Depends): Require at least version 4.0.2-4 of + g++-4.0 (which produces this new ABI). + (libofx-dev): Depend on libofx2c2a instead of libofx2. Update + description as well. + (Closes: #339214) + + -- Thomas Bushnell, BSG Fri, 18 Nov 2005 00:37:29 -0800 + +libofx (1:0.8.0-4) unstable; urgency=low + + * debian/compat: New file (level 4). + + * debian/control (Build-Depends): Use libcurl3-gnutls-dev instead of + libcurl3-dev to avoid libssl in this GPLd program. + + * debian/control (Build-Depends): Depend on libcurl3-gnutls and + libkrb5-dev to work around dependency bug in libcurl3-gnutls-dev. + + * debian/rules (binary-arch): Put .a and .la files into libofx-dev instead + of libofx. + * debian/control (ofx): New package. + * debian/control (libofx2): Depend on ofx. + * debian/rules (binary-arch): Install new ofx files into the new place. + (Closes: #326989) + + * debian/rules (install): Put installed docs into proper directory name. + (Closes: #294944) + + -- Thomas Bushnell, BSG Sat, 15 Oct 2005 15:32:42 -0700 + +libofx (1:0.8.0-3) unstable; urgency=low + + * debian/shlibs: Delete file (we're using dh_makeshlibs). (Closes: #325791). + * debian/libofx0c102.docs: renamed to libofx2.docs. + + -- Thomas Bushnell, BSG Tue, 30 Aug 2005 17:54:00 -0700 + +libofx (1:0.8.0-2) unstable; urgency=high + + * debian/rules (binary-arch): Remove COPYING file from correct location. + (version): Set to 0.8.0. + (install): Remove doc files from correct location. + + * debian/control: 0.8.0 is an soname bump (not mentioned in the upstream + ChangeLog, unfortunately), so rename the binary package to be libofx2, + make corresponding changes here, and remove the conflicts with libofx1 + and libofx0c102. + * debian/rules (binary-arch): Fetch documentation notes from libofx2 subdir. + (major): Set to 2. + (Closes: #324955) + + -- Thomas Bushnell, BSG Sat, 27 Aug 2005 13:38:38 -0700 + +libofx (1:0.8.0-1) unstable; urgency=low + + * Accept NMU from Thomas Viehmann. (Closes #319963) + + * New upstream release. (Closes: #324793) + + * debian/control (Build-Depends): Depend on libcurl3-dev, which is the + new location of the curl-config program. + + -- Thomas Bushnell, BSG Tue, 23 Aug 2005 19:33:52 -0700 + +libofx (1:0.7.0-7.1) unstable; urgency=low + + * Non-Maintainer Upload (patch prepared by Micha Lenk, but revised) + * C++ transition: rename libofx1 to libofx1c2 (Closes: #319963). + + -- Thomas Viehmann Sun, 31 Jul 2005 16:07:41 +0200 + +libofx (1:0.7.0-7) unstable; urgency=low + + * Declare that libofx1 Replaces: libofx0c102. + + -- Thomas Bushnell, BSG Tue, 11 Jan 2005 18:52:28 -0800 + +libofx (1:0.7.0-6) unstable; urgency=low + + * I misunderstood the instructions of the ftp masters. Revert the name + of the -dev package to libofx-dev (without number). + + -- Thomas Bushnell, BSG Mon, 10 Jan 2005 22:28:16 -0800 + +libofx (1:0.7.0-5) unstable; urgency=low + + * Whoops, source package should remain libofx. New epoch to deal with + upload under this name that had the epoch marked. + + -- Thomas Bushnell, BSG Mon, 10 Jan 2005 20:28:59 -0800 + +libofx1 (0.7.0-4) unstable; urgency=low + + * Change source package name to libofx1 to avoid collision with the + still-used 0.6.6 version of the library (which is now libofx0). + + -- Thomas Bushnell, BSG Mon, 10 Jan 2005 16:05:30 -0800 + +libofx (0.7.0-3) unstable; urgency=low + + * debian/shlibs: package for libofx is now libofx1. + + -- Thomas Bushnell, BSG Mon, 10 Jan 2005 12:31:42 -0800 + +libofx (0.7.0-2) unstable; urgency=high + + * debian/control: shlib package should be libofx1; adjust both + descriptions and dependency information to match. (Closes: #289595). + + * lib/tree.hh ( destructor): Avoid explicit qualification in + declaration. (Closes: #289695). + + -- Thomas Bushnell, BSG Mon, 10 Jan 2005 11:43:40 -0800 + +libofx (0.7.0-1) unstable; urgency=low + + * New maintainer (Closes: #242468). + * New upstream release. + * debian/rules: Update version and major. + * debian/control: build-depends on gengetopt and curl. + * debian/shlibs: update soname. + + -- Thomas Bushnell, BSG Sat, 8 Jan 2005 13:31:53 -0800 + +libofx (0.6.6-2.1) unstable; urgency=high + + * Non-maintainer upload to fix release-critical bug. + * Correct the Maintainer field by removing the spurious trailing dot, + closes: #273421. + + -- Stephen Quinney Wed, 29 Sep 2004 09:41:45 +0100 + +libofx (0.6.6-2) unstable; urgency=low + + * QA Upload. + * Set maintainer to Debian QA Group . + + -- Thomas Bushnell, BSG Tue, 17 Aug 2004 20:44:18 -0700 + +libofx (0.6.6-1) unstable; urgency=low + + * New upstream release. + + -- James A. Treacy Fri, 16 Jan 2004 11:23:51 -0500 + +libofx (0.6.5-1) unstable; urgency=low + + * New upstream release. + + -- James A. Treacy Thu, 23 Oct 2003 23:04:02 -0400 + +libofx (0.6.4-2) unstable; urgency=low + + * Add missing #include to ofx_utilities.cpp, which caused a build + problem on some machines. Upstream cvs is already fixed. Closes: #191964 + + -- James A. Treacy Tue, 6 May 2003 22:10:56 -0400 + +libofx (0.6.4-1) unstable; urgency=low + + * New upstream release. + + -- James A. Treacy Sun, 13 Apr 2003 12:01:13 -0400 + +libofx (0.6.3-2) unstable; urgency=low + + * recompiled for sp updates. + + -- James A. Treacy Wed, 2 Apr 2003 22:06:57 -0500 + +libofx (0.6.3-1) unstable; urgency=low + + * New upstream release. + + -- James A. Treacy Wed, 19 Mar 2003 08:42:41 -0500 + +libofx (0.6.2-10) unstable; urgency=low + + * Add docs accidentally removed in transition to gcc3.2. Closes: #180657 + + -- James A. Treacy Tue, 11 Feb 2003 22:13:21 -0500 + +libofx (0.6.2-9) unstable; urgency=low + + * Update shlibs for gcc 3.2 + * update build files. Closes: #176312 + + -- James A. Treacy Mon, 13 Jan 2003 01:00:53 -0500 + +libofx (0.6.2-8) unstable; urgency=low + + * build requires libosp-dev (>= 1.5release-1). + + -- James A. Treacy Sun, 12 Jan 2003 01:11:32 -0500 + +libofx (0.6.2-7) unstable; urgency=low + + * Fix libofx-dev dependency. + + -- James A. Treacy Sat, 11 Jan 2003 14:08:24 -0500 + +libofx (0.6.2-6) unstable; urgency=low + + * package renamed for transition to g++ 3.2 + + -- James A. Treacy Wed, 8 Jan 2003 00:28:50 -0500 + +libofx (0.6.2-5) unstable; urgency=low + + * Replacement config.sub and config.guess go in a subdir. Odd. Closes: #174066 + + -- James A. Treacy Tue, 24 Dec 2002 14:24:10 -0500 + +libofx (0.6.2-4) unstable; urgency=low + + * libofx-dev depends on libosp-dev. Closes: + + -- James A. Treacy Tue, 24 Dec 2002 12:28:40 -0500 + +libofx (0.6.2-3) unstable; urgency=low + + * uses newer version of config.sub and config.guess. Closes: #174066 + + -- James A. Treacy Mon, 23 Dec 2002 14:46:07 -0500 + +libofx (0.6.2-2) unstable; urgency=low + + * fix osp dependency + + -- James A. Treacy Sun, 22 Dec 2002 22:52:45 -0500 + +libofx (0.6.2-1) unstable; urgency=low + + * New upstream source + * Remove unneeded call to autoconf in build + + -- James A. Treacy Sun, 22 Dec 2002 14:22:42 -0500 + +libofx (0.6.1-1) unstable; urgency=low + + * Initial release. + + -- James A. Treacy Fri, 22 Nov 2002 02:07:18 -0500 + --- libofx-0.9.0.orig/debian/control +++ libofx-0.9.0/debian/control @@ -0,0 +1,36 @@ +Source: libofx +Section: libs +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Thomas Bushnell, BSG +Build-Depends: libosp-dev (>= 1.5.1.0-2.1), debhelper, gengetopt, curl, libcurl4-gnutls-dev, libxml++1.0-dev +Standards-Version: 3.8.0 + +Package: libofx4 +Architecture: any +Depends: ${shlibs:Depends} +Suggests: ofx +Description: library to support Open Financial Exchange + Open Financial Exchange is an open standard for exchanging financial + information. Using this library a program can enable support for + common financial transactions such as bill payment, accessing account + information and investment tracking. + +Package: libofx-dev +Section: libdevel +Conflicts: libofx1 +Architecture: any +Depends: libofx4 (= ${binary:Version}), libc6-dev | libc-dev, libosp-dev +Description: development package for libofx2c2a + This file provides header files and related support for developing + packages that use libofx2c2a. + +Package: ofx +Architecture: any +Depends: ${shlibs:Depends} +Conflicts: libofx2 (<= 1:0.8.0-3), libofx1c2, libofx1 +Description: Open Financial Exchange programs + This package contains programs that implement a primitive interface for + exchanging financial information using Open Financial Exchange. More + sophisticated access is normally done through programs using the libofx + library rather than with the programs here. --- libofx-0.9.0.orig/debian/rules +++ libofx-0.9.0/debian/rules @@ -0,0 +1,100 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# shared library versions, option 1 +version=0.9.0 + +# Name of the shared library package +PACKNAME=libofx4 +MAKEVARS=LIBOFX_DTD_DIR=/usr/share/$(PACKNAME)/$(version)/dtd + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + # automake + # autoconf + ./configure --prefix=/usr + + touch configure-stamp + +build: configure-stamp build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + $(MAKE) $(MAKEVARS) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + + # Add here commands to clean up after the build process. + -$(MAKE) $(MAKEVARS) clean + -$(MAKE) $(MAKEVARS) distclean + rm -f build-stamp configure-stamp config.cache config.log config.status doc/g-wrap.info + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) $(MAKEVARS) install DESTDIR=`pwd`/debian/tmp + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot + + dh_installdocs + dh_installexamples + dh_installmanpages + dh_installinfo + + dh_movefiles -plibofx-dev \ + usr/lib/libofx.a \ + usr/lib/libofx.la \ + usr/lib/libofx.so \ + usr/include \ + usr/lib/pkgconfig + cp -rp doc/html debian/libofx-dev/usr/share/doc/libofx-dev + cp -rp doc/ofx_sample_files debian/libofx-dev/usr/share/doc/libofx-dev + -rm -rf debian/libofx-dev/usr/share/doc/libofx-dev/ofx_sample_files/CVS + + dh_movefiles -pofx \ + usr/bin + + dh_movefiles -p$(PACKNAME) \ + usr/share/$(PACKNAME)/$(version)/dtd \ + usr/lib + -rmdir debian/$(PACKNAME)/usr/include + +# dh_undocumented + dh_installchangelogs ChangeLog + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- libofx-0.9.0.orig/debian/dirs +++ libofx-0.9.0/debian/dirs @@ -0,0 +1,2 @@ +usr/lib +usr/include --- libofx-0.9.0.orig/debian/compat +++ libofx-0.9.0/debian/compat @@ -0,0 +1 @@ +4 --- libofx-0.9.0.orig/debian/libofx4.docs +++ libofx-0.9.0/debian/libofx4.docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +totest.txt --- libofx-0.9.0.orig/debian/libofx-dev.docs +++ libofx-0.9.0/debian/libofx-dev.docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +totest.txt --- libofx-0.9.0.orig/debian/copyright +++ libofx-0.9.0/debian/copyright @@ -0,0 +1,66 @@ +This package was debianized by James Treacy on +Sun, 16 Dec 2002 14:37:59 -0500. + +Upstream Homepage: http://libofx.sourceforge.net/ + +Author: Benoit Grégoire. + +Copyright: + 2002, 2004 by Benoit Grégoire + 2005 by Ace Jones. + 2001-2005 by Kasper Peeters. + 2007 by Martin Preuss. + 1989, 1991-2007 by Free Software Foundation. + 1994 by X Consortium. + 1997-1999 by Joey Hess. + +Licensed under the GNU General Public License. Debian GNU/Linux users may +find this license in /usr/share/common-licenses/GPL. + +The file ofx201.dtd is Copyright 1997, 1998, 1999, 2001 by CheckFree +Corp., Intiut Inc., and Microsoft Corp. + +The file ofx160.dtd is Copyright 1997, 1998, 1999 by CheckFree Corp., +Intuit Inc., and Microsoft Corp. + +Both ofx201.dtd and ofx160.dtd are from the Open Financial Exchange +standard (more recent versions are at www.ofx.net), and are +distributed under the following terms: + + A royalty-free, worldwide, and perpetual license is hereby granted to + any party to use the Open Financial Exchange Specification to make, use, + and sell products and services that conform to this Specification. + + THIS OPEN FINANCIAL EXCHANGE SPECIFICATION IS MADE AVAILABLE "AS IS" + WITHOUT WARRANTY OF ANY KIND. TO THE MAXIMUM EXTENT PERMITTED BY + APPLICABLE LAW, MICROSOFT, INTUIT AND CHECKFREE ("PUBLISHERS") FURTHER + DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION ANY IMPLIED + WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT, ALL OF WHICH ARE HEREBY DISCLAIMED. THE ENTIRE RISK + ARISING OUT OF THE USE OF THIS SPECIFICATION REMAINS WITH RECIPIENT. TO + THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT SHALL THE + PUBLISHERS OF THIS SPECIFICATION BE LIABLE FOR ANY CONSEQUENTIAL, + INCIDENTAL, DIRECT, INDIRECT, SPECIAL, PUNITIVE, OR OTHER DAMAGES + WHATSOEVER (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS + PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR OTHER + PECUNIARY LOSS) ARISING OUT OF ANY USE TO WHICH THIS SPECIFICATION IS + PUT, EVEN IF THE PUBLISHERS HEREOF HAVE BEEN ADVISED OF THE POSSIBILITY + OF SUCH DAMAGES. + +Further clarification of these terms from the OFX Foundation says that +the restriction which appears to only allow things which "conform to +this Specification" means specifically that if an implementation +claims to conform to OFX but does not then there is a problem, but +otherwise there is none: + + As long as your software doesn't state that it uses OFX (i.e. doesn't + mention what it uses), then all should be fine. + + The bottom line seems to be that it is fine if you use OFX technology as + long as you do not represent your own enhanced version (added to or + changed) as official "OFX". + + Your software need not implement the whole DTD. + +This thus permits the distribution of modifications (a key question), +provided that there is no inaccurate claim made about OFX compliance. --- libofx-0.9.0.orig/debian/applied-patches/libofx-utf8-rev1.patch +++ libofx-0.9.0/debian/applied-patches/libofx-utf8-rev1.patch @@ -0,0 +1,31 @@ +Description: Fix importing of OFX files containing UTF-8 characters +Origin/Author: Yasuaki Taniguchi +Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libofx/+bug/629996 +Bug: http://sourceforge.net/support/tracker.php?aid=3059200 + +Index: lib/ofx_preproc.cpp +=================================================================== +RCS file: /cvsroot/libofx/libofx/lib/ofx_preproc.cpp,v +retrieving revision 1.26 +diff -u -r1.26 ofx_preproc.cpp +--- lib/ofx_preproc.cpp 27 Apr 2010 17:29:18 -0000 1.26 ++++ lib/ofx_preproc.cpp 4 Sep 2010 01:12:45 -0000 +@@ -150,7 +150,7 @@ + fromcode=LIBOFX_DEFAULT_INPUT_ENCODING; + } + } +- else if(ofx_encoding.compare("USASCII")==0) { ++ else if(ofx_encoding.compare("UTF-8")==0) { + fromcode="UTF-8"; + } + else +@@ -168,6 +168,9 @@ + //Header processing + header_name.assign(s_buffer.substr(0,header_separator_idx)); + header_value.assign(s_buffer.substr(header_separator_idx+1)); ++ while ( header_value[header_value.length() -1 ] == '\n' || ++ header_value[header_value.length() -1 ] == '\r' ) ++ header_value.erase(header_value.length()-1); + message_out(DEBUG,"ofx_proc_file():Header: "+header_name+" with value: "+header_value+" has been found"); + if(header_name.compare("ENCODING")==0) { + ofx_encoding.assign(header_value);