aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--debian/changelog1
-rw-r--r--debian/figlet.lintian-overrides2
-rw-r--r--debian/postinst6
-rw-r--r--debian/prerm4
-rwxr-xr-xdebian/rules4
5 files changed, 9 insertions, 8 deletions
diff --git a/debian/changelog b/debian/changelog
index c549312..3ff7b74 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ figlet (2.2.5-1) UNRELEASED; urgency=low
- Update package description (closes: #557254)
- Update debian/copyright (closes: #436302)
- Fix moolets bashism (closes: #530082)
+ - Move figlet manpage to alternatives system (closes: #403665)
- Add watchfile
- Add Homepage to debian/control
- Remove references to deprecated figfonts(-cjk) packages
diff --git a/debian/figlet.lintian-overrides b/debian/figlet.lintian-overrides
deleted file mode 100644
index c84be48..0000000
--- a/debian/figlet.lintian-overrides
+++ /dev/null
@@ -1,2 +0,0 @@
-# alternatives uses figlet-figlet to provide figlet
-figlet: binary-without-manpage usr/bin/figlet-figlet
diff --git a/debian/postinst b/debian/postinst
index 6fbf3b9..36592ae 100644
--- a/debian/postinst
+++ b/debian/postinst
@@ -3,10 +3,10 @@
set -e
if [ "$1" = configure ]; then
- # Add an alternative for figlet
+ # Add alternatives for figlet
update-alternatives --install /usr/bin/figlet figlet \
- /usr/bin/figlet-figlet 30
+ /usr/bin/figlet-figlet 30 --slave /usr/share/man/man6/figlet.6.gz \
+ figlet.6.gz /usr/share/man/man6/figlet-figlet.6.gz
fi
#DEBHELPER#
-
diff --git a/debian/prerm b/debian/prerm
index 8058a72..46ad531 100644
--- a/debian/prerm
+++ b/debian/prerm
@@ -3,10 +3,8 @@
set -e
if [ "$1" = remove ]; then
- # Remove alternative for figlet
+ # Remove alternatives for figlet
update-alternatives --remove figlet /usr/bin/figlet-figlet
fi
#DEBHELPER#
-
-
diff --git a/debian/rules b/debian/rules
index 754017b..188997c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,5 +10,9 @@ override_dh_auto_install:
dh_install debian/figlet.el /usr/share/emacs/site-lisp
dh_installexamples debian/examples/moolets
+override_dh_installman:
+ dh_installman
+ mv debian/figlet/usr/share/man/man6/figlet.6 debian/figlet/usr/share/man/man6/figlet-figlet.6
+
%:
dh $@