--- libjtds-java-1.2.2+dfsg.orig/debian/copyright +++ libjtds-java-1.2.2+dfsg/debian/copyright @@ -0,0 +1,72 @@ +Original source can be found at http://jtds.sourceforge.net/ + +Files: debian/* +Copyright: © 2007 Martín Ferrari +License: GPL + +Files: */GeneralDigest.java, */MD[45]Digest.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' + +On Debian GNU/Linux systems, the complete text of the GNU General Public +License can be found in `/usr/share/common-licenses/GPL' --- libjtds-java-1.2.2+dfsg.orig/debian/docs +++ libjtds-java-1.2.2+dfsg/debian/docs @@ -0,0 +1,3 @@ +README.SSL +html +dist/javadoc --- libjtds-java-1.2.2+dfsg.orig/debian/repack.sh +++ libjtds-java-1.2.2+dfsg/debian/repack.sh @@ -0,0 +1,53 @@ +#!/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 -v $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 -v $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 $FILE + +echo "*** $FILE repackaged" --- libjtds-java-1.2.2+dfsg.orig/debian/build.xml +++ libjtds-java-1.2.2+dfsg/debian/build.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --- libjtds-java-1.2.2+dfsg.orig/debian/control +++ libjtds-java-1.2.2+dfsg/debian/control @@ -0,0 +1,25 @@ +Source: libjtds-java +Section: libs +Priority: optional +Maintainer: Martín Ferrari +Build-Depends: debhelper (>= 5), cdbs, ant +Build-Depends-Indep: java-gcj-compat-dev, libcrimson-java, + libjcifs-java +Standards-Version: 3.7.3 +Homepage: http://jtds.sourceforge.net/ +Vcs-Browser: http://canterville.mine.nu/wsvn/debian/trunk/libjtds-java + +Package: libjtds-java +Architecture: all +Depends: java-gcj-compat-dev | java2-runtime +Suggests: java-virtual-machine +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. --- libjtds-java-1.2.2+dfsg.orig/debian/dirs +++ libjtds-java-1.2.2+dfsg/debian/dirs @@ -0,0 +1 @@ +usr/share/java --- libjtds-java-1.2.2+dfsg.orig/debian/watch +++ libjtds-java-1.2.2+dfsg/debian/watch @@ -0,0 +1,3 @@ +version=3 +opts="uversionmangle=s/(?=$)/+dfsg/" \ +http://sf.net/jtds/jtds-(.+)-src\.zip debian debian/repack.sh --- libjtds-java-1.2.2+dfsg.orig/debian/rules +++ libjtds-java-1.2.2+dfsg/debian/rules @@ -0,0 +1,19 @@ +#!/usr/bin/make -f +# debian/rules file for libjtds-java (uses cdbs) + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk +include /usr/share/cdbs/1/class/ant.mk + +DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)+dfsg.*/\1/p') + +install/libjtds-java:: + dh_install dist/jtds-$(DEB_UPSTREAM_VERSION).jar usr/share/java + dh_link usr/share/java/jtds-$(DEB_UPSTREAM_VERSION).jar \ + usr/share/java/jtds.jar + +JAVA_HOME := /usr/lib/jvm/java-gcj +BUILD_FILE := debian/build.xml +DEB_ANT_INVOKE := ant -f $(BUILD_FILE) -Dcurdir=$(CURDIR) +DEB_ANT_BUILD_TARGET := dist +DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG --- libjtds-java-1.2.2+dfsg.orig/debian/examples +++ libjtds-java-1.2.2+dfsg/debian/examples @@ -0,0 +1,3 @@ +conf/connection.properties.tmpl +conf/jtds-ds.xml +conf/jtds-xa-ds.xml --- libjtds-java-1.2.2+dfsg.orig/debian/changelog +++ libjtds-java-1.2.2+dfsg/debian/changelog @@ -0,0 +1,20 @@ +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 --- libjtds-java-1.2.2+dfsg.orig/debian/compat +++ libjtds-java-1.2.2+dfsg/debian/compat @@ -0,0 +1 @@ +5 --- libjtds-java-1.2.2+dfsg.orig/debian/patches/00-use-new-javax-net-packages.patch +++ libjtds-java-1.2.2+dfsg/debian/patches/00-use-new-javax-net-packages.patch @@ -0,0 +1,42 @@ +--- src/main/net/sourceforge/jtds/ssl/SocketFactories.java.orig 2007-08-22 13:39:48.000000000 -0300 ++++ src/main/net/sourceforge/jtds/ssl/SocketFactories.java 2007-12-10 15:33:05.000000000 -0300 +@@ -29,9 +29,10 @@ + import javax.net.ssl.SSLSocket; + import javax.net.ssl.SSLSocketFactory; + +-import com.sun.net.ssl.SSLContext; +-import com.sun.net.ssl.TrustManager; +-import com.sun.net.ssl.X509TrustManager; ++import javax.net.ssl.SSLContext; ++import javax.net.ssl.TrustManager; ++import javax.net.ssl.X509TrustManager; ++import java.security.cert.CertificateException; + + import net.sourceforge.jtds.util.Logger; + +@@ -184,17 +185,16 @@ + return new X509Certificate[0]; + } + +- public boolean isClientTrusted(X509Certificate[] chain) { +- return true; +- } +- +- public boolean isServerTrusted(X509Certificate[] chain) { +- return true; +- } ++ public void checkClientTrusted(X509Certificate[] chain, ++ String authType) ++ throws CertificateException {} ++ public void checkServerTrusted(X509Certificate[] chain, ++ String authType) ++ throws CertificateException {} + }; + + return new X509TrustManager[]{tm}; + } + + } +-} +\ No newline at end of file ++}