debian/0000755000000000000000000000000012176755434007204 5ustar debian/control0000644000000000000000000000227012176755330010603 0ustar Source: libjtds-java Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Martín Ferrari Build-Depends: debhelper (>= 9), javahelper, maven-repo-helper Build-Depends-Indep: libjcifs-java, default-jdk, ant Standards-Version: 3.9.4 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-java/libjtds-java.git Vcs-Git: git://anonscm.debian.org/pkg-java/libjtds-java.git Homepage: http://jtds.sourceforge.net Package: libjtds-java Architecture: all Depends: ${misc:Depends}, ${java:Depends} Description: JDBC 3.0 driver for Microsoft SQL Server(tm) and Sybase(tm) jTDS is an open source JDBC 3.0 Type 4 driver for Microsoft SQL Server (6.5, 7.0, 2000 and 2005) and Sybase (10, 11, 12, 15). jTDS is the fastest JDBC driver for MS SQL Server and is a complete implementation of the JDBC spec. . jTDS is the most performant JDBC driver for both Microsoft SQL Server and Sybase. It is a complete implementation of JDBC 3.0, it passes the J2EE 1.3 certification and Hibernate test suites and is the preferred SQL Server/Sybase driver for JBoss, Hibernate, Atlassian JIRA and Confluence, DbVisualizer and Compiere. debian/build.xml0000644000000000000000000000753112176755330011026 0ustar debian/watch0000644000000000000000000000015312176755330010227 0ustar version=3 opts="dversionmangle=s/\+dfsg//" \ http://sf.net/jtds/jtds-(.+)-src\.zip debian debian/repack.sh debian/rules0000755000000000000000000000076112176755330010263 0ustar #!/usr/bin/make -f export JAVA_HOME=/usr/lib/jvm/default-java export CLASSPATH=/usr/share/java/jcifs.jar %: dh $@ --with javahelper # Ignore upstream's build.xml. override_dh_auto_clean: dh_auto_clean -- -f debian/build.xml -Dcurdir=$(CURDIR) mh_clean override_dh_auto_build: dh_auto_build -- -f debian/build.xml -Dcurdir=$(CURDIR) dist override_dh_auto_install: mh_installpom -plibjtds-java --has-package-version pom.xml mh_installjar -plibjtds-java --java-lib pom.xml dist/jtds-*.jar debian/maven.rules0000644000000000000000000000006012176755330011355 0ustar net.sourceforge.jtds jtds jar s/.*/debian/ * * debian/examples0000644000000000000000000000010512176755330010734 0ustar conf/connection.properties.tmpl conf/jtds-ds.xml conf/jtds-xa-ds.xml debian/patches/0000755000000000000000000000000012176755330010626 5ustar debian/patches/series0000644000000000000000000000003612176755330012042 0ustar 01-compatible-with-java7.diff debian/patches/01-compatible-with-java7.diff0000644000000000000000000001554012176755330016001 0ustar Description: Adds dummy JDBC 4.1 methods to compile with Java 7. This patch can be removed after upgrading to jTDS 1.3 Author: Shuxiong Ye . Forwarded: not-needed --- a/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java +++ b/src/main/net/sourceforge/jtds/jdbc/ConnectionJDBC2.java @@ -29,6 +29,7 @@ import java.util.Properties; import java.util.HashSet; import java.util.Random; +import java.util.concurrent.Executor; import net.sourceforge.jtds.jdbc.cache.*; import net.sourceforge.jtds.util.*; @@ -2614,4 +2615,26 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public void setSchema(String schema) throws SQLException { + throw new SQLException(); + } + + public String getSchema() throws SQLException { + throw new SQLException(); + } + + public void abort(Executor executor) throws SQLException { + throw new SQLException(); + } + + public void setNetworkTimeout(Executor executor, int milliseconds) + throws SQLException { + throw new SQLException(); + } + + public int getNetworkTimeout() throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbc/Driver.java +++ b/src/main/net/sourceforge/jtds/jdbc/Driver.java @@ -21,11 +21,13 @@ import java.sql.DriverManager; import java.sql.DriverPropertyInfo; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.Enumeration; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Properties; +import java.util.logging.Logger; import net.sourceforge.jtds.ssl.Ssl; @@ -463,4 +465,9 @@ public static void main(String[] args) { System.out.println("jTDS " + getVersion()); } + + public Logger getParentLogger() throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } } + --- a/src/main/net/sourceforge/jtds/jdbc/JtdsCallableStatement.java +++ b/src/main/net/sourceforge/jtds/jdbc/JtdsCallableStatement.java @@ -1075,4 +1075,15 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public T getObject(int parameterIndex, Class type) + throws SQLException { + throw new SQLException(); + } + + public T getObject(String parameterName, Class type) + throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbc/JtdsDatabaseMetaData.java +++ b/src/main/net/sourceforge/jtds/jdbc/JtdsDatabaseMetaData.java @@ -783,7 +783,7 @@ * @throws SQLException if a database-access error occurs. */ public String getExtraNameCharacters() throws SQLException { - // MS driver returns "$#@" Sybase JConnect returns "@#$£¥" + // MS driver returns "$#@" Sybase JConnect returns "@#$��" return "$#@"; } @@ -3606,4 +3606,15 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public ResultSet getPseudoColumns(String catalog, String schemaPattern, + String tableNamePattern, String columnNamePattern) + throws SQLException { + throw new SQLException(); + } + + public boolean generatedKeyAlwaysReturned() throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java +++ b/src/main/net/sourceforge/jtds/jdbc/JtdsResultSet.java @@ -1766,4 +1766,14 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public T getObject(int columnIndex, Class type) throws SQLException { + throw new SQLException(); + } + + public T getObject(String columnLabel, Class type) + throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbc/JtdsStatement.java +++ b/src/main/net/sourceforge/jtds/jdbc/JtdsStatement.java @@ -1346,4 +1346,13 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public void closeOnCompletion() throws SQLException { + throw new SQLException(); + } + + public boolean isCloseOnCompletion() throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbcx/JtdsDataSource.java +++ b/src/main/net/sourceforge/jtds/jdbcx/JtdsDataSource.java @@ -20,6 +20,7 @@ import java.io.*; import java.sql.Connection; import java.sql.SQLException; +import java.sql.SQLFeatureNotSupportedException; import java.util.Properties; import javax.naming.NamingException; import javax.naming.Reference; @@ -780,4 +781,9 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public java.util.logging.Logger getParentLogger() + throws SQLFeatureNotSupportedException { + throw new SQLFeatureNotSupportedException(); + } +} + --- a/src/main/net/sourceforge/jtds/jdbcx/proxy/CallableStatementProxy.java +++ b/src/main/net/sourceforge/jtds/jdbcx/proxy/CallableStatementProxy.java @@ -22,6 +22,7 @@ import java.math.BigDecimal; import java.sql.*; import java.util.Calendar; +import java.util.Map; import net.sourceforge.jtds.jdbc.*; @@ -1955,4 +1956,15 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public T getObject(int parameterIndex, Class type) + throws SQLException { + throw new SQLException(); + } + + public T getObject(String parameterName, Class type) + throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbcx/proxy/ConnectionProxy.java +++ b/src/main/net/sourceforge/jtds/jdbcx/proxy/ConnectionProxy.java @@ -20,6 +20,7 @@ import java.sql.*; import java.util.Map; import java.util.Properties; +import java.util.concurrent.Executor; import net.sourceforge.jtds.jdbc.*; import net.sourceforge.jtds.jdbcx.*; @@ -804,4 +805,26 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public void setSchema(String schema) throws SQLException { + throw new SQLException(); + } + + public String getSchema() throws SQLException { + throw new SQLException(); + } + + public void abort(Executor executor) throws SQLException { + throw new SQLException(); + } + + public void setNetworkTimeout(Executor executor, int milliseconds) + throws SQLException { + throw new SQLException(); + } + + public int getNetworkTimeout() throws SQLException { + throw new SQLException(); + } + +} + --- a/src/main/net/sourceforge/jtds/jdbcx/proxy/StatementProxy.java +++ b/src/main/net/sourceforge/jtds/jdbcx/proxy/StatementProxy.java @@ -740,4 +740,13 @@ throw new AbstractMethodError(); } -} \ No newline at end of file + public void closeOnCompletion() throws SQLException { + throw new SQLException(); + } + + public boolean isCloseOnCompletion() throws SQLException { + throw new SQLException(); + } + +} + debian/libjtds-java.javadoc0000644000000000000000000000001512176755330013076 0ustar dist/javadoc debian/copyright0000644000000000000000000000747612176755330011150 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: jTDS Source: http://jtds.sourceforge.net Files: debian/* Copyright: 2007-2013, Martín Ferrari License: GPL-2 On Debian GNU/Linux systems, the complete text of the GNU General Public License can be found in `/usr/share/common-licenses/GPL-2' Files: src/main/net/sourceforge/jtds/util/GeneralDigest.java src/main/net/sourceforge/jtds/util/MD4Digest.java src/main/net/sourceforge/jtds/util/MD5Digest.java Copyright: 2000, The Legion Of The Bouncy Castle (http://www.bouncycastle.org) License: MIT Copyright (c) 2000 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: src/main/net/sourceforge/jtds/util/DESEngine.java Copyright: 2003, Matt Brinkley 2000, The Legion Of The Bouncy Castle (http://www.bouncycastle.org) License: MIT This file is a slightly modified version of org.bouncycastle.crypto.engines.DESEngine from the Bouncy Castle project. It lacks a copyright notice on it, and the original version does too; so I understand this was a unintentional omission. The Bouncy Castle project states that "Except where otherwise stated, software produced by this site is covered by the following license." . Copyright (c) 2000 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: * Copyright: 2004, The jTDS Project License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1' debian/source/0000755000000000000000000000000012176755330010477 5ustar debian/source/format0000644000000000000000000000001412176755330011705 0ustar 3.0 (quilt) debian/repack.sh0000644000000000000000000000260212176755330011000 0ustar #!/bin/sh # Repackage upstream source to exclude non-distributable files # should be called as "repack.sh --upstream-source # (for example, via uscan) set -e set -u FILE=$3 PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'` VER=$2 #VER=`dpkg-parsechangelog|grep ^Version:|sed 's/^Version: //; s/+dfsg-[^-]\+$//'` printf "\nRepackaging $FILE\n" DIR=`mktemp -d ./tmpRepackXXXXXX` trap "rm -rf $DIR" QUIT INT EXIT mkdir $DIR/$PKG-$VER unzip $FILE -d $DIR/$PKG-$VER REPACK=${PKG}_$VER.orig.tar.gz UP_DIR=$PKG-$VER ( set -e set -u cd $DIR # Files without proper copyright notices and unused rm -vrf $UP_DIR/src/SSO rm -vrf $UP_DIR/src/XA #rm -vrf $UP_DIR/src/tools rm -vf $UP_DIR/src/test/net/sourceforge/jtds/test/{AsTest.java,CSUnitTest.java,DatabaseTestCase.java,JDBC3Test.java,NtlmAuthTest.java,SAfeTest.java,SanityTest.java,Tds5Test.java,TestBase.java,TimestampTest.java,UpdateTest.java} rm -vf $UP_DIR/src/tools/net/sourceforge/jtds/tools/{PacketLogger.java,SQLProxy.java,SqlForwarder.java} #src/main/net/sourceforge/jtds/util/DESEngine.java # Third party libraries inclued without any attribution rm -vrf $UP_DIR/lib REPACK_DIR="$PKG-$VER.orig" mv $UP_DIR $REPACK_DIR tar -c $REPACK_DIR | gzip -9 > $REPACK ) #mv $DIR/$REPACK $FILE mv $DIR/$REPACK `dirname $FILE` rm -f $FILE echo "*** $FILE repackaged" debian/libjtds-java.docs0000644000000000000000000000002012176755330012413 0ustar README.SSL html debian/libjtds-java.doc-base.docs0000644000000000000000000000042012176755330014073 0ustar Document: libjtds-java-doc Title: libjtds-java documentation Author: The jTDS Project Abstract: Documentation from the project's website Section: Programming Format: HTML Index: /usr/share/doc/libjtds-java/html/index.html Files: /usr/share/doc/libjtds-java/html/*.html debian/compat0000644000000000000000000000000212176755330010375 0ustar 9 debian/changelog0000644000000000000000000000611612176755330011055 0ustar libjtds-java (1.2.5+dfsg-3) unstable; urgency=low [ Martín Ferrari ] * Fix Java7 build issues. (Closes: #717251) * Migrate from CDBS to DH. * Start using format 3.0 (quilt). * Raise compat level to 9. * Rename debian/docs to libjtds-java.docs. * debian/copyright: - Update copyright info. - Set GPL version explicitly for packaging. * debian/control: - Updated Standards-Version to 3.9.4; no changes required. - Set Maintainer and Uploader fields for pkg-java. - Update Vcs-Browser and add Vcs-Git for pkg-java (Closes: #717853) - Remove unused ant-optional dependency, add missing java:Depends. - Remove libcrimson-java dependency, as it is now included in the JDK. [ Emmanuel Bourg ] * debian/copyright: Completed the conversion to the Copyright Format 1.0 * Install the Maven artifacts in /usr/share/maven-repo -- Martín Ferrari Wed, 31 Jul 2013 22:14:07 +0200 libjtds-java (1.2.5+dfsg-2) unstable; urgency=high * Use default-jdk instead of java-6-openjdk for JAVA_HOME. Closes: #642751. * Uploading with urgency=high, as this fixes an RC bug. * debian/control: move jdk and ant to Build-Depends-Indep, as it should be. * debian/control: Remove run-time dependency on jre. * debian/source/format: added. * debian/control: Updated Standards-Version with no changes. -- Martín Ferrari Mon, 03 Oct 2011 03:26:01 +0000 libjtds-java (1.2.5+dfsg-1) unstable; urgency=low * New upstream release * Removed debian/patches/00-use-new-javax-net-packages.patch: included in upstream. * debian/rules: removed simple-patchsys.mk. * debian/rules, debian/control: require java 6, needed by new JDBC requirements. * debian/control: updated Standards-Version, no changes. * debian/doc-base: added doc-base index. -- Martín Ferrari Thu, 18 Feb 2010 02:59:03 +0100 libjtds-java (1.2.2+dfsg-3) unstable; urgency=high * debian/control: fixed incorrect build-dependencies. Closes: #543062, which is RC, so urgency=high. * debian/control: added ${misc:Depends} to binary depends. Corrected section to `java'. * debian/watch: moved `-dfsg' processing to dversionmangle. -- Martín Ferrari Sat, 29 Aug 2009 14:57:58 +0200 libjtds-java (1.2.2+dfsg-2) unstable; urgency=low * Minor description improvements (capitalisation and trademarks). * debian/control: ant should be Build-Depends-Indep, correct Vcs-Browser path. Updated email address. -- Martín Ferrari Wed, 11 Jun 2008 22:47:51 -0300 libjtds-java (1.2.2+dfsg-1) unstable; urgency=low * Initial release. (Closes: #454564) * Heavily repackaged to remove upstream cruft: third party libraries, code without copyright, binaries, etc. * Compiled with a custom-made build.xml, as upstream version is not useful for us. * Patched src/main/net/sourceforge/jtds/ssl/SocketFactories.java to use the current (and vendor-neutral) javax.net packages. * Uploaded with DM-Upload-Allowed: yes. -- Martín Ferrari Mon, 10 Dec 2007 15:36:35 -0300