Version: 1.14i-10.1

Sorry, the patch of the bug report is in wrong format.
The attachment is the interdiff for the current 1.14i-10.1 to fix this bug.

Many Thanks,
 Ying-Chun Liu

-- 
                                                PaulLiu(劉穎駿)
E-mail address: [EMAIL PROTECTED]
diff -u lha-1.14i/debian/rules lha-1.14i/debian/rules
--- lha-1.14i/debian/rules
+++ lha-1.14i/debian/rules
@@ -63,7 +63,7 @@
        # $(MAKE) install BINDIR=$(CURDIR)/debian/lha/usr/bin \
        #               MANDIR=$(CURDIR)/debian/lha/usr/share/man \
        #               MANSECT=1
-       install -m 755 src/lha $(CURDIR)/debian/lha/usr/bin
+       install -m 755 src/lha $(CURDIR)/debian/lha/usr/bin/lha.bin
 
        # Copy the filenames without the .euc extension
        cp MACHINES.euc MACHINES 
@@ -74,8 +74,8 @@
 
        gzip -9 -c man/lha.n > debian/lha.euc.1.gz
        gzip -9 -c debian/lha.1 > debian/lha.1.gz
-       install -m 644 debian/lha.euc.1.gz 
$(CURDIR)/debian/lha/usr/share/man/ja/man1/lha.1.gz
-       install -m 644 debian/lha.1.gz 
$(CURDIR)/debian/lha/usr/share/man/man1/lha.1.gz
+       install -m 644 debian/lha.euc.1.gz 
$(CURDIR)/debian/lha/usr/share/man/ja/man1/lha.bin.1.gz
+       install -m 644 debian/lha.1.gz 
$(CURDIR)/debian/lha/usr/share/man/man1/lha.bin.1.gz
 
 # Build architecture-independent files here.
 binary-indep: build install
diff -u lha-1.14i/debian/control lha-1.14i/debian/control
--- lha-1.14i/debian/control
+++ lha-1.14i/debian/control
@@ -8,6 +8,7 @@
 Package: lha
 Architecture: any
 Depends: ${shlibs:Depends}
+Provides: lzh-archiver
 Description: lzh archiver
  The famous lzh archiver, known from DOS.  When mixing DOS and Unix
  you might need it.  (Especially for fido <--> rfc conversions.)
only in patch2:
unchanged:
--- lha-1.14i.orig/debian/lha.postinst
+++ lha-1.14i/debian/lha.postinst
@@ -0,0 +1,30 @@
+#! /bin/sh
+# postinst script for lha
+#
+set -e
+case "$1" in
+    configure)
+        update-alternatives --quiet --install /usr/bin/lha lha 
/usr/bin/lha.bin 60 \
+            --slave /usr/share/man/man1/lha.1.gz lha.1.gz 
/usr/share/man/man1/lha.bin.1.gz \
+            --slave /usr/share/man/ja/man1/lha.1.gz lha.eucjp.1.gz 
/usr/share/man/ja/man1/lha.bin.1.gz
+        update-alternatives --quiet --install /usr/bin/lzh-archiver 
lzh-archiver /usr/bin/lha.bin 60 \
+            --slave /usr/share/man/man1/lzh-archiver.1.gz lzh-archiver.1.gz 
/usr/share/man/man1/lha.bin.1.gz \
+            --slave /usr/share/man/ja/man1/lzh-archiver.1.gz 
lzh-archiver.eucjp.1.gz /usr/share/man/ja/man1/lha.bin.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
only in patch2:
unchanged:
--- lha-1.14i.orig/debian/lha.prerm
+++ lha-1.14i/debian/lha.prerm
@@ -0,0 +1,23 @@
+#! /bin/sh
+# prerm script for lha
+#
+set -e
+case "$1" in
+    remove|upgrade|deconfigure)
+        update-alternatives --quiet --remove lha /usr/bin/lha.bin
+        update-alternatives --quiet --remove lzh-archiver /usr/bin/lha.bin
+        ;;
+    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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to