Package: multi-aterm
Version: 0.2.1-1
Severity: important
Tags: patch

The multi-aterm package doesn't do any of the following:

 - Provides: x-terminal-emulator
 - update the alternatives for x-terminal-emulator
 - Provide a proper menu entry within the debian menu system

I've set the Severity of this bug as important because the above are
important features in a debian package for anybody wanting to use the
same terminal program (and the man page) via x-terminal-emulator.

The attached patch does the following

 - Add a 'Provides: x-terminal-emulator' in the debian/control file
 - Modify the debian/menu file to correct the needs= line and add a
   longtitle.
 - Add postinst, prerm and postrm file to update-menus and
   update-alternatives (for x-terminal-emulator) with priority 15.  This
   priority it is less than the terminals in aterm-ml and is more than
   those in rxvt

I have tested the patch for upgrade/revert and new install.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.8-2-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages multi-aterm depends on:
ii  libc6                    2.3.2.ds1-22    GNU C Library: Shared libraries an
ii  libx11-6                 4.3.0.dfsg.1-14 X Window System protocol client li
ii  libxpm4                  4.3.0.dfsg.1-14 X pixmap library
ii  xlibs                    4.3.0.dfsg.1-14 X Keyboard Extension (XKB) configu

multi-aterm recommends no packages.

-- no debconf information
diff -Nur multi-aterm-0.2.1.orig/debian/control multi-aterm-0.2.1/debian/control
--- multi-aterm-0.2.1.orig/debian/control       2005-06-21 05:56:32.000000000 
+0530
+++ multi-aterm-0.2.1/debian/control    2005-06-21 06:01:45.918447464 +0530
@@ -7,6 +7,7 @@
 
 Package: multi-aterm
 Architecture: any
+Provides: x-terminal-emulator
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Description: tabbed terminal emulator with efficent pseudo transparency
  Multi-aterm is a firstly a terminal emulator like rxvt,
diff -Nur multi-aterm-0.2.1.orig/debian/menu multi-aterm-0.2.1/debian/menu
--- multi-aterm-0.2.1.orig/debian/menu  2005-06-21 05:56:32.000000000 +0530
+++ multi-aterm-0.2.1/debian/menu       2005-06-21 06:01:45.917447616 +0530
@@ -1,2 +1,3 @@
-?package(multi-aterm):needs="X11|text|vc|wm" section="XShell"\
-  title="multi-aterm" command="/usr/bin/multi-aterm"
+?package(multi-aterm):needs="X11" section="XShells" \
+  title="Multi-ATerm" command="/usr/bin/multi-aterm" \
+  longtitle="Multi-ATerm: tabbed terminal emulator for X with pseudo 
transparency"
diff -Nur multi-aterm-0.2.1.orig/debian/postinst 
multi-aterm-0.2.1/debian/postinst
--- multi-aterm-0.2.1.orig/debian/postinst      1970-01-01 05:30:00.000000000 
+0530
+++ multi-aterm-0.2.1/debian/postinst   2005-06-21 06:01:45.911448528 +0530
@@ -0,0 +1,13 @@
+#!/bin/sh -e
+
+if [ "$1" = configure ]; then
+    if test -x /usr/bin/update-menus; then update-menus; fi
+
+    update-alternatives --install /usr/bin/x-terminal-emulator \
+       x-terminal-emulator /usr/bin/multi-aterm 15 \
+       --slave /usr/share/man/man1/x-terminal-emulator.1.gz \
+       x-terminal-emulator.1.gz /usr/share/man/man1/multi-aterm.1.gz
+    pkg=multi-aterm
+fi
+
+exit 0
diff -Nur multi-aterm-0.2.1.orig/debian/postrm multi-aterm-0.2.1/debian/postrm
--- multi-aterm-0.2.1.orig/debian/postrm        1970-01-01 05:30:00.000000000 
+0530
+++ multi-aterm-0.2.1/debian/postrm     2005-06-21 06:01:45.920447160 +0530
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+if [ "$1" = remove ]; then
+    if test -x /usr/bin/update-menus; then update-menus; fi
+fi
+
+exit 0
diff -Nur multi-aterm-0.2.1.orig/debian/prerm multi-aterm-0.2.1/debian/prerm
--- multi-aterm-0.2.1.orig/debian/prerm 1970-01-01 05:30:00.000000000 +0530
+++ multi-aterm-0.2.1/debian/prerm      2005-06-21 06:01:45.915447920 +0530
@@ -0,0 +1,9 @@
+#!/bin/sh -e
+
+if [ "$1" = remove ]; then
+    update-alternatives --remove x-terminal-emulator /usr/bin/multi-aterm
+    pkg=multi-aterm
+    if [ -L /usr/doc/$pkg ]; then rm -f /usr/doc/$pkg; fi
+fi
+
+exit 0
diff -Nur multi-aterm-0.2.1.orig/debian/rules multi-aterm-0.2.1/debian/rules
--- multi-aterm-0.2.1.orig/debian/rules 2005-06-21 05:56:32.000000000 +0530
+++ multi-aterm-0.2.1/debian/rules      2005-06-21 06:01:45.922446856 +0530
@@ -80,6 +80,7 @@
        dh_installchangelogs ChangeLog
        dh_installdocs
        dh_installexamples
+       dh_installmenu
        dh_installman
        dh_link
        dh_strip
diff -Nur multi-aterm-0.2.1.orig/stamp-h1.in multi-aterm-0.2.1/stamp-h1.in
--- multi-aterm-0.2.1.orig/stamp-h1.in  2004-09-04 00:23:54.000000000 +0530
+++ multi-aterm-0.2.1/stamp-h1.in       1970-01-01 05:30:00.000000000 +0530
@@ -1 +0,0 @@
-timestamp
diff -Nur multi-aterm-0.2.1.orig/stamp-h2.in multi-aterm-0.2.1/stamp-h2.in
--- multi-aterm-0.2.1.orig/stamp-h2.in  2004-09-04 00:23:55.000000000 +0530
+++ multi-aterm-0.2.1/stamp-h2.in       1970-01-01 05:30:00.000000000 +0530
@@ -1 +0,0 @@
-timestamp

Reply via email to