Imported Debian patch 1.2.5+dfsg-2
Martín Ferrari
10 years ago
0 | <?xml version="1.0" encoding="UTF-8"?> | |
1 | ||
2 | <project basedir="." default="compile" name="jtds"> | |
3 | ||
4 | <path id="libs"> | |
5 | <pathelement location="/usr/share/java/crimson.jar"/> | |
6 | <pathelement location="/usr/share/java/jcifs.jar"/> | |
7 | <pathelement location="/usr/share/java/libgcj8.jar"/> | |
8 | <!-- | |
9 | <pathelement location="/usr/share/java/ant-optional.jar"/> | |
10 | <pathelement location="/usr/share/java/junit.jar"/> | |
11 | --> | |
12 | </path> | |
13 | ||
14 | <target name="init"> | |
15 | <tstamp/> | |
16 | ||
17 | <property name="build.compiler" value="modern"/> | |
18 | <property name="javac.debug" value="on"/> | |
19 | <property name="javac.optimize" value="on"/> | |
20 | ||
21 | <property name="src" value="${curdir}/src"/> | |
22 | <property name="build" value="${curdir}/build"/> | |
23 | <property name="dist" value="${curdir}/dist"/> | |
24 | ||
25 | <property name="version" value="1.2.5"/> | |
26 | </target> | |
27 | ||
28 | <target name="clean" depends="init"> | |
29 | <delete dir="${build}"/> | |
30 | <delete dir="${dist}"/> | |
31 | </target> | |
32 | ||
33 | <target name="prepare" depends="init"> | |
34 | <mkdir dir="${build}"/> | |
35 | <mkdir dir="${dist}"/> | |
36 | <copy todir="${build}"> | |
37 | <fileset dir="${src}/main" includes="**/*.properties"/> | |
38 | </copy> | |
39 | </target> | |
40 | ||
41 | <target name="compile" depends="init,prepare"> | |
42 | <javac destdir="${build}" | |
43 | srcdir="${src}/main" | |
44 | classpathref="libs" | |
45 | debug="${javac.debug}" | |
46 | optimize="${javac.optimize}" | |
47 | encoding="latin1" /> | |
48 | </target> | |
49 | <target name="compile-test" depends="compile"> | |
50 | <javac destdir="${build}" | |
51 | srcdir="${src}/test" | |
52 | classpathref="libs" | |
53 | debug="${javac.debug}" | |
54 | optimize="${javac.optimize}" | |
55 | encoding="latin1"> | |
56 | <exclude name="**/GenKeyTest.java"/> | |
57 | <exclude name="**/JDBC3Test.java"/> | |
58 | <exclude name="**/LargeLOBTest.java"/> | |
59 | <exclude name="**/LOBTest.java"/> | |
60 | <exclude name="**/SavepointTest.java"/> | |
61 | <exclude name="**/CallableStatementJDBC3Test.java"/> | |
62 | <exclude name="**/DatabaseMetaDataJDBC3Test.java"/> | |
63 | <exclude name="**/ConnectionJDBC3Test.java"/> | |
64 | </javac> | |
65 | </target> | |
66 | ||
67 | <target name="javadoc" depends="prepare"> | |
68 | <mkdir dir="${dist}/javadoc"/> | |
69 | <javadoc sourcepath="${src}/main" | |
70 | encoding="latin1" | |
71 | destdir="${dist}/javadoc" | |
72 | packagenames="net.sourceforge.jtds.*" | |
73 | Author="true" | |
74 | Doctitle="jTDS API Documentation" | |
75 | Use="true" Version="true" bottom="Generated on ${TODAY}" | |
76 | Windowtitle="jTDS API" Private="true" classpathref="libs"> | |
77 | <tag name="todo" description="To do:"/> | |
78 | <tag name="created" description="Created:"/> | |
79 | </javadoc> | |
80 | </target> | |
81 | ||
82 | <target name="test" depends="compile-test"> | |
83 | <taskdef name="junit" | |
84 | classname="org.apache.tools.ant.taskdefs.optional.junit.JUnitTask"/> | |
85 | ||
86 | <junit fork="no" haltonfailure="no" printsummary="yes"> | |
87 | <classpath> | |
88 | <pathelement location="build"/> | |
89 | <path refid="libs"/> | |
90 | </classpath> | |
91 | <formatter type="plain"/> | |
92 | <batchtest> | |
93 | <fileset dir="${src}"> | |
94 | <include name="**/*Test.java"/> | |
95 | <exclude name="**/AllTests.java"/> | |
96 | </fileset> | |
97 | </batchtest> | |
98 | </junit> | |
99 | </target> | |
100 | ||
101 | <target name="dist" depends="clean,compile,javadoc"> | |
102 | <!-- Runtime jar --> | |
103 | <jar basedir="${build}" | |
104 | excludes="net/sourceforge/jtds/test/" | |
105 | includes="**/*" | |
106 | jarfile="${dist}/${ant.project.name}-${version}.jar"> | |
107 | <manifest> | |
108 | <attribute name="Implementation-Title" value="jTDS JDBC Driver"/> | |
109 | <attribute name="Implementation-Version" value="${version}"/> | |
110 | <attribute name="Implementation-URL" value="http://jtds.sourceforge.net"/> | |
111 | <attribute name="Specification-Title" value="JDBC"/> | |
112 | <attribute name="Specification-Version" value="3.0"/> | |
113 | <attribute name="Class-Path" value="jcifs.jar"/> | |
114 | <attribute name="Main-Class" value="net.sourceforge.jtds.jdbc.Driver"/> | |
115 | </manifest> | |
116 | </jar> | |
117 | ||
118 | </target> | |
119 | ||
120 | </project> |
0 | libjtds-java (1.2.5+dfsg-2) unstable; urgency=high | |
1 | ||
2 | * Use default-jdk instead of java-6-openjdk for JAVA_HOME. Closes: #642751. | |
3 | * Uploading with urgency=high, as this fixes an RC bug. | |
4 | * debian/control: move jdk and ant to Build-Depends-Indep, as it should be. | |
5 | * debian/control: Remove run-time dependency on jre. | |
6 | * debian/source/format: added. | |
7 | * debian/control: Updated Standards-Version with no changes. | |
8 | ||
9 | -- Martín Ferrari <tincho@debian.org> Mon, 03 Oct 2011 03:26:01 +0000 | |
10 | ||
11 | libjtds-java (1.2.5+dfsg-1) unstable; urgency=low | |
12 | ||
13 | * New upstream release | |
14 | * Removed debian/patches/00-use-new-javax-net-packages.patch: included in | |
15 | upstream. | |
16 | * debian/rules: removed simple-patchsys.mk. | |
17 | * debian/rules, debian/control: require java 6, needed by new JDBC | |
18 | requirements. | |
19 | * debian/control: updated Standards-Version, no changes. | |
20 | * debian/doc-base: added doc-base index. | |
21 | ||
22 | -- Martín Ferrari <tincho@debian.org> Thu, 18 Feb 2010 02:59:03 +0100 | |
23 | ||
24 | libjtds-java (1.2.2+dfsg-3) unstable; urgency=high | |
25 | ||
26 | * debian/control: fixed incorrect build-dependencies. Closes: #543062, which | |
27 | is RC, so urgency=high. | |
28 | * debian/control: added ${misc:Depends} to binary depends. Corrected section | |
29 | to `java'. | |
30 | * debian/watch: moved `-dfsg' processing to dversionmangle. | |
31 | ||
32 | -- Martín Ferrari <tincho@debian.org> Sat, 29 Aug 2009 14:57:58 +0200 | |
33 | ||
34 | libjtds-java (1.2.2+dfsg-2) unstable; urgency=low | |
35 | ||
36 | * Minor description improvements (capitalisation and trademarks). | |
37 | * debian/control: ant should be Build-Depends-Indep, correct Vcs-Browser | |
38 | path. Updated email address. | |
39 | ||
40 | -- Martín Ferrari <tincho@debian.org> Wed, 11 Jun 2008 22:47:51 -0300 | |
41 | ||
42 | libjtds-java (1.2.2+dfsg-1) unstable; urgency=low | |
43 | ||
44 | * Initial release. (Closes: #454564) | |
45 | * Heavily repackaged to remove upstream cruft: third party libraries, code | |
46 | without copyright, binaries, etc. | |
47 | * Compiled with a custom-made build.xml, as upstream version is not useful | |
48 | for us. | |
49 | * Patched src/main/net/sourceforge/jtds/ssl/SocketFactories.java to use the | |
50 | current (and vendor-neutral) javax.net packages. | |
51 | * Uploaded with DM-Upload-Allowed: yes. | |
52 | ||
53 | -- Martín Ferrari <martin.ferrari@gmail.com> Mon, 10 Dec 2007 15:36:35 -0300 |
0 | 5 |
0 | Source: libjtds-java | |
1 | Section: java | |
2 | Priority: optional | |
3 | Maintainer: Martín Ferrari <tincho@debian.org> | |
4 | Build-Depends: debhelper (>= 5), cdbs | |
5 | Build-Depends-Indep: libcrimson-java, libjcifs-java, default-jdk, ant, ant-optional | |
6 | Standards-Version: 3.9.2 | |
7 | Homepage: http://jtds.sourceforge.net/ | |
8 | Vcs-Browser: http://canterville.mine.nu/wsvn/debian/trunk/libjtds-java | |
9 | ||
10 | Package: libjtds-java | |
11 | Architecture: all | |
12 | Depends: ${misc:Depends} | |
13 | Description: JDBC 3.0 driver for Microsoft SQL Server(tm) and Sybase(tm) | |
14 | jTDS is an open source JDBC 3.0 Type 4 driver for Microsoft SQL Server (6.5, | |
15 | 7.0, 2000 and 2005) and Sybase (10, 11, 12, 15). jTDS is the fastest JDBC | |
16 | driver for MS SQL Server and is a complete implementation of the JDBC spec. | |
17 | . | |
18 | jTDS is the most performant JDBC driver for both Microsoft SQL Server and | |
19 | Sybase. It is a complete implementation of JDBC 3.0, it passes the J2EE 1.3 | |
20 | certification and Hibernate test suites and is the preferred SQL Server/Sybase | |
21 | driver for JBoss, Hibernate, Atlassian JIRA and Confluence, DbVisualizer and | |
22 | Compiere. |
0 | Original source can be found at http://jtds.sourceforge.net/ | |
1 | ||
2 | Files: debian/* | |
3 | Copyright: © 2007 Martín Ferrari <martin.ferrari@gmail.com> | |
4 | License: GPL | |
5 | ||
6 | Files: */GeneralDigest.java, */MD[45]Digest.java | |
7 | Copyright: © 2000 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) | |
8 | License: MIT | |
9 | Copyright (c) 2000 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) | |
10 | Permission is hereby granted, free of charge, to any person obtaining a | |
11 | copy of this software and associated documentation files (the "Software"), | |
12 | to deal in the Software without restriction, including without limitation | |
13 | the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
14 | and/or sell copies of the Software, and to permit persons to whom the | |
15 | Software is furnished to do so, subject to the following conditions: | |
16 | . | |
17 | The above copyright notice and this permission notice shall be included | |
18 | in all copies or substantial portions of the Software. | |
19 | . | |
20 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
21 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
22 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
23 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
24 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | |
25 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
26 | USE OR OTHER DEALINGS IN THE SOFTWARE. | |
27 | ||
28 | Files: src/main/net/sourceforge/jtds/util/DESEngine.java | |
29 | Copyright: © 2003 Matt Brinkley | |
30 | © 2000 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) | |
31 | License: MIT | |
32 | This file is a slightly modified version of | |
33 | org.bouncycastle.crypto.engines.DESEngine from the Bouncy Castle project. It | |
34 | lacks a copyright notice on it, and the original version does too; so I | |
35 | understand this was a unintentional omission. The Bouncy Castle project states | |
36 | that "Except where otherwise stated, software produced by this site is | |
37 | covered by the following license." | |
38 | . | |
39 | Copyright (c) 2000 The Legion Of The Bouncy Castle (http://www.bouncycastle.org) | |
40 | Permission is hereby granted, free of charge, to any person obtaining a | |
41 | copy of this software and associated documentation files (the "Software"), | |
42 | to deal in the Software without restriction, including without limitation | |
43 | the rights to use, copy, modify, merge, publish, distribute, sublicense, | |
44 | and/or sell copies of the Software, and to permit persons to whom the | |
45 | Software is furnished to do so, subject to the following conditions: | |
46 | . | |
47 | The above copyright notice and this permission notice shall be included | |
48 | in all copies or substantial portions of the Software. | |
49 | . | |
50 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | |
51 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | |
52 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | |
53 | IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, | |
54 | DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR | |
55 | OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE | |
56 | USE OR OTHER DEALINGS IN THE SOFTWARE. | |
57 | ||
58 | ||
59 | Files: * | |
60 | Copyright: © 2004 The jTDS Project | |
61 | License: LGPL-2.1+ | |
62 | This library is free software; you can redistribute it and/or | |
63 | modify it under the terms of the GNU Lesser General Public | |
64 | License as published by the Free Software Foundation; either | |
65 | version 2.1 of the License, or (at your option) any later version. | |
66 | ||
67 | On Debian GNU/Linux systems, the complete text of the GNU Lesser General Public | |
68 | License can be found in `/usr/share/common-licenses/LGPL-2.1' | |
69 | ||
70 | On Debian GNU/Linux systems, the complete text of the GNU General Public | |
71 | License can be found in `/usr/share/common-licenses/GPL' |
0 | usr/share/java |
0 | Document: libjtds-java-doc | |
1 | Title: libjtds-java documentation | |
2 | Author: The jTDS Project | |
3 | Abstract: Documentation from the project's website | |
4 | Section: Programming | |
5 | ||
6 | Format: HTML | |
7 | Index: /usr/share/doc/libjtds-java/html/index.html | |
8 | Files: /usr/share/doc/libjtds-java/html/*.html | |
9 | ||
10 |
0 | Document: libjtds-java-javadoc | |
1 | Title: API JavaDoc for libjtds-java | |
2 | Author: The jTDS Project | |
3 | Abstract: API documentation in JavaDoc format | |
4 | Section: Programming | |
5 | ||
6 | Format: HTML | |
7 | Index: /usr/share/doc/libjtds-java/javadoc/index.html | |
8 | Files: /usr/share/doc/libjtds-java/javadoc/* |
0 | #!/bin/sh | |
1 | # Repackage upstream source to exclude non-distributable files | |
2 | # should be called as "repack.sh --upstream-source <ver> <downloaded file> | |
3 | # (for example, via uscan) | |
4 | ||
5 | set -e | |
6 | set -u | |
7 | ||
8 | FILE=$3 | |
9 | PKG=`dpkg-parsechangelog|grep ^Source:|sed 's/^Source: //'` | |
10 | VER=$2 | |
11 | #VER=`dpkg-parsechangelog|grep ^Version:|sed 's/^Version: //; s/+dfsg-[^-]\+$//'` | |
12 | ||
13 | printf "\nRepackaging $FILE\n" | |
14 | ||
15 | DIR=`mktemp -d ./tmpRepackXXXXXX` | |
16 | trap "rm -rf $DIR" QUIT INT EXIT | |
17 | ||
18 | mkdir $DIR/$PKG-$VER | |
19 | unzip $FILE -d $DIR/$PKG-$VER | |
20 | ||
21 | REPACK=${PKG}_$VER.orig.tar.gz | |
22 | ||
23 | UP_DIR=$PKG-$VER | |
24 | ||
25 | ( | |
26 | set -e | |
27 | set -u | |
28 | ||
29 | cd $DIR | |
30 | ||
31 | # Files without proper copyright notices and unused | |
32 | rm -vrf $UP_DIR/src/SSO | |
33 | rm -vrf $UP_DIR/src/XA | |
34 | #rm -vrf $UP_DIR/src/tools | |
35 | 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} | |
36 | rm -vf $UP_DIR/src/tools/net/sourceforge/jtds/tools/{PacketLogger.java,SQLProxy.java,SqlForwarder.java} | |
37 | ||
38 | #src/main/net/sourceforge/jtds/util/DESEngine.java | |
39 | ||
40 | # Third party libraries inclued without any attribution | |
41 | rm -vrf $UP_DIR/lib | |
42 | ||
43 | REPACK_DIR="$PKG-$VER.orig" | |
44 | mv $UP_DIR $REPACK_DIR | |
45 | tar -c $REPACK_DIR | gzip -9 > $REPACK | |
46 | ) | |
47 | ||
48 | #mv $DIR/$REPACK $FILE | |
49 | mv $DIR/$REPACK `dirname $FILE` | |
50 | rm -f $FILE | |
51 | ||
52 | echo "*** $FILE repackaged" |
0 | #!/usr/bin/make -f | |
1 | # debian/rules file for libjtds-java (uses cdbs) | |
2 | ||
3 | include /usr/share/cdbs/1/rules/debhelper.mk | |
4 | #include /usr/share/cdbs/1/rules/simple-patchsys.mk | |
5 | include /usr/share/cdbs/1/class/ant.mk | |
6 | ||
7 | DEB_UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -n 's/^Version: \(.*\)+dfsg.*/\1/p') | |
8 | ||
9 | install/libjtds-java:: | |
10 | dh_install dist/jtds-$(DEB_UPSTREAM_VERSION).jar usr/share/java | |
11 | dh_link usr/share/java/jtds-$(DEB_UPSTREAM_VERSION).jar \ | |
12 | usr/share/java/jtds.jar | |
13 | ||
14 | JAVA_HOME := /usr/lib/jvm/default-java | |
15 | BUILD_FILE := debian/build.xml | |
16 | DEB_ANT_INVOKE := ant -f $(BUILD_FILE) -Dcurdir=$(CURDIR) | |
17 | DEB_ANT_BUILD_TARGET := dist | |
18 | DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG |
0 | 1.0 |