--- jcifs-1.3.12.orig/debian/libjcifs-java.examples
+++ jcifs-1.3.12/debian/libjcifs-java.examples
@@ -0,0 +1 @@
+examples/*
--- jcifs-1.3.12.orig/debian/rules
+++ jcifs-1.3.12/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+# debian/rules file for jcifs (uses cdbs)
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/ant.mk
+include /usr/share/cdbs/1/rules/simple-patchsys.mk
+
+JAVA_HOME := /usr/lib/jvm/default-java
+
+DEB_JARS := servlet-api-2.5
+DEB_ANT_BUILD_TARGET := jar javadoc
+DEB_ANT_CLEAN_TARGET := clean
+DEB_COMPRESS_EXCLUDE := *.c *.java
+
+clean::
+	-$(RM) *.jar
+	-$(RM) -Rf docs/api
+
+install/libjcifs-java::
+	# remove empty generated package-lists
+	-$(RM) -f docs/api/package-list
+	install -m 644 jcifs-$(DEB_UPSTREAM_VERSION).jar debian/libjcifs-java/usr/share/java/jcifs-$(DEB_UPSTREAM_VERSION).jar
+	ln -s jcifs-$(DEB_UPSTREAM_VERSION).jar debian/libjcifs-java/usr/share/java/jcifs.jar
+
+.PHONY: get-orig-source
+
+get-orig-source:
+	-uscan --upstream-version 0
--- jcifs-1.3.12.orig/debian/orig-tar.sh
+++ jcifs-1.3.12/debian/orig-tar.sh
@@ -0,0 +1,21 @@
+#!/bin/sh -e
+
+# called by uscan with '--upstream-version' <version> <file>
+TAR=../jcifs-$2.tgz
+DIR=jcifs-$2.orig
+
+# clean up the upstream tarball
+tar zxf $TAR
+rm -f $3 $TAR
+mv jcifs_$2 $DIR
+GZIP=--best tar czf $3 --exclude docs/api --exclude *.jar --exclude *.class --exclude examples/Format.java $DIR
+rm -rf $DIR
+
+# move to directory 'tarballs'
+if [ -r .svn/deb-layout ]; then
+    . .svn/deb-layout
+    mv $3 $origDir
+    echo "moved $3 to $origDir"
+fi
+
+exit 0
--- jcifs-1.3.12.orig/debian/libjcifs-java.dirs
+++ jcifs-1.3.12/debian/libjcifs-java.dirs
@@ -0,0 +1 @@
+usr/share/java
--- jcifs-1.3.12.orig/debian/README.Debian-source
+++ jcifs-1.3.12/debian/README.Debian-source
@@ -0,0 +1,10 @@
+jcifs for Debian
+----------
+
+The upstream supplied tar.gz package contains prebuild libraries. So,
+the orig-tar.sh script is used to automate rebuilding the tarball.
+
+For step-by-step information on how the orig.tar.sh is obtained,
+please look at the orig-tar.sh present in this directory.
+
+ -- Kumar Appaiah <akumar@ee.iitm.ac.in>, Thu,  8 Nov 2007 23:02:10 +0530
--- jcifs-1.3.12.orig/debian/control
+++ jcifs-1.3.12/debian/control
@@ -0,0 +1,33 @@
+Source: jcifs
+Section: java
+Priority: optional
+Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
+Uploaders: Kumar Appaiah <akumar@ee.iitm.ac.in>, Varun Hiremath <varun@debian.org>, Michael Koch <konqueror@gmx.de>
+Build-Depends: debhelper (>= 7), cdbs, default-jdk, ant
+Build-Depends-Indep: libservlet2.5-java
+Standards-Version: 3.8.3
+Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/jcifs
+Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/jcifs
+Homepage: http://jcifs.samba.org
+
+Package: libjcifs-java
+Architecture: all
+Depends: default-jre | java1-runtime | java2-runtime, ${misc:Depends}
+Suggests: libjcifs-java-doc
+Description: java library for the CIFS/SMB networking protocol
+ JCIFS is an Open Source client library that implements the CIFS/SMB
+ networking protocol in 100% Java. CIFS is the standard file sharing
+ protocol on the Microsoft Windows platform (e.g. Map Network Drive ...).
+
+Package: libjcifs-java-doc
+Section: doc
+Architecture: all
+Depends: ${misc:Depends}
+Suggests: libjcifs-java
+Description: Documentation for libjcifs-java (CIFS/SMB library for java)
+ JCIFS is an Open Source client library that implements the CIFS/SMB
+ networking protocol in 100% Java. CIFS is the standard file sharing
+ protocol on the Microsoft Windows platform (e.g. Map Network Drive ...).
+ .
+ The documentation includes the javadoc API as well as
+ the html manual and several examples.
--- jcifs-1.3.12.orig/debian/compat
+++ jcifs-1.3.12/debian/compat
@@ -0,0 +1 @@
+7
--- jcifs-1.3.12.orig/debian/changelog
+++ jcifs-1.3.12/debian/changelog
@@ -0,0 +1,99 @@
+jcifs (1.3.12-1) unstable; urgency=low
+
+  * New upstream release.
+  * Build-Depends on default-jdk.
+  * Build-Depends on debhelper (>= 7).
+  * Build-Depends on libservlet2.5-java instead of libservlet2.3-java.
+  * Add missing Depends: ${misc:Depends}.
+  * Moved package to section 'java'.
+  * Added myself to Uploaders.
+  * Updated Standards-Version to 3.8.3.
+
+ -- Michael Koch <konqueror@gmx.de>  Fri, 02 Oct 2009 23:11:05 +0200
+
+jcifs (1.2.22-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Varun Hiremath <varun@debian.org>  Sat, 05 Jul 2008 03:04:27 +0530
+
+jcifs (1.2.21-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump Standards-Version to 3.8.0
+
+ -- Varun Hiremath <varun@debian.org>  Sun, 22 Jun 2008 18:25:42 +0530
+
+jcifs (1.2.19-1) unstable; urgency=low
+
+  * New upstream release
+
+ -- Varun Hiremath <varun@debian.org>  Tue, 08 Apr 2008 12:41:04 +0530
+
+jcifs (1.2.18-1) unstable; urgency=low
+
+  * New upstream release
+  * Bump Standards-Version to 3.7.3
+
+ -- Varun Hiremath <varun@debian.org>  Thu, 21 Feb 2008 16:17:15 +0530
+
+jcifs (1.2.17-1) unstable; urgency=low
+
+  * New Upstream Release
+  * Add a watch file.
+  * debian/orig-tar.sh:  
+    + Automate repackaging.
+    + Remove example Format.java, since it is not allowed for
+      commercial use.
+  * debian/README.Debian-source:
+    + Update for new repackaging information.
+  * debian/libjcifs-java.examples:
+    + Include upstream supplied examples.
+  * debian/copyright:
+    + Add upstream authors, update licenses and copyrights.
+    + Point to LGPL 2.1, instead of LGPL (for common-license).
+  * debian/control:
+    + Add Homepage field.
+    + Add Vcs-Svn and Vcs-Browser.
+    + Update description.
+    + Build-Depend on java-gcj-compat-dev instead of kaffe.
+    + Depend on java-gcj-compat instead of kaffe.
+    + Update standards version.
+    + Move debhelper and cdbs to Build-Depends.
+  * debian/rules:
+    + Use java-gcj to build.
+    + Use DEB_UPSTREAM_VERSION instead of parsing the changelog.
+    + Add get-orig-source rule.
+    + Don't compress examples.
+  * debian/patches/01_build_xml.patch:
+    + Removed, since not necessary with java-gcj.
+  
+ -- Kumar Appaiah <akumar@ee.iitm.ac.in>  Thu, 08 Nov 2007 22:58:49 +0530
+
+jcifs (1.2.7-1) unstable; urgency=low
+
+  * New upstream release
+  * kaffe compiler transition
+  * Fixed missing source section entry (pointed out by linda)
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Wed, 18 Jan 2006 17:18:31 +0100
+
+jcifs (1.2.3-1) unstable; urgency=low
+
+  * New upstream release
+  * Upload to unstable
+  * Registered documentation with doc-base
+  * libant1.6-java to ant transition
+  * Updated FSF address
+  * Fixed double spaces in description to fix linda warning
+  * Standards-Version 3.6.2 (no changes)
+
+  * Upload sponsored by Arnaud Vandyck
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Sun, 11 Sep 2005 16:48:45 +0200
+
+jcifs (1.1.8-1) experimental; urgency=low
+
+  * Initial Release (closes: #294759)
+
+ -- Wolfgang Baer <WBaer@gmx.de>  Fri, 11 Feb 2005 14:58:19 +0100
--- jcifs-1.3.12.orig/debian/watch
+++ jcifs-1.3.12/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://jcifs.samba.org/src/ jcifs-([\d\.]*).tgz debian debian/orig-tar.sh
--- jcifs-1.3.12.orig/debian/libjcifs-java-doc.docs
+++ jcifs-1.3.12/debian/libjcifs-java-doc.docs
@@ -0,0 +1,4 @@
+README.txt
+docs/*.html
+docs/api
+examples
--- jcifs-1.3.12.orig/debian/libjcifs-java-doc.doc-base
+++ jcifs-1.3.12/debian/libjcifs-java-doc.doc-base
@@ -0,0 +1,10 @@
+Document: libjcifs-java
+Title: Developer documentation and programmer API
+Author: http://jcifs.samba.org/
+Abstract: Developer documentation and programmer API of libjcifs-java
+ a client library that implements the CIFS/SMB networking  protocol.
+Section: Programming
+
+Format: HTML
+Index: /usr/share/doc/libjcifs-java-doc/index.html
+Files: /usr/share/doc/libjcifs-java-doc/*
--- jcifs-1.3.12.orig/debian/copyright
+++ jcifs-1.3.12/debian/copyright
@@ -0,0 +1,85 @@
+This package was debianized by Wolfgang Baer <WBaer@gmx.de> on
+Fri, 11 Feb 2005 14:58:19 +0100.
+
+It was downloaded from <http://jcifs.samba.org>
+
+Copyright: (C) 2002 - 2007, Michael B. Allen <jcifs@samba.org>
+	   (C) 2003, Eric Glass <jcifs@samba.org>
+	   (C) 1996, Jef Poskanzer <jef@acme.com>
+	   (C) 1996, Wolfgang Platzer <wplatzer@iaik.tu-graz.ac.at>
+	   (C) 1996 Widget Workshop, Inc.
+
+Upstream Authors:
+	 Michael B. Allen <jcifs@samba.org> (Chief author)
+	 Eric Glass <jcifs@samba.org>
+	 Jef Poskanzer
+	 Wolfgang Platzer
+	 Other contributors to the JCIFS project
+
+License:
+
+   This package 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; version 2.1 dated February 1999.
+   
+   This package 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 Lesser General Public License for more details.
+
+   You should have received a copy of the GNU Lesser General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
+
+On Debian systems, the complete text of the GNU Lesser General
+Public License can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+Licence for DES.java:
+   The meat of this code is by Dave Zimmerman <dzimm@widget.com>, and is
+   licensed as follows:
+  
+   Permission to use, copy, modify, and distribute this software
+   and its documentation for NON-COMMERCIAL or COMMERCIAL purposes and
+   without fee is hereby granted, provided that this copyright notice is kept
+   intact.
+  
+   WIDGET WORKSHOP MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY
+   OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
+   TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
+   PARTICULAR PURPOSE, OR NON-INFRINGEMENT. WIDGET WORKSHOP SHALL NOT BE LIABLE
+   FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+   DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
+  
+   THIS SOFTWARE IS NOT DESIGNED OR INTENDED FOR USE OR RESALE AS ON-LINE
+   CONTROL EQUIPMENT IN HAZARDOUS ENVIRONMENTS REQUIRING FAIL-SAFE
+   PERFORMANCE, SUCH AS IN THE OPERATION OF NUCLEAR FACILITIES, AIRCRAFT
+   NAVIGATION OR COMMUNICATION SYSTEMS, AIR TRAFFIC CONTROL, DIRECT LIFE
+   SUPPORT MACHINES, OR WEAPONS SYSTEMS, IN WHICH THE FAILURE OF THE
+   SOFTWARE COULD LEAD DIRECTLY TO DEATH, PERSONAL INJURY, OR SEVERE
+   PHYSICAL OR ENVIRONMENTAL DAMAGE ("HIGH RISK ACTIVITIES").  WIDGET WORKSHOP
+   SPECIFICALLY DISCLAIMS ANY EXPRESS OR IMPLIED WARRANTY OF FITNESS FOR
+   HIGH RISK ACTIVITIES.
+  
+  
+   The rest is licences as:
+  
+   Redistribution and use in source and binary forms, with or without
+   modification, are permitted provided that the following conditions
+   are met:
+   1. Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+   2. Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and or other materials provided with the distribution.
+  
+   THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+   ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+   IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+   ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+   FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+   OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+   HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+   LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+   OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+   SUCH DAMAGE.
--- jcifs-1.3.12.orig/debian/patches/02_index_doc_relative.patch
+++ jcifs-1.3.12/debian/patches/02_index_doc_relative.patch
@@ -0,0 +1,49 @@
+--- docs/index.html.orig	2005-11-18 23:21:25.000000000 +0100
++++ docs/index.html	2006-01-18 17:28:32.000000000 +0100
+@@ -88,28 +88,26 @@
+ <TR>
+ <TD class="leftpane" width="350" valign="top">
+ <h1>Links</h1>
+-<a href="src/">Download</a>
++<a href="ntlmhttpauth.html">JCIFS NTLM HTTP Authentication</a>
+ <br>
+-<a href="src/docs/ntlmhttpauth.html">JCIFS NTLM HTTP Authentication</a>
+-<br>
+-<a href="src/docs/faq.html">The FAQ</a>
++<a href="faq.html">The FAQ</a>
+ <br>
+ <a href="http://news.gmane.org/gmane.network.samba.java">Mailing List Archive (GMANE)</a>
+ <br>
+-<a href="src/docs/capture.html">Obtaining a Network Packet Capture</a>
++<a href="capture.html">Obtaining a Network Packet Capture</a>
+ <br>
+ <h2>Developer Information</h2>
+-<a href="src/docs/api/">JCIFS API Documentation</a>
++<a href="api/index.html">JCIFS API Documentation</a>
+ <br>
+-<a href="src/docs/api/overview-summary.html#scp">Setting Client Properties</a>
++<a href="overview.html#scp">Setting Client Properties</a>
+ <br>
+-<a href="src/docs/resolver.html">Setting Name Resolution Properties</a>
++<a href="resolver.html">Setting Name Resolution Properties</a>
+ <br>
+-<a href="src/docs/pipes.html">Using JCIFS to Connect to Win32 Named Pipes</a>
++<a href="pipes.html">Using JCIFS to Connect to Win32 Named Pipes</a>
+ <br>
+-<a href="src/docs/authhandler.html">JCIFS Exceptions and NtlmAuthenticator</a>
++<a href="authhandler.html">JCIFS Exceptions and NtlmAuthenticator</a>
+ <br>
+-<a href="src/docs/httpclient.html">Using JCIFS NTLM Authentication for HTTP Connections</a>
++<a href="httpclient.html">Using JCIFS NTLM Authentication for HTTP Connections</a>
+ <br>
+ <a href="http://www.gnu.org/licenses/lgpl.html">JCIFS is Licensed Under the LGPL</a>
+ <br>
+@@ -206,7 +204,7 @@
+ <br>
+ <a href="src/src/jcifs/">Browse the Source</a>
+ <br>
+-<a href="src/docs/batching.html">Batching</a>
++<a href="batching.html">Batching</a>
+ <br>
+ <a href="http://www.fsf.org/copyleft/lgpl.html">GNU Library General Public License</a>
+ <br>
