--- jlha-utils-0.1.6.orig/debian/ant.properties
+++ jlha-utils-0.1.6/debian/ant.properties
@@ -0,0 +1,6 @@
+compile.nowarn=yes
+compile.optimize=true
+link.offline=true
+link.url=file:///usr/share/doc/classpath-doc/api/
+packagelist.loc=/usr/share/doc/classpath-doc/api
+jlha.jar=/usr/share/java/jlha.jar
--- jlha-utils-0.1.6.orig/debian/jlha.sgml
+++ jlha-utils-0.1.6/debian/jlha.sgml
@@ -0,0 +1,262 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+
+<!-- Process this file with docbook-to-man to generate an nroff manual
+     page: `docbook-to-man manpage.sgml > manpage.1'.  You may view
+     the manual page with: `docbook-to-man manpage.sgml | nroff -man |
+     less'.  A typical entry in a Makefile or Makefile.am is:
+
+manpage.1: manpage.sgml
+	docbook-to-man $< > $@
+
+    
+	The docbook-to-man binary is found in the docbook-to-man package.
+	Please remember that if you create the nroff version in one of the
+	debian/rules file targets (such as build), you will need to include
+	docbook-to-man in your Build-Depends control field.
+
+  -->
+
+  <!-- Fill in your name for FIRSTNAME and SURNAME. -->
+  <!ENTITY dhfirstname "<firstname>Ying-Chun</firstname>">
+  <!ENTITY dhsurname   "<surname>Liu</surname>">
+  <!-- Please adjust the date whenever revising the manpage. -->
+  <!ENTITY dhdate      "<date>Jun 20, 2006</date>">
+  <!-- SECTION should be 1-8, maybe w/ subsection other parameters are
+       allowed: see man(7), man(1). -->
+  <!ENTITY dhsection   "<manvolnum>1</manvolnum>">
+  <!ENTITY dhemail     "<email>grandpaul@gmail.com</email>">
+  <!ENTITY dhusername  "Ying-Chun Liu (PaulLiu)">
+  <!ENTITY dhucpackage "<refentrytitle>jlha-utils</refentrytitle>">
+  <!ENTITY dhpackage   "jlha">
+
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2006</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+
+    <refpurpose> lzh decompressor/compressor</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+
+      <arg><option>[-]{axelvudmcp[q[num]][vnfodizg012]}[w=&lt;dir&gt;]</option></arg><arg>archive_file</arg><arg rep='repeat'>file</arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+
+
+    <para>This manual page documents briefly the
+      <command>&dhpackage;</command> commands.
+      This manual page was written for the &debian; distribution
+      because the original program does not have a manual page.</para>
+
+    <para>
+      <command>&dhpackage;</command> is a program extracts or creates
+	LZH archive files. 
+
+    </para>
+
+  </refsect1>
+  <refsect1>
+    <title>COMMANDS AND OPTIONS</title>
+
+    <para>commands: </para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>a</option></term>
+        <listitem>
+          <para>Add files to archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>x</option><option>e</option></term>
+        <listitem>
+          <para>EXtract files from archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>l</option></term>
+        <listitem>
+          <para>List files from archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>v</option></term>
+        <listitem>
+          <para>Verbose list files from archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>u</option></term>
+        <listitem>
+          <para>Update files to archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>d</option></term>
+        <listitem>
+          <para>Delete files from archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>m</option></term>
+        <listitem>
+          <para>Move files to archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>c</option></term>
+        <listitem>
+          <para>Create archive</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>p</option></term>
+        <listitem>
+          <para>Print archive to stdout</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>t</option></term>
+        <listitem>
+          <para>Test the integrity of an archive</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
+    <para>options: </para>
+
+    <variablelist>
+      <varlistentry>
+        <term><option>q</option></term>
+        <listitem>
+          <para>quiet output</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>v</option></term>
+        <listitem>
+          <para>verbose output</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>f</option></term>
+        <listitem>
+          <para>force overwrite existing files</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>t</option></term>
+        <listitem>
+          <para>FILES are TEXT files</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>o[567]</option></term>
+        <listitem>
+          <para>Change LHA compression algorithm</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>w=</option><replaceable>&lt;dir&gt;</replaceable></term>
+        <listitem>
+          <para>specify working directory. only works for (e/x)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>d</option></term>
+        <listitem>
+          <para>delete files after executing commands. only works for (a/u/c)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>i</option></term>
+        <listitem>
+          <para>ignore path. only works for (e/x)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>z</option></term>
+        <listitem>
+          <para>do not compress files (a/u)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>0/1/2</option></term>
+        <listitem>
+          <para>change header level (a/u)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>e</option></term>
+        <listitem>
+          <para>convert text file encoding from/to EUC-JP</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term><option>y</option></term>
+        <listitem>
+          <para>convert filename from Shift-JIS</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+
+    <para>This manual page was written by &dhusername; &lt;&dhemail;&gt; for
+      the &debian; system (but may be used by others).  This manual page is in 
+	public domain and is freely reproduced, distributed, transmitted, 
+used, modified, built upon, or otherwise exploited by anyone for any purpose,
+commercial or non-commercial,
+and in any way, including by methods that have not yet been invented or
+conceived.
+    </para>
+
+
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
--- jlha-utils-0.1.6.orig/debian/jlha.sh
+++ jlha-utils-0.1.6/debian/jlha.sh
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+exec /usr/bin/java -jar /usr/share/java/jlhafrontend.jar "$@"
--- jlha-utils-0.1.6.orig/debian/copyright
+++ jlha-utils-0.1.6/debian/copyright
@@ -0,0 +1,42 @@
+This package was debianized by Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com> on
+Tue,  8 Aug 2006 23:12:38 +0800.
+
+It was downloaded from http://sourceforge.net/projects/jlhafrontend/
+
+Upstream Authors:
+
+    Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com>
+    Michel Ishizuka <cqw10305@nifty.com>
+
+Copyright:
+
+    Copyright (c) 2006 Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com>
+    Copyright (C) 2002 Michel Ishizuka
+
+License:
+
+    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 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 REGENTS 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 REGENTS 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.
+
+The Debian packaging is (C) 2006, Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
+and is licensed under the same license as above.
--- jlha-utils-0.1.6.orig/debian/control
+++ jlha-utils-0.1.6/debian/control
@@ -0,0 +1,21 @@
+Source: jlha-utils
+Section: utils
+Priority: optional
+Maintainer: Ying-Chun Liu (PaulLiu) <paulliu@debian.org>
+Build-Depends: cdbs (>= 0.4.36), debhelper (>= 5)
+Build-Depends-Indep: ant, default-jdk-builddep, libjlha-java, docbook-to-man
+Standards-Version: 3.8.2
+Homepage: http://sourceforge.net/projects/jlhafrontend/
+
+Package: jlha-utils
+Architecture: all
+Depends: ${misc:Depends}, default-jre-headless | java-runtime-headless | java2-runtime-headles, libjlha-java
+Provides: lzh-archiver
+Conflicts: lha
+Description: command-line lzh archiver written in Java
+ lzh is an archiving format generated by lha utility. jlha-utils is a 
+ command-line program for compressing or decompressing lzh files. It has 
+ a compatible interface to the lha program.
+ .
+ Note: Some of the functionality is missing currently, please read 
+ README.Debian for detailed information.
--- jlha-utils-0.1.6.orig/debian/changelog
+++ jlha-utils-0.1.6/debian/changelog
@@ -0,0 +1,30 @@
+jlha-utils (0.1.6-1) unstable; urgency=low
+
+  * New upstream release (Closes: #519830)
+    + Add 0/1/2 - to change header level
+    + Fix NullPointerException bug when updating lzh with non-existing file
+  * Bump standard version to 3.8.2, nothing needed to be changed
+  * Use Homepage: field instead of the pseudo-field in long description
+  * Re-format debian/copyright
+  * debian/watch:
+    + Use uupdate for easier update
+    + Use uscan sourceforge redirector format
+  * Build depends on default-jdk instead of gcj
+
+ -- Ying-Chun Liu (PaulLiu) <paulliu@debian.org>  Sun, 26 Jul 2009 00:20:07 +0800
+
+jlha-utils (0.1.5-1) unstable; urgency=low
+
+  * New upstream release
+    + Add t - Files are text files option
+    + Add e - Convert from/to EUC-JP code option
+  * Removing Uploaders field in debian/control.
+  * Refine the format of Build-Depends in debian/control
+
+ -- Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com>  Mon, 22 Jan 2007 14:06:47 +0800
+
+jlha-utils (0.1.4-1) unstable; urgency=low
+
+  * Initial release (Closes: #382062)
+
+ -- Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com>  Mon, 18 Dec 2006 00:32:10 +0800
--- jlha-utils-0.1.6.orig/debian/jlha-utils.prerm
+++ jlha-utils-0.1.6/debian/jlha-utils.prerm
@@ -0,0 +1,23 @@
+#! /bin/sh
+# prerm script for jlha-utils
+#
+set -e
+case "$1" in
+    remove|upgrade|deconfigure)
+        update-alternatives --quiet --remove lha /usr/bin/jlha
+        update-alternatives --quiet --remove lzh-archiver /usr/bin/jlha
+        ;;
+    failed-upgrade)
+        ;;
+    *)
+        echo "prerm called with unknown argument \$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
--- jlha-utils-0.1.6.orig/debian/README.Debian
+++ jlha-utils-0.1.6/debian/README.Debian
@@ -0,0 +1,16 @@
+jlha-utils for Debian
+-----------------------
+
+jlha-utils is command-line compatible to the popular "lha"
+lzh archiver. It should work as a replacement for lha, but some of the 
+functionality of lha is not yet implemented. Currently it doesn't support 
+"non-generic format".
+
+Since it only supports "generic format", it is better not using jlha to 
+backup files in Un*x systems. The file permissions are not stored in generic 
+format. And when extracting, the permissions are not restored either.
+
+However, jlha-utils should work well in many cases for many people, 
+such as for GUI front-ends such as file-roller.
+
+ -- Ying-Chun Liu (PaulLiu) <grandpaul@gmail.com>  Tue,  8 Aug 2006 23:12:38 +0800
--- jlha-utils-0.1.6.orig/debian/compat
+++ jlha-utils-0.1.6/debian/compat
@@ -0,0 +1 @@
+5
--- jlha-utils-0.1.6.orig/debian/watch
+++ jlha-utils-0.1.6/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/jlhafrontend/jlhafrontend-(.*)\.tar\.gz debian uupdate
--- jlha-utils-0.1.6.orig/debian/rules
+++ jlha-utils-0.1.6/debian/rules
@@ -0,0 +1,28 @@
+#!/usr/bin/make -f
+# debian/rules for jlha-utils (uses cdbs).
+# This file is public domain.
+
+UPSTREAM_VERSION := $(shell dpkg-parsechangelog |\
+	egrep '^Version:' | cut -f2 -\d' ' | cut -f1 -d- )
+
+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
+
+JAVA_HOME := /usr/lib/jvm/default-java
+DEB_ANT_BUILDFILE := build.xml
+DEB_ANT_BUILD_TARGET := compile
+DEB_INSTALL_DOCS_ALL := TODO
+
+install/jlha-utils::
+	install -D -m 644 target/jlhafrontend.jar \
+		$(CURDIR)/debian/jlha-utils/usr/share/java/jlhafrontend-$(UPSTREAM_VERSION).jar
+	dh_link /usr/share/java/jlhafrontend-$(UPSTREAM_VERSION).jar /usr/share/java/jlhafrontend.jar
+	install -D -m 755 debian/jlha.sh debian/jlha-utils/usr/bin/jlha
+	dh_installman jlha.1
+
+build/jlha-utils::
+	docbook-to-man debian/jlha.sgml > jlha.1
+
+cleanbuilddir/jlha-utils::
+	rm -f jlha.1
--- jlha-utils-0.1.6.orig/debian/jlha-utils.postinst
+++ jlha-utils-0.1.6/debian/jlha-utils.postinst
@@ -0,0 +1,29 @@
+#! /bin/sh
+# postinst script for jlha-utils
+#
+set -e
+case "$1" in
+    configure)
+        update-alternatives --quiet --install /usr/bin/lha lha /usr/bin/jlha 30 \
+            --slave /usr/share/man/man1/lha.1.gz lha.1.gz /usr/share/man/man1/jlha.1.gz
+            
+        update-alternatives --quiet --install /usr/bin/lzh-archiver lzh-archiver /usr/bin/jlha 30 \
+            --slave /usr/share/man/man1/lzh-archiver.1.gz lzh-archiver.1.gz /usr/share/man/man1/jlha.1.gz
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \$1'" >&2
+        exit 0
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
