Package: figlet
Version: 2.2.1-4
Severity: wishlist
Tags: patch
Hi! Following our email discussion, here is a patch to manage
/usr/bin/figlet with the alternatives system, to pave the way for
a free replacement.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (50, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17.11
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages figlet depends on:
ii libc6 2.3.6.ds1-4 GNU C Library: Shared libraries
figlet recommends no packages.
-- no debconf information
diff -puriN figlet-2.2.1.orig/debian/postinst figlet-2.2.1/debian/postinst
--- figlet-2.2.1.orig/debian/postinst 2006-10-01 17:43:52 +0200
+++ figlet-2.2.1/debian/postinst 2006-10-01 20:37:46 +0200
@@ -1,6 +1,10 @@
#!/bin/sh
-#DEBHELPER#
+if [ "$1" = configure ]; then
+ # Add an alternative for figlet
+ update-alternatives --install /usr/bin/figlet figlet \
+ /usr/bin/figlet-figlet 30
+fi
#DEBHELPER#
diff -puriN figlet-2.2.1.orig/debian/prerm figlet-2.2.1/debian/prerm
--- figlet-2.2.1.orig/debian/prerm 2006-10-01 17:43:52 +0200
+++ figlet-2.2.1/debian/prerm 2006-10-01 20:40:15 +0200
@@ -1,6 +1,9 @@
#!/bin/sh
-#DEBHELPER#
+if [ "$1" = remove ]; then
+ # Remove alternative for figlet
+ update-alternatives --remove figlet /usr/bin/figlet-figlet
+fi
#DEBHELPER#
diff -puriN figlet-2.2.1.orig/debian/rules figlet-2.2.1/debian/rules
--- figlet-2.2.1.orig/debian/rules 2006-10-01 17:43:52 +0200
+++ figlet-2.2.1/debian/rules 2006-10-01 20:37:02 +0200
@@ -45,6 +45,7 @@ install: build
$(MAKE) install DESTDIR=debian/figlet/usr/bin \
DEFAULTFONTDIR=debian/figlet/usr/share/figlet \
MANDIR=debian/trash
+ mv debian/figlet/usr/bin/figlet debian/figlet/usr/bin/figlet-figlet
$(installbin) -d debian/figlet/usr/share/emacs/site-lisp
$(installdoc) debian/figlet.el \
debian/figlet/usr/share/emacs/site-lisp/figlet.el