--- freetds-0.63.orig/include/tds.h +++ freetds-0.63/include/tds.h @@ -749,6 +749,7 @@ { char *language; char *char_set; + char *client_charset; char *date_fmt; } TDSLOCALE; --- freetds-0.63.orig/config.sub +++ freetds-0.63/config.sub @@ -1,12 +1,9 @@ #! /bin/sh -# -# $NetBSD: config.sub,v 1.6 2003/07/11 10:11:33 chris Exp $ -# # Configuration validation subroutine script. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -timestamp='2003-07-04' +timestamp='2006-02-23' # This file is (in principle) common to ALL GNU software. # The presence of a machine in this file suggests that SOME GNU software @@ -24,14 +21,15 @@ # # 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., 59 Temple Place - Suite 330, -# Boston, MA 02111-1307, USA. - +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. +# # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. + # Please send patches to . Submit a context # diff and a properly formatted ChangeLog entry. # @@ -73,7 +71,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -86,11 +84,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - ) # Use stdin as input. @@ -102,7 +100,7 @@ *local*) # First pass through any local machine types. echo $1 - exit 0;; + exit ;; * ) break ;; @@ -121,7 +119,9 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | kfreebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; @@ -147,7 +147,7 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis) + -apple | -axis | -knuth | -cray) os= basic_machine=$1 ;; @@ -172,6 +172,10 @@ -hiux*) os=-hiuxwe2 ;; + -sco6) + os=-sco5v6 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco5) os=-sco3.2v5 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -188,6 +192,10 @@ # Don't forget version if it is 3.2v4 or newer. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` + ;; -sco*) os=-sco3.2v2 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` @@ -231,14 +239,16 @@ | a29k \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ + | bfin \ | c4x | clipper \ | d10v | d30v | dlx | dsp16xx \ | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | i370 | i860 | i960 | ia64 \ - | ip2k \ - | m32r | m68000 | m68k | m88k | mcore \ + | ip2k | iq2000 \ + | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -247,30 +257,38 @@ | mips64vr4100 | mips64vr4100el \ | mips64vr4300 | mips64vr4300el \ | mips64vr5000 | mips64vr5000el \ + | mips64vr5900 | mips64vr5900el \ | mipsisa32 | mipsisa32el \ | mipsisa32r2 | mipsisa32r2el \ | mipsisa64 | mipsisa64el \ + | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ + | mt \ | msp430 \ + | nios | nios2 \ | ns16k | ns32k \ - | openrisc | or32 \ + | or32 \ | pdp10 | pdp11 | pj | pjl \ | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ | pyramid \ - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ + | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \ + | sparcv8 | sparcv9 | sparcv9b \ | strongarm \ | tahoe | thumb | tic4x | tic80 | tron \ | v850 | v850e \ | we32k \ - | x86 | xscale | xstormy16 | xtensa \ + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \ | z8k) basic_machine=$basic_machine-unknown ;; + m32c) + basic_machine=$basic_machine-unknown + ;; m6811 | m68hc11 | m6812 | m68hc12) # Motorola 68HC11/12. basic_machine=$basic_machine-unknown @@ -278,6 +296,9 @@ ;; m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) ;; + ms1) + basic_machine=mt-unknown + ;; # We use `pc' rather than `unknown' # because (1) that's what they normally are, and @@ -298,19 +319,19 @@ | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | avr-* \ - | bs2000-* \ + | bfin-* | bs2000-* \ | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ - | clipper-* | cydra-* \ + | clipper-* | craynv-* | cydra-* \ | d10v-* | d30v-* | dlx-* \ | elxsi-* \ | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ | h8300-* | h8500-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | i*86-* | i860-* | i960-* | ia64-* \ - | ip2k-* \ - | m32r-* \ + | ip2k-* | iq2000-* \ + | m32r-* | m32rle-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ - | m88110-* | m88k-* | mcore-* \ + | m88110-* | m88k-* | maxq-* | mcore-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips16-* \ | mips64-* | mips64el-* \ @@ -319,33 +340,41 @@ | mips64vr4100-* | mips64vr4100el-* \ | mips64vr4300-* | mips64vr4300el-* \ | mips64vr5000-* | mips64vr5000el-* \ + | mips64vr5900-* | mips64vr5900el-* \ | mipsisa32-* | mipsisa32el-* \ | mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa64-* | mipsisa64el-* \ + | mipsisa64r2-* | mipsisa64r2el-* \ | mipsisa64sb1-* | mipsisa64sb1el-* \ | mipsisa64sr71k-* | mipsisa64sr71kel-* \ | mipstx39-* | mipstx39el-* \ + | mmix-* \ + | mt-* \ | msp430-* \ - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ + | nios-* | nios2-* \ + | none-* | np1-* | ns16k-* | ns32k-* \ | orion-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ | pyramid-* \ | romp-* | rs6000-* \ - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ - | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ + | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \ + | sparclite-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ | tahoe-* | thumb-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tron-* \ | v850-* | v850e-* | vax-* \ | we32k-* \ - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ - | xtensa-* \ + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \ + | xstormy16-* | xtensa-* \ | ymp-* \ | z8k-*) ;; + m32c-*) + ;; # Recognize the various machine names and aliases which stand # for a CPU type and a company and sometimes even an OS. 386bsd) @@ -362,6 +391,9 @@ basic_machine=a29k-amd os=-udi ;; + abacus) + basic_machine=abacus-unknown + ;; adobe68k) basic_machine=m68010-adobe os=-scout @@ -379,6 +411,9 @@ amd64) basic_machine=x86_64-pc ;; + amd64-*) + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; amdahl) basic_machine=580-amdahl os=-sysv @@ -438,12 +473,27 @@ basic_machine=j90-cray os=-unicos ;; + craynv) + basic_machine=craynv-cray + os=-unicosmp + ;; + cr16c) + basic_machine=cr16c-unknown + os=-elf + ;; crds | unos) basic_machine=m68k-crds ;; + crisv32 | crisv32-* | etraxfs*) + basic_machine=crisv32-axis + ;; cris | cris-* | etrax*) basic_machine=cris-axis ;; + crx) + basic_machine=crx-unknown + os=-elf + ;; da30 | da30-*) basic_machine=m68k-da30 ;; @@ -466,6 +516,10 @@ basic_machine=m88k-motorola os=-sysv3 ;; + djgpp) + basic_machine=i586-pc + os=-msdosdjgpp + ;; dpx20 | dpx20-*) basic_machine=rs6000-bull os=-bosx @@ -644,10 +698,6 @@ mips3*) basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown ;; - mmix*) - basic_machine=mmix-knuth - os=-mmixware - ;; monitor) basic_machine=m68k-rom68k os=-coff @@ -660,6 +710,9 @@ basic_machine=i386-pc os=-msdos ;; + ms1-*) + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` + ;; mvs) basic_machine=i370-ibm os=-mvs @@ -728,10 +781,6 @@ np1) basic_machine=np1-gould ;; - nv1) - basic_machine=nv1-cray - os=-unicosmp - ;; nsr-tandem) basic_machine=nsr-tandem ;; @@ -739,9 +788,12 @@ basic_machine=hppa1.1-oki os=-proelf ;; - or32 | or32-*) + openrisc | openrisc-*) basic_machine=or32-unknown - os=-coff + ;; + os400) + basic_machine=powerpc-ibm + os=-os400 ;; OSE68000 | ose68000) basic_machine=m68000-ericsson @@ -768,6 +820,12 @@ pc532 | pc532-*) basic_machine=ns32k-pc532 ;; + pc98) + basic_machine=i386-pc + ;; + pc98-*) + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` + ;; pentium | p5 | k5 | k6 | nexgen | viac3) basic_machine=i586-pc ;; @@ -824,6 +882,10 @@ basic_machine=i586-unknown os=-pw32 ;; + rdos) + basic_machine=i386-pc + os=-rdos + ;; rom68k) basic_machine=m68k-rom68k os=-coff @@ -963,6 +1025,10 @@ tower | tower-32) basic_machine=m68k-ncr ;; + tpf) + basic_machine=s390x-ibm + os=-tpf + ;; udi29k) basic_machine=a29k-amd os=-udi @@ -1006,6 +1072,10 @@ basic_machine=hppa1.1-winbond os=-proelf ;; + xbox) + basic_machine=i686-pc + os=-mingw32 + ;; xps | xps100) basic_machine=xps100-honeywell ;; @@ -1036,6 +1106,9 @@ romp) basic_machine=romp-ibm ;; + mmix) + basic_machine=mmix-knuth + ;; rs6000) basic_machine=rs6000-ibm ;; @@ -1052,16 +1125,10 @@ we32k) basic_machine=we32k-att ;; - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) basic_machine=sh-unknown ;; - sh5el) - basic_machine=sh5le-unknown - ;; - sh64) - basic_machine=sh64-unknown - ;; - sparc | sparcv9 | sparcv9b) + sparc | sparcv8 | sparcv9 | sparcv9b) basic_machine=sparc-sun ;; cydra) @@ -1134,19 +1201,23 @@ | -aos* \ | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ - | -hiux* | -386bsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \ - | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ + | -openbsd* | -solidbsd* \ + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ | -chorusos* | -chorusrdb* \ | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ - | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ + | -uxpv* | -beos* | -mpeix* | -udk* \ | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ - | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ + | -skyos* | -haiku* | -rdos*) # Remember, each alternative MUST END IN *, to match a version number. ;; -qnx*) @@ -1164,12 +1235,15 @@ os=`echo $os | sed -e 's|nto|nto-qnx|'` ;; -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) ;; -mac*) os=`echo $os | sed -e 's|mac|macos|'` ;; + -linux-dietlibc) + os=-linux-dietlibc + ;; -linux*) os=`echo $os | sed -e 's|linux|linux-gnu|'` ;; @@ -1182,6 +1256,9 @@ -opened*) os=-openedition ;; + -os400*) + os=-os400 + ;; -wince*) os=-wince ;; @@ -1203,6 +1280,9 @@ -atheos*) os=-atheos ;; + -syllable*) + os=-syllable + ;; -386bsd) os=-bsd ;; @@ -1225,6 +1305,9 @@ -sinix*) os=-sysv4 ;; + -tpf*) + os=-tpf + ;; -triton*) os=-sysv3 ;; @@ -1261,6 +1344,9 @@ -kaos*) os=-kaos ;; + -zvmoe) + os=-zvmoe + ;; -none) ;; *) @@ -1338,9 +1424,15 @@ *-be) os=-beos ;; + *-haiku) + os=-haiku + ;; *-ibm) os=-aix ;; + *-knuth) + os=-mmixware + ;; *-wec) os=-proelf ;; @@ -1473,9 +1565,15 @@ -mvs* | -opened*) vendor=ibm ;; + -os400*) + vendor=ibm + ;; -ptx*) vendor=sequent ;; + -tpf*) + vendor=ibm + ;; -vxsim* | -vxworks* | -windiss*) vendor=wrs ;; @@ -1500,7 +1598,7 @@ esac echo $basic_machine$os -exit 0 +exit # Local variables: # eval: (add-hook 'write-file-hooks 'time-stamp) --- freetds-0.63.orig/src/odbc/odbc.c +++ freetds-0.63/src/odbc/odbc.c @@ -729,10 +729,6 @@ } #if (ODBCVER >= 0x0300) -#ifndef SQLULEN -/* unixodbc began defining SQLULEN in recent versions; this lets us complile if you're using an older version. */ -# define SQLULEN SQLUINTEGER -#endif SQLRETURN SQL_API SQLSetEnvAttr(SQLHENV henv, SQLINTEGER Attribute, SQLPOINTER Value, SQLINTEGER StringLength) { --- freetds-0.63.orig/src/tds/mem.c +++ freetds-0.63/src/tds/mem.c @@ -617,6 +617,9 @@ if (locale->char_set) if (!tds_dstr_copy(&connection->server_charset, locale->char_set)) goto Cleanup; + if (locale->client_charset) + if (!tds_dstr_copy(&connection->client_charset,locale->client_charset)) + goto Cleanup; } if (tds_dstr_isempty(&connection->language)) { if (!tds_dstr_copy(&connection->language, TDS_DEF_LANG)) @@ -871,6 +874,8 @@ free(locale->char_set); if (locale->date_fmt) free(locale->date_fmt); + if (locale->client_charset) + free(locale->client_charset); free(locale); } --- freetds-0.63.orig/src/tds/locale.c +++ freetds-0.63/src/tds/locale.c @@ -32,6 +32,10 @@ #include #endif /* HAVE_STDLIB_H */ +#ifdef HAVE_LANGINFO_H +#include +#endif + #include "tds.h" #include "tds_configs.h" #ifdef DMALLOC @@ -60,12 +64,23 @@ if (!locale) return NULL; + locale->client_charset = NULL; tdsdump_log(TDS_DBG_INFO1, "Attempting to read locales.conf file\n"); in = fopen(FREETDS_LOCALECONFFILE, "r"); if (in) { tds_read_conf_section(in, "default", tds_parse_locale, locale); + } +#ifdef HAVE_NL_LANGINFO + if ((s = nl_langinfo(CODESET))) { + if (locale->char_set) free(locale->char_set); + if (locale->client_charset) free(locale->client_charset); + locale->client_charset = strdup(s); + locale->char_set = strdup(s); + } +#endif + if (in) { s = getenv("LANG"); if (s && s[0]) { rewind(in); @@ -74,6 +89,7 @@ fclose(in); } + return locale; } @@ -86,6 +102,10 @@ if (locale->char_set) free(locale->char_set); locale->char_set = strdup(value); + } else if (!strcmp(option, TDS_STR_CLCHARSET)) { + if (locale->client_charset) + free(locale->client_charset); + locale->client_charset = strdup(value); } else if (!strcmp(option, TDS_STR_LANGUAGE)) { if (locale->language) free(locale->language); --- freetds-0.63.orig/debian/po/templates.pot +++ freetds-0.63/debian/po/templates.pot @@ -0,0 +1,49 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" --- freetds-0.63.orig/debian/po/POTFILES.in +++ freetds-0.63/debian/po/POTFILES.in @@ -0,0 +1 @@ +[type: gettext/rfc822deb] tdsodbc.templates --- freetds-0.63.orig/debian/po/cs.po +++ freetds-0.63/debian/po/cs.po @@ -0,0 +1,53 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-03-27 10:51+0200\n" +"Last-Translator: Miroslav Kure \n" +"Language-Team: Czech \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-2\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Chcete registrovat FreeTDS jako ODBC ovlada?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Zd se, e mte v systmu nainstalovanho sprvce ODBC (unixodbc nebo " +"iODBC). FreeTDS nyn poskytuje ovlada Open DataBase Connectivity, kter " +"me bt zaregistrovn u sprvce ODBC nstrojem /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Pokud si pejete, FreeTDS bude nyn automaticky pidn jako ODBC ovlada a " +"pi odinstalaci balku freetds bude ze seznamu zase automaticky odstrann." --- freetds-0.63.orig/debian/po/de.po +++ freetds-0.63/debian/po/de.po @@ -0,0 +1,48 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2004-02-24 11:25-0800\n" +"Last-Translator: Michael Bramer \n" +"Language-Team: German \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" --- freetds-0.63.orig/debian/po/es.po +++ freetds-0.63/debian/po/es.po @@ -0,0 +1,53 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2004-02-24 11:25-0800\n" +"Last-Translator: Unknown \n" +"Language-Team: Spanish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Quiere que el FreeTDS se registre como driver de ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Parece que est instalado un gerente de ODBC (conectividad abierta de bases " +"de dados), como unixodbc o iODBC. FreeTDS contiene un driver de ODBC que " +"puede ser registrado con el sistema usando la herramienta /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Si lo desea, el FreeTDS se aadir automaticamente a la lista de drivers " +"ahora y luego se quitar al remover el paquete freetds." --- freetds-0.63.orig/debian/po/fr.po +++ freetds-0.63/debian/po/fr.po @@ -0,0 +1,53 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-03-26 14:57+0100\n" +"Last-Translator: Jean-Luc Coulon (f5ibh) \n" +"Language-Team: French \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-15\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Faut-il enregistrer FreeTDS comme pilote ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Un gestionnaire ODBC (Open Database Connectivity) est install sur votre " +"systme (il s'agit de unixodbc ou iODBC). FreeTDS fournit prsent un " +"pilote ODBC qui peut tre enregistr par ce gestionnaire avec l'utilitaire /" +"usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Si vous le dsirez, FreeTDS sera maintenant ajout automatiquement comme " +"pilote ODBC et sera automatiquement supprim de la liste lors de la " +"suppression du paquet freetds." --- freetds-0.63.orig/debian/po/ja.po +++ freetds-0.63/debian/po/ja.po @@ -0,0 +1,54 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.61-6.2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-05-13 00:08+0900\n" +"Last-Translator: Hideki Yamane \n" +"Language-Team: Japanese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=EUC-JP\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "FreeTDS ODBC ɥ饤ФȤϿޤ?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"ODBC ޥ͡ (unixodbc iODBC) ƥ˥󥹥ȡ뤵Ƥ褦" +"FreeTDS ˤϡOpen Database Connectivity ɥ饤ФѰդƤޤ" +"ɥ饤Ф /usr/bin/odbcinst 桼ƥƥȤäƥޥ͡ϿǤޤ" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"˾СFreeTDS 򺣤˼ưŪ ODBC ɥ饤ФȤϿfreetds " +"ѥåݤϿꥹȤ鼫ưŪ˺褦ˤޤ" --- freetds-0.63.orig/debian/po/pt_BR.po +++ freetds-0.63/debian/po/pt_BR.po @@ -0,0 +1,55 @@ +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# Developers do not need to manually edit POT or PO files. +# +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.61\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-03-27 03:42-0300\n" +"Last-Translator: Felipe Augusto van de Wiel (faw) \n" +"Language-Team: Portuguese/Brazil \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ISO-8859-1\n" +"Content-Transfer-Encoding: 8bit\n" +"pt_BR\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Voc gostaria que o FreeTDS fosse registrado como um driver ODBC?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Voc parece possuir um gerenciador ODBC (unixodbc ou iODBC) instalado em seu " +"sistema. FreeTDS agora fornece um driver de Conectividade para Bancos de " +"Dados Abertos (Open Database Connectivity) que pode ser registrado junto ao " +"gerenciador usando o utilitrio /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Se voc quiser, FreeTDS agora pode ser automaticamente adicionado como um " +"driver ODBC e ser automaticamente apagado da lista quando voc remover o " +"pacote freetds." --- freetds-0.63.orig/debian/po/ru.po +++ freetds-0.63/debian/po/ru.po @@ -0,0 +1,54 @@ +# +# Translators, if you are not familiar with the PO format, gettext +# documentation is worth reading, especially sections dedicated to +# this format, e.g. by running: +# info -n '(gettext)PO Files' +# info -n '(gettext)Header Entry' +# +# Some information specific to po-debconf are available at +# /usr/share/doc/po-debconf/README-trans +# or http://www.debian.org/intl/l10n/po-debconf/README-trans +# +# Developers do not need to manually edit POT or PO files. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2004-02-24 11:25-0800\n" +"Last-Translator: Ilgiz Kalmetev \n" +"Language-Team: Russian \n" +"Language-Team: Swedish \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=iso-8859-1\n" +"Content-Transfer-Encoding: 8bit" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "Vill du att FreeTDS ska registreras som en ODBC-drivare?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Du verkar ha en ODBC-hanterare (unixodbc eller iODBC) installerat p ditt " +"system. FreeTDS erbjuder en Open Database Connectivity drivare som kan " +"registreras med hanteraren med verktyget /usr/bin/odbcinst." + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Om du nskar kan FreeTDS automatiskt lggas till som en ODBC-drivare nu och " +"kommer att automatiskt tas bort frn listan nr du tar bort freetds-paketet." + --- freetds-0.63.orig/debian/po/vi.po +++ freetds-0.63/debian/po/vi.po @@ -0,0 +1,49 @@ +# Vietnamese Translation for freetds. +# Copyright © 2005 Free Software Foundation, Inc. +# Clytie Siddall , 2005. +# +msgid "" +msgstr "" +"Project-Id-Version: freetds 0.61-6.2\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-07-04 13:39-0700\n" +"PO-Revision-Date: 2005-06-03 14:27+0930\n" +"Last-Translator: Clytie Siddall \n" +"Language-Team: Vietnamese \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0\n" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "Do you want FreeTDS to be registered as an ODBC driver?" +msgstr "" +"Bạn có muốn đăng ký trình FreeTDS là một trình hỗ trợ thiết bị ODBC không?" + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"You appear to have an ODBC manager (unixodbc or iODBC) installed on your " +"system. FreeTDS now provides an Open Database Connectivity driver that can " +"be registered with the manager using the /usr/bin/odbcinst utility." +msgstr "" +"Hình như hệ thống bạn chứa một trình quản lý ODBC (unixodbc hay iODBC) rồi. " +"Vào lúc này, trình FreeTDS cung cấp một trình hỗ trợ thiết bị (driver) Khả " +"năng kết nối đến Cơ sở Dữ liệu Mở (Open Database Connectivity: ODBC) mà bạn " +"có thể đăng ký với trình quản lý ấy dùng trình tiến ích:\n" +"/usr/bin/odbcinst " + +#. Type: boolean +#. Description +#: ../tdsodbc.templates:4 +msgid "" +"If you wish, FreeTDS will be automatically added as an ODBC driver now and " +"will be automatically deleted from the list when you remove the freetds " +"package." +msgstr "" +"Nếu bạn muốn, lúc này sẽ tự động thêm trình FreeTDS là một trình hỗ trợ " +"thiết bị ODBC, và khi bạn loại bỏ gói tin freetds, sẽ tự động xóa bỏ nó ra " +"danh sách." --- freetds-0.63.orig/debian/changelog +++ freetds-0.63/debian/changelog @@ -0,0 +1,318 @@ +freetds (0.63-3~schmidham.net.1) stable; urgency=low + + * Backport to sarge + * Changed build-deps: + - unixodbc-dev (>= 2.2.11-1) -> (>= 2.2.4-1) + + -- Korbinian Rosenegger Fri, 22 Sep 2006 03:49:53 +0200 + +freetds (0.63-3) unstable; urgency=low + + * Added Swedish translation, thanks to Daniel Nylander + (closes: #331477). + * Depend on ${misc:Depends} instead of on debconf directly, to allow + installations of other implementations of the debconf-2.0 protocol + (closes: #331826). + * Rework locale patch to allow overriding locale environment via + /etc/freetds/locales.conf; support "client charset" options on a + per-locale basis, not just on a per-server basis; and don't pull + date formats from nl_langinfo(), because the locale defaults are + apparently insane. Closes: #324869. + * Update the prototype of SQLParamOptions so we build correctly + against UnixODBC on 64-bit platforms + + -- Steve Langasek Wed, 24 May 2006 19:17:00 -0700 + +freetds (0.63-2) unstable; urgency=low + + * Fix an issue with the SQLParamOptions implementation not being + 64-bit-clean wrt UnixODBC's implementation; this will need to be + chased up with iODBC as well as with freetds upstream, to get + everyone on the same page. + * Remove a spurious redefine of SQLULEN in src/odbc/odbc.c, as + tdsodbc.h already includes an appropriate check for SQLULEN + + -- Steve Langasek Tue, 5 Jul 2005 02:43:00 -0700 + +freetds (0.63-1) unstable; urgency=low + + * New upstream release (closes: #230024, #236564). + - includes support for UTF-8 locales (closes: #316236). + - new sonames libct3, libsybdb5 + - break tdsodbc into its own package, to avoid future + conflicts/replaces nonsense + * Acknowledge NMUs; thanks to Christian Perrier and Frank Lichtenheld. + * Rebuild against unixodbc 2.2.11. + * Drop ancient migration code for /etc/freetds/interfaces, which was + pre-woody and never in a stable release + * Move freetds.conf.pl to doc/examples, since it's no longer needed + for upgrades + * Fix dependencies on libct3 to be strictly versioned, to avoid + invalid /usr/share/doc symlinks + * Add debian/update-manifest.sh and debian/dh_makeshlibs, to + future-proof against incorrect shlibs + * Added Vietnamese translation, thanks to Clytie Siddal + (closes: #311749). + * Added Japanese translation, thanks to Hideki Yamane + (closes: #310234). + + -- Steve Langasek Sun, 5 Jun 2005 19:34:33 -0700 + +freetds (0.61-6.2) unstable; urgency=low + + * Non-maintainer upload with maintainer's agreement in order to complete + the switch to po-debconf + * Switch to po-debconf for debconf tempaltes translation handling + Closes: #234606 + * New translations: + - Czech, thanks to Miroslav Kure + - Brazilian Portuguese, thanks to Felipe Augusto van de Wiel + Closes: #301615 + - French, thanks to Jean-Luc Coulon + + -- Christian Perrier Mon, 4 Apr 2005 19:48:55 +0200 + +freetds (0.61-6.1) unstable; urgency=high + + * Non-maintainer upload. + * Add AM_MAINTAINER_MODE and rerun autogen.sh. This hopefully + fixes the FTBFS (closes: #276851) + * Sync debhelper build-depends with DH_COMPAT level (3) + + -- Frank Lichtenheld Fri, 29 Oct 2004 22:33:07 +0200 + +freetds (0.61-6) unstable; urgency=medium + + * Add myself to Uploaders, closing Steve's RFH (closes: #263165) + * Work around buggy handling of results from stored procedures in all + versions of libct below 0.62.5 (clsoes: #260261) + * freetds-dev now conflicts with crystalspace-dev, as we have a header + (/usr/include/cstypes.h) by the same name (closes: #259105) + * Update debian/watch to actually work properly with upstream. + + -- Adam Conrad Thu, 2 Sep 2004 23:30:26 -0600 + +freetds (0.61-5) unstable; urgency=low + + * Since we depend on the odbcinst package, always ask about ODBC + support at configure time. Also, allow dpkg-reconfigure to change + the ODBC handling preference. (Closes: #198523) + + -- Steve Langasek Sun, 6 Jul 2003 01:19:49 -0500 + +freetds (0.61-4) unstable; urgency=low + + * Fix an out-of-range comparison error on unsigned char platforms + (closes: #161897). + + -- Steve Langasek Sat, 19 Apr 2003 22:51:21 -0500 + +freetds (0.61-3) unstable; urgency=low + + * After rerunning autotools, the name of the real library changed on + us again; copy the /real/ file into /usr/lib/odbc, not just a + symlink (closes: #185172). + + -- Steve Langasek Fri, 18 Apr 2003 14:02:05 -0500 + +freetds (0.61-2) unstable; urgency=low + + * Update the package to comply with v. 3.5.8 of policy. + * Rerun the autotools for mips/mipsel, because upstream is still using + libtool 1.4a (closes: #183792). + + -- Steve Langasek Sun, 2 Mar 2003 19:36:49 -0600 + +freetds (0.61-1) unstable; urgency=low + + * new upstream release. + * libct0 is now libct1. + * libsybdb2 is now libsybdb3. + * Work on the idempotency of the maintainer scripts, so that 1) we + never remove the driver on a running system, 2) our reference count + remains net-constant, and 3) we are calling odbcinst so that we can + provide tweaked driver settings in the package when needed. + + -- Steve Langasek Sun, 12 Jan 2003 13:40:28 -0600 + +freetds (0.60.1-3) unstable; urgency=low + + * incorporate changes from CVS to eliminate the dependency on + OpenSSL -- required for licensing reasons. + * use AM_MAINTAINER_MODE to make autobuilders happy (closes: #162924). + + -- Steve Langasek Sun, 29 Sep 2002 15:58:12 -0500 + +freetds (0.60.1-2) unstable; urgency=low + + * rerun libtoolize --force --copy; upstream built with an older + version, which doesn't work too well on some of our archs. + + -- Steve Langasek Sat, 21 Sep 2002 12:14:21 -0500 + +freetds (0.60.1-1) unstable; urgency=low + + * New upstream release + + -- Steve Langasek Fri, 20 Sep 2002 12:14:19 -0500 + +freetds (0.53-7) unstable; urgency=low + + * It's the bug that wouldn't die. Try one more time to get the postrm + right. (Closes: #139960) + + -- Steve Langasek Wed, 17 Apr 2002 10:21:13 -0500 + +freetds (0.53-6) unstable; urgency=low + + * Redirect output in the postrm, since debhelper is smarter than I am + (really closes: #139960). + + -- Steve Langasek Mon, 1 Apr 2002 21:53:33 -0600 + +freetds (0.53-5) unstable; urgency=low + + * Fix for possible debconf hang in postrm, due to spurious messages on + stderr (closes: #139960). + * Better handling for the case where we're reading from a closed + socket (closes: #138166). + * Quote the ldconfig call in our postinst, to work around the broken + shards of rectal thermometer that is the lintian check. + + -- Steve Langasek Wed, 27 Mar 2002 12:16:50 -0600 + +freetds (0.53-4) unstable; urgency=low + + * Merge in Russian debconf templates, thanks to Ilgiz Kalmetev + . (Closes: #137651) + + -- Steve Langasek Sun, 10 Mar 2002 12:38:09 -0600 + +freetds (0.53-3) unstable; urgency=low + + * patch from upstream CVS to address segfaults w/ null server names + (closes: #132775) + + -- Steve Langasek Tue, 12 Feb 2002 17:36:38 -0600 + +freetds (0.53-2) unstable; urgency=low + + * Fix build-dependencies to get the proper version of unixodbc-dev. + * Fix the numerous build-time warnings that mean real problems on + non-i386 archen (closes: #129608). Remaining warnings are either + ones that should be left in place as reminders to upstream, or in + the unused tdssrv library that's included only as a reference for + future application developers. + + -- Steve Langasek Wed, 16 Jan 2002 22:57:37 -0600 + +freetds (0.53-1) unstable; urgency=low + + * New upstream release + * Move the ODBC driver into the /usr/lib/odbc subdirectory. + + -- Steve Langasek Mon, 14 Jan 2002 21:38:34 -0600 + +freetds (0.52+0.53rc2-1) unstable; urgency=low + + * New upstream release + * Build against unixodbc-dev instead of libiodbc2-dev, since unixodbc + is more current (ODBC 3.0) + * Include our own copy of the Sybase `interfaces' file; upstream no + longer ships it, but we keep a copy around for use in maintainer + scripts. + + -- Steve Langasek Sun, 16 Dec 2001 22:55:54 -0600 + +freetds (0.52+0.53pre2-2) unstable; urgency=low + + * Added missing calls to ldconfig, since we're not calling + dh_makeshlibs now. + + -- Steve Langasek Wed, 28 Nov 2001 22:19:54 -0600 + +freetds (0.52+0.53pre2-1) unstable; urgency=low + + * New upstream (pre)release. Fixes a number of serious bugs that + were present in the last release. + (closes: #117725) + + -- Steve Langasek Sat, 24 Nov 2001 13:43:19 -0600 + +freetds (0.52-3) unstable; urgency=low + + * Separate out templates.es into a separate file, for greater flexibility. + * Added German language localization for debconf, thanks to Michael + Bramer . (closes: #106517) + * Manually specify --build and --host options to configure, + eliminating the need for updated config.guess + + -- Steve Langasek Fri, 27 Jul 2001 09:11:33 -0500 + +freetds (0.52-2) unstable; urgency=low + + * Fixed Spanish-localized debconf template; previous version contained + an incomplete translation + * Add support for automatically registering the ODBC driver at + install-time (if /usr/bin/odbcinst is present) + * Add Build-Depend on libglib-dev for the odbc driver + (closes: #106437, #106442) + + -- Steve Langasek Tue, 24 Jul 2001 09:17:14 -0500 + +freetds (0.52-1) unstable; urgency=low + + * New upstream release (closes: #101135) + * new ODBC driver included in package + + -- Steve Langasek Sat, 21 Jul 2001 12:39:47 -0500 + +freetds (0.51-4) unstable; urgency=low + + * need up-to-date config.sub for the arm autobuilder. + * fixed the Section of the source package. + + -- Steve Langasek Sun, 4 Feb 2001 16:03:36 -0600 + +freetds (0.51-3) unstable; urgency=low + + * preliminary fixes for 64-bit architectures + * fixed shlibs file. Now auto-generated w/ debhelper. + + -- Steve Langasek Mon, 29 Jan 2001 22:39:14 -0600 + +freetds (0.51-2) unstable; urgency=low + + * Use dh_links to create doc symlinks + + -- Steve Langasek Mon, 15 Jan 2001 12:16:11 -0600 + +freetds (0.51-1) unstable; urgency=low + + * New upstream release + * /usr/lib/freetds directory no longer needed. Removed from package. + + -- Steve Langasek Sun, 26 Nov 2000 23:58:07 -0600 + +freetds (0.50-3) unstable; urgency=low + + * updated conf file handling with help from lintian + + -- Steve Langasek Wed, 8 Nov 2000 10:49:22 -0600 + +freetds (0.50-2) unstable; urgency=low + + * Fixed /usr/lib/freetds/interfaces to be a conffile + * added /usr/lib/freetds/include symlink, fixed to work as expected + + -- Steve Langasek Tue, 7 Nov 2000 22:12:24 -0600 + +freetds (0.50-1) unstable; urgency=low + + * Initial release. + + -- Steve Langasek Tue, 7 Nov 2000 09:15:40 -0600 + +Local variables: +mode: debian-changelog +End: --- freetds-0.63.orig/debian/TODO +++ freetds-0.63/debian/TODO @@ -0,0 +1,4 @@ +Package the user manual (freetds-doc?) and tools (freetds-bin?) + +Fix ODBC handling so that dpkg-reconfigure doesn't change the reference +count --- freetds-0.63.orig/debian/README.debian +++ freetds-0.63/debian/README.debian @@ -0,0 +1,10 @@ +freetds for Debian +---------------------- + +FreeTDS is a project to document and implement the TDS (Tabular DataStream) +protocol. TDS is used by Sybase and Microsoft for client to database server +communications. The FreeTDS project will implement many call level +interfaces, including DB-Lib, CT-Lib, ODBC, JDBC, and Perl DBI. See +http://www.freetds.org/ for more information. + +Steve Langasek , Tue, 7 Nov 2000 09:15:40 -0600 --- freetds-0.63.orig/debian/copyright +++ freetds-0.63/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by Steve Langasek vorlon@dodds.net on +Tue, 7 Nov 2000 09:15:40 -0600. + +It was downloaded from ftp://ftp.metalab.unc.edu/pub/Linux/ALPHA/freetds/ + +Authors: + + Brian Bruns + Started this crazy thing + + Gregg Jensen + Message handlers and extra datatype support and some sybperl stuff? + + Arno Pedusaar + Donated his TDS4.2 code to the cause + + Mihai Ibanescu + GNUified the packet + + Craig Spannring + JDBC driver and CVS repository. + + Mark Schaal + Cleaned up message handling, bug fixes + + Kevin Lyons + Various TDS bug fixes + + Sam Tetherow + Various TDS bug fixes + + Thanks go to the folks at A2i, Inc. (http://www.a2i.com) for funding the + development of dblib host file bulk copy and writetext support, and to Dave + Poyourow there for helping with the debugging. + +Copyright: + +FreeTDS is copyright (C) 1998-1999 Brian Bruns and is licensed under the +GNU LGPL license. + +On Debian GNU/Linux systems, the complete text of the GNU Lesser General +Public License can be found in /usr/share/common-licenses/LGPL'. --- freetds-0.63.orig/debian/control +++ freetds-0.63/debian/control @@ -0,0 +1,54 @@ +Source: freetds +Section: libs +Priority: optional +Maintainer: Steve Langasek +Uploaders: Adam Conrad +Standards-Version: 3.5.8 +Build-Depends: debhelper (>= 4.1.16), autotools-dev, unixodbc-dev (>= 2.2.4-1), libglib-dev + +Package: libct3 +Architecture: any +Depends: ${shlibs:Depends} +Description: libraries for connecting to MS SQL and Sybase SQL servers + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the shared libraries for the Sybase CT-Lib API. + You will need this if you plan to connect to MS SQL or Sybase servers, or use + the PHP sybase or Perl DBD::Sybase extensions. + +Package: tdsodbc +Architecture: any +Depends: libct3 (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends} +Recommends: libiodbc2 | unixodbc +Conflicts: freetds0, libct0, unixodbc (<< 2.1.1-2) +Replaces: freetds0, libct0, libct1 +Description: ODBC driver for connecting to MS SQL and Sybase SQL servers + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the ODBC driver for FreeTDS, for use with + UnixODBC or iODBC. + +Package: libsybdb5 +Architecture: any +Depends: libct3 (= ${Source-Version}), ${shlibs:Depends} +Description: libraries for connecting to MS SQL and Sybase SQL servers + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the shared libraries for the Sybase DB-Lib API. + +Package: freetds-dev +Section: devel +Architecture: any +Depends: libct3 (= ${Source-Version}), libsybdb5 (= ${Source-Version}) +Conflicts: crystalspace-dev +Description: MS SQL and Sybase client library (static libs and headers) + FreeTDS is an implementation of the Tabular DataStream protocol, used for + connecting to MS SQL and Sybase servers over TCP/IP. + . + This package includes the static libraries and header files for TDS, which + you will need to develop applications that connect to MS SQL servers. You + will also need this package if you are installing the Perl DBD::Sybase + module on your system using CPAN. --- freetds-0.63.orig/debian/dirs +++ freetds-0.63/debian/dirs @@ -0,0 +1,4 @@ +etc/freetds +usr/lib +usr/lib/odbc +usr/include --- freetds-0.63.orig/debian/dh_makeshlibs +++ freetds-0.63/debian/dh_makeshlibs @@ -0,0 +1,279 @@ +#!/usr/bin/perl -w + +=head1 NAME + +dh_makeshlibs - automatically create shlibs file + +=cut + +use strict; +use Debian::Debhelper::Dh_Lib; + +=head1 SYNOPSIS + +B [S>] [B<-m>I] [B<-V>I<[dependencies]>] [B<-n>] [B<-X>I] + +=head1 DESCRIPTION + +dh_makeshlibs is a debhelper program that automatically scans for shared +libraries, and generates a shlibs file for the libraries it finds. + +It also adds a call to ldconfig in the postinst and postrm scripts (in +V3 mode and above only) to any packages which it finds shared libraries in. + +=head1 OPTIONS + +=over 4 + +=item B<-m>I, B<--major=>I + +Instead of trying to guess the major number of the library with objdump, +use the major number specified after the -m parameter. This is much less +useful than it used to be, back in the bad old days when this program +looked at library filenames rather than using objdump. + +=item B<-V>, B<-V>I + +=item B<--version-info>, B<--version-info=>I + +By default, the shlibs file generated by this program does not make packages +depend on any particular version of the package containing the shared +library. It may be necessary for you to add some version dependancy +information to the shlibs file. If -V is specified with no dependency +information, the current upstream version of the package is plugged into a +dependency that looks like "packagename (>= packageversion)". Note that in +debhelper compatibility levels before v4, the debian part of the package +version number is also included. If -V is specified with parameters, the +parameters can be used to specify the exact dependency information needed +(be sure to include the package name). + +Beware of using -V without any parameters; this is a conservative setting +that always ensures that other packages' shared library dependencies are at +least as tight as they need to be (unless your library is prone to changing +ABI without updating the upstream version number), so that if the +maintainer screws up then they won't break. The flip side is that packages +might end up with dependencies that are too tight and so find it harder to +be upgraded. + +=item B<-n>, B<--noscripts> + +Do not modify postinst/postrm scripts. + +=item B<-X>I, B<--exclude=>I + +Exclude files that contain "item" anywhere in their filename or directory +from being treated as shared libraries. + +=back + +=head1 EXAMPLES + +=over 4 + +=item dh_makeshlibs + +Assuming this is a package named libfoobar1, generates a shlibs file that +looks something like: + libfoobar 1 libfoobar1 + +=item dh_makeshlibs -V + +Assuming the current version of the package is 1.1-3, generates a shlibs +file that looks something like: + libfoobar 1 libfoobar1 (>= 1.1) + +=item dh_makeshlibs -V 'libfoobar1 (>= 1.0)' + +Generates a shlibs file that looks something like: + libfoobar 1 libfoobar1 (>= 1.0) + +=back + +=cut + +init(); + +foreach my $package (@{$dh{DOPACKAGES}}) { + next if is_udeb($package); + + my $tmp=tmpdir($package); + + my %seen; + my $need_ldconfig = 0; + + doit("rm", "-f", "$tmp/DEBIAN/shlibs"); + + # So, we look for files or links to existing files with names that + # match "*.so*". Matching *.so.* is not good enough because of + # broken crap like db3. And we only look at real files not + # symlinks, so we don't accidentually add shlibs data to -dev + # packages. This may have a few false positives, which is ok, + # because only if we can get a library name and a major number from + # objdump is anything actually added. + my $exclude=''; + if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') { + $exclude="! \\( $dh{EXCLUDE_FIND} \\) "; + } + my @manifest; + my %shlibsmatch; + my $failure; + my $manifest = pkgfile($package, 'manifest'); + if (-e $manifest) { + open (MANIFEST, $manifest); + @manifest = ; + close MANIFEST; + if ($manifest[0] !~ /^\s+VERSION\s+2$/) { + # Wrong version number -- ignore it silently? + # throw a warning? + undef (@manifest); + } + my (@shlibslist) = grep(/^\s+SONAME\s+/, @manifest); + for (@shlibslist) { s/^\s+SONAME\s+// } + foreach my $i (@shlibslist) { + my ($name, $version) = split(/\s+/,$i); + $shlibsmatch{$name} = [$version, 0]; + } + } + open (FIND, "find $tmp -type f \\( -name '*.so' -or -name '*.so.*' \\) $exclude |"); + while () { + chomp; + my ($library, $major, $soname); + my $objdump=`objdump -p $_`; + if ($objdump=~m/\s+SONAME\s+(.+)\.so\.(.+)/) { + # proper soname format + $library=$1; + $major=$2; + $soname="$1.so.$2"; + } + elsif ($objdump=~m/\s+SONAME\s+(.+)-(.+)\.so/) { + # idiotic crap soname format + $library=$1; + $major=$2; + $soname="$1-$2.so"; + } + + if (@manifest) { + $failure = "Error: new library $soname added to package\n" + . "Please update the library manifest" + unless exists($shlibsmatch{$soname}); + $shlibsmatch{$soname}[1] = 1; + + $ENV{'LC_COLLATE'} = 'C'; + my $word64 = `objdump -T $_ | grep 'file format elf64'`; + my $bytes; + if ($word64) { + $bytes = '50-'; + } else { + $bytes = '34-'; + } + my (@objdump) = `objdump -T $_ | grep -E ' [gw] .*\\.text|__cxa_pure_virtual'| grep -vE '\\b((__gmon_start__|_ftext)\\b|_(rest|save)[fg]pr)' | cut -b$bytes | sed -e's/0x8[08] //' | c++filt | sort`; + + my $i = 0; + # either it finds a match, or it reaches the end + # of the file in which case $failure is already set + while ($i <= $#manifest + && $manifest[$i] !~ /SONAME\s+$soname\s+/) + { + $i++; + } + + # skip over the soname + $i++; + + my $offset = $i; + while ($i <= $#manifest && $i - $offset <= $#objdump) + { + if ($manifest[$i] lt $objdump[$i-$offset]) + { + die "Error: incorrect soname $soname, missing symbol: " + . $manifest[$i]; + } + if ($manifest[$i] gt $objdump[$i-$offset] + || $manifest[$i] =~ /SONAME\s+/) + { + $failure = "Error: added symbols in $soname: " + . $objdump[$i-$offset] + . "Please update the library manifest"; + $i--; + $offset--; + } + $i++; + } + if ($i <= $#manifest && $manifest[$i] !~ /SONAME\s+/) + { + die "Error: incorrect soname $soname, missing symbol: " + . $manifest[$i]; + } + } + + if (defined($dh{M_PARAMS}) && $dh{M_PARAMS} ne '') { + $major=$dh{M_PARAMS}; + } + + if (! -d "$tmp/DEBIAN") { + doit("install","-d","$tmp/DEBIAN"); + } + my $deps=$package; + if ($dh{V_FLAG_SET}) { + if ($dh{V_FLAG} ne '') { + $deps=$dh{V_FLAG}; + } + else { + # Call isnative becuase it sets $dh{VERSION} + # as a side effect. + isnative($package); + my $version = $dh{VERSION}; + # Old compatibility levels include the + # debian revision, while new do not. + if (! compat(3)) { + # Remove debian version, if any. + $version =~ s/-[^-]+$//; + } + $deps="$package (>= $version)"; + } + } + elsif (%shlibsmatch) { + my ($version) = $shlibsmatch{$soname}[0]; + $deps="$package (>= $version)" if ($version); + } + if (defined($library) && defined($major) && defined($deps) && + $library ne '' && $major ne '' && $deps ne '') { + $need_ldconfig=1; + # Prevent duplicate lines from entering the file. + my $line="$library $major $deps"; + if (! $seen{$line}) { + $seen{$line}=1; + complex_doit("echo '$line' >>$tmp/DEBIAN/shlibs"); + } + } + } + close FIND; + foreach my $key (keys %shlibsmatch) { + die "Error: library removed from package: $key" + unless ($shlibsmatch{$key}[1]); + } + die $failure if $failure; + + # New as of dh_v3. + if (! compat(2) && ! $dh{NOSCRIPTS} && $need_ldconfig) { + autoscript($package,"postinst","postinst-makeshlibs"); + autoscript($package,"postrm","postrm-makeshlibs"); + } + + if (-e "$tmp/DEBIAN/shlibs") { + doit("chmod",644,"$tmp/DEBIAN/shlibs"); + doit("chown","0:0","$tmp/DEBIAN/shlibs"); + } +} + +=head1 SEE ALSO + +L + +This program is a part of debhelper. + +=head1 AUTHOR + +Joey Hess + +=cut --- freetds-0.63.orig/debian/freetds-dev.files +++ freetds-0.63/debian/freetds-dev.files @@ -0,0 +1,4 @@ +usr/include/* +usr/lib/*.a +usr/lib/*.la +usr/lib/*.so --- freetds-0.63.orig/debian/freetds-dev.links +++ freetds-0.63/debian/freetds-dev.links @@ -0,0 +1 @@ +usr/share/doc/libct3 usr/share/doc/freetds-dev --- freetds-0.63.orig/debian/libct3.dirs +++ freetds-0.63/debian/libct3.dirs @@ -0,0 +1,3 @@ +/etc/freetds +/usr/share/libct3 +/usr/share/doc/libct3/examples --- freetds-0.63.orig/debian/libct3.examples +++ freetds-0.63/debian/libct3.examples @@ -0,0 +1 @@ +freetds.conf.pl --- freetds-0.63.orig/debian/libct3.files +++ freetds-0.63/debian/libct3.files @@ -0,0 +1,3 @@ +usr/lib/libtds.so.4* +usr/lib/libtdssrv.so.2* +usr/lib/libct.so.3* --- freetds-0.63.orig/debian/libct3.manifest +++ freetds-0.63/debian/libct3.manifest @@ -0,0 +1,450 @@ + VERSION 2 + SONAME libtds.so.4 0.63-1 +Base tds5_send_optioncmd +Base tds7_crypt_pass +Base tds7_send_auth +Base tds7_srv_charset_changed +Base tds_add_row_column_size +Base tds_alloc_bcp_column_data +Base tds_alloc_client_sqlstate +Base tds_alloc_compute_results +Base tds_alloc_compute_row +Base tds_alloc_connection +Base tds_alloc_context +Base tds_alloc_cursor +Base tds_alloc_dynamic +Base tds_alloc_get_string +Base tds_alloc_locale +Base tds_alloc_login +Base tds_alloc_lookup_sqlstate +Base tds_alloc_param_result +Base tds_alloc_param_row +Base tds_alloc_results +Base tds_alloc_row +Base tds_alloc_socket +Base tds_answer_challenge +Base tds_canonical_charset_name +Base tds_client_msg +Base tds_close_socket +Base tds_clr_null +Base tds_config_verstr +Base tds_connect +Base tds_convert +Base tds_count_placeholders +Base tds_ctx_get_parent +Base tds_ctx_set_parent +Base tds_cursor_close +Base tds_cursor_dealloc +Base tds_cursor_declare +Base tds_cursor_fetch +Base tds_cursor_open +Base tds_cursor_setrows +Base tds_datecrack +Base tds_des_ecb_encrypt +Base tds_des_encrypt +Base tds_des_set_key +Base tds_des_set_odd_parity +Base tds_do_until_done +Base tds_dstr_copy +Base tds_dstr_copyn +Base tds_dstr_free +Base tds_dstr_set +Base tds_dstr_zero +Base tds_fix_connection +Base tds_flush_packet +Base tds_free_all_dynamic +Base tds_free_all_results +Base tds_free_bcp_column_data +Base tds_free_compute_result +Base tds_free_compute_results +Base tds_free_connection +Base tds_free_context +Base tds_free_cursor +Base tds_free_dynamic +Base tds_free_input_params +Base tds_free_locale +Base tds_free_login +Base tds_free_msg +Base tds_free_param_results +Base tds_free_results +Base tds_free_socket +Base tds_get_byte +Base tds_get_char_data +Base tds_get_compiletime_settings +Base tds_get_conversion_type +Base tds_get_dynid +Base tds_get_homedir +Base tds_get_int +Base tds_get_locale +Base tds_get_n +Base tds_get_null +Base tds_get_null_type +Base tds_get_parent +Base tds_get_size_by_type +Base tds_get_smallint +Base tds_get_string +Base tds_get_token_size +Base tds_gethostbyaddr_r +Base tds_gethostbyname_r +Base tds_getmac +Base tds_getservbyname_r +Base tds_iconv +Base tds_iconv_alloc +Base tds_iconv_close +Base tds_iconv_fread +Base tds_iconv_free +Base tds_iconv_from_collate +Base tds_iconv_open +Base tds_init_write_buf +Base tds_lookup_dynamic +Base tds_lookup_host +Base tds_money_to_string +Base tds_next_placeholders +Base tds_numeric_to_string +Base tds_peek +Base tds_process_cancel +Base tds_process_login_tokens +Base tds_process_result_tokens +Base tds_process_row_tokens +Base tds_process_row_tokens_ct +Base tds_process_simple_query +Base tds_process_trailing_tokens +Base tds_prtype +Base tds_put_buf +Base tds_put_byte +Base tds_put_int +Base tds_put_int8 +Base tds_put_n +Base tds_put_smallint +Base tds_put_string +Base tds_quote_id +Base tds_quote_string +Base tds_read_conf_file +Base tds_read_conf_section +Base tds_read_config_info +Base tds_read_packet +Base tds_realloc_socket +Base tds_send_cancel +Base tds_set_app +Base tds_set_bulk +Base tds_set_capabilities +Base tds_set_client_charset +Base tds_set_column_type +Base tds_set_host +Base tds_set_interfaces_file_loc +Base tds_set_language +Base tds_set_library +Base tds_set_longquery_handler +Base tds_set_null +Base tds_set_packet +Base tds_set_param_type +Base tds_set_parent +Base tds_set_passwd +Base tds_set_port +Base tds_set_server +Base tds_set_user +Base tds_set_version +Base tds_skip_quoted +Base tds_srv_charset_changed +Base tds_strftime +Base tds_submit_execdirect +Base tds_submit_execute +Base tds_submit_prepare +Base tds_submit_query +Base tds_submit_query_params +Base tds_submit_queryf +Base tds_submit_rpc +Base tds_submit_unprepare +Base tds_swap_bytes +Base tds_swap_datatype +Base tds_sybase_charset_name +Base tds_timestamp_str +Base tds_unget_byte +Base tds_version +Base tds_vstrbuild +Base tds_willconvert +Base tdsdump_append +Base tdsdump_close +Base tdsdump_dump_buf +Base tdsdump_log +Base tdsdump_off +Base tdsdump_on +Base tdsdump_open + SONAME libtdssrv.so.2 0.63-1 +Base MD4Final +Base MD4Init +Base MD4Transform +Base MD4Update +Base MD5Final +Base MD5Init +Base MD5Transform +Base MD5Update +Base tds5_send_optioncmd +Base tds7_crypt_pass +Base tds7_decrypt_pass +Base tds7_read_login +Base tds7_send_auth +Base tds7_send_result +Base tds7_srv_charset_changed +Base tds_add_row_column_size +Base tds_alloc_bcp_column_data +Base tds_alloc_client_sqlstate +Base tds_alloc_compute_results +Base tds_alloc_compute_row +Base tds_alloc_connection +Base tds_alloc_context +Base tds_alloc_cursor +Base tds_alloc_dynamic +Base tds_alloc_get_string +Base tds_alloc_locale +Base tds_alloc_login +Base tds_alloc_lookup_sqlstate +Base tds_alloc_param_result +Base tds_alloc_param_row +Base tds_alloc_read_login +Base tds_alloc_results +Base tds_alloc_row +Base tds_alloc_socket +Base tds_answer_challenge +Base tds_canonical_charset_name +Base tds_client_msg +Base tds_close_socket +Base tds_clr_null +Base tds_config_verstr +Base tds_connect +Base tds_convert +Base tds_count_placeholders +Base tds_ctx_get_parent +Base tds_ctx_set_parent +Base tds_cursor_close +Base tds_cursor_dealloc +Base tds_cursor_declare +Base tds_cursor_fetch +Base tds_cursor_open +Base tds_cursor_setrows +Base tds_datecrack +Base tds_des_ecb_encrypt +Base tds_des_encrypt +Base tds_des_set_key +Base tds_des_set_odd_parity +Base tds_do_until_done +Base tds_dstr_copy +Base tds_dstr_copyn +Base tds_dstr_free +Base tds_dstr_set +Base tds_dstr_zero +Base tds_env_change +Base tds_fix_connection +Base tds_flush_packet +Base tds_free_all_dynamic +Base tds_free_all_results +Base tds_free_bcp_column_data +Base tds_free_compute_result +Base tds_free_compute_results +Base tds_free_connection +Base tds_free_context +Base tds_free_cursor +Base tds_free_dynamic +Base tds_free_input_params +Base tds_free_locale +Base tds_free_login +Base tds_free_msg +Base tds_free_param_results +Base tds_free_results +Base tds_free_socket +Base tds_get_byte +Base tds_get_char_data +Base tds_get_compiletime_settings +Base tds_get_conversion_type +Base tds_get_dynid +Base tds_get_generic_query +Base tds_get_homedir +Base tds_get_int +Base tds_get_locale +Base tds_get_n +Base tds_get_null +Base tds_get_null_type +Base tds_get_parent +Base tds_get_query +Base tds_get_size_by_type +Base tds_get_smallint +Base tds_get_string +Base tds_get_token_size +Base tds_gethostbyaddr_r +Base tds_gethostbyname_r +Base tds_getmac +Base tds_getservbyname_r +Base tds_iconv +Base tds_iconv_alloc +Base tds_iconv_close +Base tds_iconv_fread +Base tds_iconv_free +Base tds_iconv_from_collate +Base tds_iconv_open +Base tds_init_write_buf +Base tds_listen +Base tds_lookup_dynamic +Base tds_lookup_host +Base tds_money_to_string +Base tds_next_placeholders +Base tds_numeric_to_string +Base tds_peek +Base tds_process_cancel +Base tds_process_login_tokens +Base tds_process_result_tokens +Base tds_process_row_tokens +Base tds_process_row_tokens_ct +Base tds_process_simple_query +Base tds_process_trailing_tokens +Base tds_prtype +Base tds_put_buf +Base tds_put_byte +Base tds_put_int +Base tds_put_int8 +Base tds_put_n +Base tds_put_smallint +Base tds_put_string +Base tds_quote_id +Base tds_quote_string +Base tds_read_conf_file +Base tds_read_conf_section +Base tds_read_config_info +Base tds_read_login +Base tds_read_packet +Base tds_realloc_socket +Base tds_send_174_token +Base tds_send_253_token +Base tds_send_cancel +Base tds_send_capabilities_token +Base tds_send_col_info +Base tds_send_col_name +Base tds_send_done +Base tds_send_eed +Base tds_send_err +Base tds_send_login_ack +Base tds_send_msg +Base tds_send_result +Base tds_send_row +Base tds_send_table_header +Base tds_set_app +Base tds_set_bulk +Base tds_set_capabilities +Base tds_set_client_charset +Base tds_set_column_type +Base tds_set_host +Base tds_set_interfaces_file_loc +Base tds_set_language +Base tds_set_library +Base tds_set_longquery_handler +Base tds_set_null +Base tds_set_packet +Base tds_set_param_type +Base tds_set_parent +Base tds_set_passwd +Base tds_set_port +Base tds_set_server +Base tds_set_user +Base tds_set_version +Base tds_skip_quoted +Base tds_srv_charset_changed +Base tds_strftime +Base tds_submit_execdirect +Base tds_submit_execute +Base tds_submit_prepare +Base tds_submit_query +Base tds_submit_query_params +Base tds_submit_queryf +Base tds_submit_rpc +Base tds_submit_unprepare +Base tds_swap_bytes +Base tds_swap_datatype +Base tds_sybase_charset_name +Base tds_timestamp_str +Base tds_unget_byte +Base tds_version +Base tds_vstrbuild +Base tds_willconvert +Base tdsdump_append +Base tdsdump_close +Base tdsdump_dump_buf +Base tdsdump_log +Base tdsdump_off +Base tdsdump_on +Base tdsdump_open + SONAME libct.so.3 0.63-1 +Base blk_alloc +Base blk_bind +Base blk_colval +Base blk_default +Base blk_describe +Base blk_done +Base blk_drop +Base blk_getrow +Base blk_gettext +Base blk_init +Base blk_props +Base blk_rowalloc +Base blk_rowdrop +Base blk_rowxfer +Base blk_rowxfer_mult +Base blk_sendrow +Base blk_sendtext +Base blk_srvinit +Base blk_textxfer +Base cs_calc +Base cs_cmp +Base cs_config +Base cs_conv_mult +Base cs_convert +Base cs_ctx_alloc +Base cs_ctx_drop +Base cs_ctx_global +Base cs_diag +Base cs_dt_crack +Base cs_dt_info +Base cs_loc_alloc +Base cs_loc_drop +Base cs_locale +Base cs_manage_convert +Base cs_objects +Base cs_set_convert +Base cs_setnull +Base cs_strbuild +Base cs_strcmp +Base cs_time +Base cs_will_convert +Base ct_bind +Base ct_callback +Base ct_cancel +Base ct_capability +Base ct_close +Base ct_cmd_alloc +Base ct_cmd_drop +Base ct_cmd_props +Base ct_command +Base ct_compute_info +Base ct_con_alloc +Base ct_con_drop +Base ct_con_props +Base ct_config +Base ct_connect +Base ct_cursor +Base ct_data_info +Base ct_describe +Base ct_diag +Base ct_dynamic +Base ct_exit +Base ct_fetch +Base ct_get_data +Base ct_init +Base ct_options +Base ct_param +Base ct_poll +Base ct_res_info +Base ct_res_info_dyn +Base ct_results +Base ct_results_dyn +Base ct_send +Base ct_send_data +Base ct_send_dyn +Base ct_setparam --- freetds-0.63.orig/debian/libct3.postinst +++ freetds-0.63/debian/libct3.postinst @@ -0,0 +1,11 @@ +#!/bin/sh + +set -e + +# Install a reasonable default on initial config + +if [ -z "$2" ]; then + cp -a /usr/share/libct3/freetds.conf /etc/freetds/ +fi + +#DEBHELPER# --- freetds-0.63.orig/debian/libct3.postrm +++ freetds-0.63/debian/libct3.postrm @@ -0,0 +1,10 @@ +#!/bin/sh + +set -e + +if [ "$1" = purge ]; then + rm -f /etc/freetds/freetds.conf + rmdir /etc/freetds || true +fi + +#DEBHELPER# --- freetds-0.63.orig/debian/libsybdb5.manifest +++ freetds-0.63/debian/libsybdb5.manifest @@ -0,0 +1,181 @@ + VERSION 2 + SONAME libsybdb.so.5 0.63-1 +Base abort_xact +Base bcp_batch +Base bcp_bind +Base bcp_colfmt +Base bcp_colfmt_ps +Base bcp_collen +Base bcp_colptr +Base bcp_columns +Base bcp_control +Base bcp_done +Base bcp_exec +Base bcp_getl +Base bcp_init +Base bcp_moretext +Base bcp_options +Base bcp_readfmt +Base bcp_sendrow +Base bcp_writefmt +Base build_xact_string +Base close_commit +Base commit_xact +Base dbadata +Base dbadlen +Base dbaltbind +Base dbaltcolid +Base dbaltlen +Base dbaltop +Base dbalttype +Base dbaltutype +Base dbanullbind +Base dbbind +Base dbbylist +Base dbcancel +Base dbcanquery +Base dbchange +Base dbclose +Base dbclrbuf +Base dbclropt +Base dbcmd +Base dbcmdrow +Base dbcolinfo +Base dbcollen +Base dbcolname +Base dbcolsource +Base dbcoltype +Base dbcoltypeinfo +Base dbcolutype +Base dbconvert +Base dbconvert_ps +Base dbcount +Base dbcurcmd +Base dbcurrow +Base dbdata +Base dbdatecmp +Base dbdatecrack +Base dbdatlen +Base dbdead +Base dberrhandle +Base dbexit +Base dbfcmd +Base dbfirstrow +Base dbfreebuf +Base dbgetchar +Base dbgetmaxprocs +Base dbgetpacket +Base dbgetrow +Base dbgetuserdata +Base dbhasretstat +Base dbinit +Base dbiordesc +Base dbiowdesc +Base dbisavail +Base dbisopt +Base dblastrow +Base dblogin +Base dbloginfree +Base dbmny4add +Base dbmny4cmp +Base dbmny4copy +Base dbmny4divide +Base dbmny4minus +Base dbmny4mul +Base dbmny4sub +Base dbmny4zero +Base dbmnyadd +Base dbmnycmp +Base dbmnycopy +Base dbmnydec +Base dbmnydivide +Base dbmnydown +Base dbmnyinc +Base dbmnyinit +Base dbmnymaxneg +Base dbmnymaxpos +Base dbmnyminus +Base dbmnymul +Base dbmnyndigit +Base dbmnyscale +Base dbmnysub +Base dbmnyzero +Base dbmonthname +Base dbmorecmds +Base dbmoretext +Base dbmsghandle +Base dbname +Base dbnextrow +Base dbnullbind +Base dbnumalts +Base dbnumcols +Base dbnumcompute +Base dbnumrets +Base dbopen +Base dbpoll +Base dbprhead +Base dbprrow +Base dbprtype +Base dbreadtext +Base dbrecftos +Base dbregexec +Base dbreginit +Base dbreglist +Base dbregparam +Base dbresults +Base dbretdata +Base dbretlen +Base dbretname +Base dbretstatus +Base dbrettype +Base dbrows +Base dbrowtype +Base dbrpcinit +Base dbrpcparam +Base dbrpcsend +Base dbrpwclr +Base dbrpwset +Base dbsafestr +Base dbservcharset +Base dbsetavail +Base dbsetdefcharset +Base dbsetdeflang +Base dbsetifile +Base dbsetinterrupt +Base dbsetlbool +Base dbsetllong +Base dbsetlname +Base dbsetlogintime +Base dbsetlshort +Base dbsetlversion +Base dbsetmaxprocs +Base dbsetopt +Base dbsettime +Base dbsetuserdata +Base dbsetversion +Base dbspid +Base dbspr1row +Base dbspr1rowlen +Base dbsprhead +Base dbsprline +Base dbsqlexec +Base dbsqlok +Base dbsqlsend +Base dbstrbuild +Base dbstrcpy +Base dbstrlen +Base dbtds +Base dbtxptr +Base dbtxtimestamp +Base dbuse +Base dbvarylen +Base dbversion +Base dbwillconvert +Base dbwritetext +Base open_commit +Base remove_xact +Base scan_xact +Base start_xact +Base stat_xact +Base tdsdbopen +Base tdsdump_open --- freetds-0.63.orig/debian/libsybdb5.dirs +++ freetds-0.63/debian/libsybdb5.dirs @@ -0,0 +1,2 @@ +/usr/lib +/usr/share/doc --- freetds-0.63.orig/debian/libsybdb5.files +++ freetds-0.63/debian/libsybdb5.files @@ -0,0 +1 @@ +usr/lib/libsybdb.so.5* --- freetds-0.63.orig/debian/libsybdb5.links +++ freetds-0.63/debian/libsybdb5.links @@ -0,0 +1 @@ +usr/share/doc/libct3 usr/share/doc/libsybdb5 --- freetds-0.63.orig/debian/tdsodbc.config +++ freetds-0.63/debian/tdsodbc.config @@ -0,0 +1,15 @@ +#!/bin/sh + +action=$1 +version=$2 + +# Source debconf library. +. /usr/share/debconf/confmodule +db_version 2.0 + +db_title "ODBC Setup" + +db_input medium freetds/addtoodbc || true +db_go + +exit 0 --- freetds-0.63.orig/debian/rules +++ freetds-0.63/debian/rules @@ -0,0 +1,119 @@ +#!/usr/bin/make -f +# Made with the aid of debmake, by Christoph Lameter, +# based on the sample debian/rules file for GNU hello by Ian Jackson. + +#export DH_VERBOSE=1 +export DH_COMPAT=3 + +CFLAGS = -g -Wall +INSTALL = install + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL += -s +endif + +# Authoritative build/host types for the Debian archen. +DEB_HOST_GNU_TYPE := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) + confflags += --build $(DEB_HOST_GNU_TYPE) +else + confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +endif + +#ifneq (,$(findstring $(DEB_BUILD_ARCH_CPU),"alpha amd64 ia64")) +# CFLAGS += -DSQLLEN=SQLLEN -DSQLULEN=SQLULEN +#endif + +# The autotools target adds a forced build-time dependency on +# autotools-dev (for /usr/share/misc/config.*) +autotools: + OLDDATESUB=`./config.sub -t | tr -d - `;\ + NEWDATESUB=`/usr/share/misc/config.sub -t | tr -d - `;\ + if [ "$$OLDDATESUB" -lt "$$NEWDATESUB" ]; then \ + if [ ! -e config.sub.bak ]; then\ + cp -f config.sub config.sub.bak;\ + fi;\ + if [ -e config.sub.bak ]; then\ + cp -f /usr/share/misc/config.sub config.sub;\ + fi;\ + fi + +configure-stamp: + dh_testdir + CPPFLAGS=-D_REENTRANT \ + CFLAGS="${CFLAGS} -DBUILD_REAL_64_BIT_MODE" \ + ./configure $(confflags) \ + --with-gnu-ld --with-tdsver=4.2 --prefix=/usr \ + --with-unixodbc=/usr --sysconfdir=/etc/freetds \ + --enable-sybase-compat + touch configure-stamp + +build: autotools build-stamp +build-stamp: configure-stamp + dh_testdir + $(MAKE) + touch build-stamp + +clean: + dh_testdir + dh_testroot + -rm -f build-stamp configure-stamp + -$(MAKE) distclean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs -a + + $(MAKE) install prefix=`pwd`/debian/tmp/usr sysconfdir=`pwd`/debian/tmp/etc/freetds + mv debian/tmp/etc/freetds/freetds.conf debian/libct3/usr/share/libct3 + mv `pwd`/debian/tmp/usr/lib/libtdsodbc.so.0.0.0 `pwd`/debian/tdsodbc/usr/lib/odbc/libtdsodbc.so + install -m644 odbcinst.ini `pwd`/debian/tdsodbc/usr/share/tdsodbc/ + ln -s ../../../libct3/freetds.conf ../../../tdsodbc/odbcinst.ini \ + debian/libct3/usr/share/doc/libct3/examples + dh_movefiles + +manifest: install + sh ./debian/update-manifest.sh libct3 libsybdb5 + +binary-indep: + @echo Nothing to do + +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installdocs -plibct3 NEWS README TODO + dh_installexamples + dh_installchangelogs -plibct3 ChangeLog + dh_installdebconf -a + rm -rf `pwd`/debian/freetds-dev/usr/share/doc/freetds-dev + rm -rf `pwd`/debian/libsybdb5/usr/share/doc/libsybdb5 + dh_strip -a + dh_link -a + dh_compress -a + dh_fixperms -a + chmod a+x ./debian/dh_makeshlibs + ./debian/dh_makeshlibs -a -Xtdsodbc + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +get-orig-source: + wget ftp://ftp.metalab.unc.edu/pub/Linux/ALPHA/freetds/freetds-0.52.tgz + +binary: binary-indep binary-arch + +.PHONY: build binary binary-arch binary-indep clean install autotools \ + manifest --- freetds-0.63.orig/debian/tdsodbc.links +++ freetds-0.63/debian/tdsodbc.links @@ -0,0 +1 @@ +usr/share/doc/libct3 usr/share/doc/tdsodbc --- freetds-0.63.orig/debian/tdsodbc.dirs +++ freetds-0.63/debian/tdsodbc.dirs @@ -0,0 +1,3 @@ +/usr/lib/odbc +/var/lib/odbc +/usr/share/tdsodbc --- freetds-0.63.orig/debian/tdsodbc.postinst +++ freetds-0.63/debian/tdsodbc.postinst @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +# Source debconf library. +. /usr/share/debconf/confmodule + +db_version 2.0 + +# If we weren't able to add the ODBC driver in the preinst, add it now. +if [ ! -e /var/lib/odbc/freetds.added ] +then + db_get freetds/addtoodbc || true + if [ "$RET" = "true" ]; then + odbcinst -i -d -f /usr/share/tdsodbc/odbcinst.ini 1>&2 + touch /var/lib/odbc/freetds.added + fi +fi + +db_stop + +#DEBHELPER# + +# The last thing we do; if this command succeeds, ODBC is successfully +# configured, and we shouldn't end up here again -- and this command +# should always succeed. +rm -f /var/lib/odbc/freetds.added /var/lib/odbc/freetds.removed --- freetds-0.63.orig/debian/tdsodbc.postrm +++ freetds-0.63/debian/tdsodbc.postrm @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +if [ ! -e /var/lib/odbc/freetds.removed -a "$1" != purge -a "$1" != remove \ + -a -x /usr/bin/odbcinst -a -e /usr/share/debconf/confmodule ] +then + # Source debconf library. + . /usr/share/debconf/confmodule + db_version 2.0 + + db_get freetds/addtoodbc || true + if [ "$RET" = "true" ]; then + odbcinst -u -d -n FreeTDS + touch /var/lib/odbc/freetds.removed + fi + db_stop +fi + +#DEBHELPER# + +# Don't remove until the end of the purge, because dpkg could be +# interrupted after the end of 'remove', leaving the prerm in place to +# be called again. +if [ "$1" = purge ]; then + rm -f /var/lib/odbc/freetds.added /var/lib/odbc/freetds.removed +fi --- freetds-0.63.orig/debian/tdsodbc.preinst +++ freetds-0.63/debian/tdsodbc.preinst @@ -0,0 +1,27 @@ +#!/bin/sh + +set -e + +# Always add in the installing package, always delete in the +# replaced/removed package -- this way, we'll always have a good +# reference count in odbcinst.ini. +if [ -e /usr/bin/odbcinst -a -e /usr/share/debconf/confmodule \ + -a ! -e /var/lib/odbc/freetds.added ] +then + # Source debconf library. + . /usr/share/debconf/confmodule + + db_get freetds/addtoodbc || true + if [ "$RET" = "true" ] && [ -e /usr/share/tdsodbc/odbcinst.ini ] + then + if [ ! -d /var/lib/odbc ]; then + mkdir /var/lib/odbc + fi + odbcinst -i -d -f /usr/share/tdsodbc/odbcinst.ini 1>&2 + touch /var/lib/odbc/freetds.added + fi + + db_stop +fi + +#DEBHELPER# --- freetds-0.63.orig/debian/tdsodbc.prerm +++ freetds-0.63/debian/tdsodbc.prerm @@ -0,0 +1,21 @@ +#!/bin/sh + +set -e + +# FIXME: the prerm runs *before* the preinst of the new version, so this +# removes the config block before we've increased the refcount! +if [ ! -e /var/lib/odbc/freetds.removed -a "$1" = remove ] +then + # Source debconf library. + . /usr/share/debconf/confmodule + db_version 2.0 + + db_get freetds/addtoodbc || true + if [ "$RET" = "true" ]; then + odbcinst -u -d -n FreeTDS + touch /var/lib/odbc/freetds.removed + fi + db_stop +fi + +#DEBHELPER# --- freetds-0.63.orig/debian/tdsodbc.templates +++ freetds-0.63/debian/tdsodbc.templates @@ -0,0 +1,11 @@ +Template: freetds/addtoodbc +Type: boolean +Default: false +_Description: Do you want FreeTDS to be registered as an ODBC driver? + You appear to have an ODBC manager (unixodbc or iODBC) installed on your + system. FreeTDS now provides an Open Database Connectivity driver that + can be registered with the manager using the /usr/bin/odbcinst utility. + . + If you wish, FreeTDS will be automatically added as an ODBC driver now and + will be automatically deleted from the list when you remove the freetds + package. --- freetds-0.63.orig/debian/update-manifest.sh +++ freetds-0.63/debian/update-manifest.sh @@ -0,0 +1,19 @@ +#!/bin/sh +LC_COLLATE=C +export LC_COLLATE + +echo Updating library manifest... +for package in $@; do + manifest=debian/$package.manifest + # file format version number + echo " VERSION 2" > $manifest; \ + for i in $(find $(pwd)/debian/$package -type f \ + \( -name '*.so' -or -name '*.so.*' \)) + do + version=`dpkg-parsechangelog |awk '/Version:/ { print $2 }'` + objdump -p $i | sed -n -e"s/\( SONAME.*\)/\\1 $version/p" >> $manifest + objdump -T $i | grep -E ' [gw] .*\.text|__cxa_pure_virtual' \ + | grep -vE '\b((__gmon_start__|_ftext)\b|_(rest|save)[fg]pr)' \ + | cut -b34- | c++filt | sort >> $manifest + done +done --- freetds-0.63.orig/debian/watch +++ freetds-0.63/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://ibiblio.org/pub/Linux/ALPHA/freetds/stable/ freetds-([0-9].*)\.tar\.gz --- freetds-0.63.orig/PWD +++ freetds-0.63/PWD @@ -0,0 +1,19 @@ +# $Id: PWD.in,v 1.1 2002/09/12 15:24:20 castellano Exp $ +# +# This file was taken from DBD::Sybase :-) It is used by 'make check' to test +# the installation +# +# UID: the username of a user to connect with +# PWD: the password for that user +# SRV: the symbolic server name from the freetds.conf (or interfaces) file. +# Note: if you use a hostname/IP here instead, freetds will attempt to +# connect using the compiletime default port (4000 for TDS 5.0, 1433 for +# 4.2 or 7.0) which is usually not right. +# DB: Database in which to create tables used in the tests. For those new to +# Sybase or MS SQL server, there may be many database per server. tempdb +# is a good default choice if unsure. +# +UID=guest +PWD=sybase +SRV=JDBC +DB=tempdb --- freetds-0.63.orig/freetds.conf.pl +++ freetds-0.63/freetds.conf.pl @@ -0,0 +1,92 @@ +#!/usr/bin/perl +# +# FreeTDS - Library of routines accessing Sybase and Microsoft databases +# Copyright (C) 2001 James K. Lowden +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Library General Public +# License as published by the Free Software Foundation; either +# version 2 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 +# Library General Public License for more details. +# +# You should have received a copy of the GNU Library General Public +# License along with this library; if not, write to the +# Free Software Foundation, Inc., 59 Temple Place - Suite 330, +# Boston, MA 02111-1307, USA. + +# This program converts entries in an interfaces file to the format +# of freetds.conf. + +if( @ARGV > 0 ) { + $interfaces = $ARGV[0]; + goto OPEN if( -e $interfaces && ! -d $interfaces ); + + # agument was only directory name? + $interfaces = "$interfaces/interfaces"; + goto OPEN if( -e $interfaces ); + + warn "Could not find 'interfaces' file using $ARGV[0].\n"; +} + +# is it in the current directory? +$interfaces = 'interfaces'; +goto OPEN if( -e $interfaces ); + +# is it in the $SYBASE directory? +$interfaces = "$ENV{SYBASE}/interfaces"; +goto OPEN if( -e $interfaces ); + +CROAK: # no input file found . +$searched = qq("$ARGV[0]", ) if $ARGV[0]; +$searched .= qq/\$SYBASE ("$SYBASE") /; +$searched .= ", " if $ARGV[0]; +$searched .= "or " . `pwd`; +die qq(No "interfaces" file found to convert in $searched); + + +OPEN: +open INTERFACES, $interfaces or die qq(Could not open "$interfaces" from `pwd`); +print qq(# The following lines were converted from "$interfaces":\n); + +$fPrintComments = 0; +while() { + # Print comments after finding some kind of data line + # (skip boilerplate explanatory comments in model interfaces file). + if( /^#/ ) { + print if $fPrintComments; + next; + } + + $fPrintComments = 1; # reached first non-commented line + + if( /^(\w+)/ ) { # new symbolic name found + chomp; + $SymbolicName = $1; + $hostname = $port = $tds = ''; + next; + } + + next unless $SymbolicName; + + # ignore "master" record + next if /^\s+master/; + + # if we know the symbolic name and we found a "query" line... + if( s/^\s+query//o ) { # found a live one + chomp; + ($tcp, $tds, $hostname, $port) = split; + $tds =~ s/tds//o; # strip off 'tds' if in form of 'tds4.2' + print qq([$SymbolicName]\n); + print qq(\thost = $hostname\n); + print qq(\tport = $port\n); + print qq(\ttds version = $tds\n) if $tds =~ /\d.*\d/; + print qq(\n); + + $SymbolicName = ''; + $hostname = $port = $tds = ''; + } +} --- freetds-0.63.orig/odbcinst.ini +++ freetds-0.63/odbcinst.ini @@ -0,0 +1,6 @@ +[FreeTDS] +Description = TDS driver (Sybase/MS SQL) +Driver = /usr/lib/odbc/libtdsodbc.so +Setup = /usr/lib/odbc/libtdsS.so +CPTimeout = +CPReuse =