[Pkg-ocaml-maint-commits] [SCM] ledit packaging branch, master, updated. debian/2.01-2-3-gc756846

Stefano Zacchiroli zack at upsilon.cc
Tue Apr 7 12:18:11 UTC 2009


The following commit has been merged in the master branch:
commit b1ad084f091caeeb7028f22fe35bb675aefa2dcd
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Tue Apr 7 14:14:43 2009 +0200

    provide "readline-editor": virtual package and alternative

diff --git a/debian/changelog b/debian/changelog
index 5c47ac3..efe2ca4 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ledit (2.01-3) UNRELEASED; urgency=low
+
+  * provide for the (new) virtual package "readline-editor"
+  * register ledit executable as an alternative for readline-editor
+
+ -- Stefano Zacchiroli <zack at debian.org>  Tue, 07 Apr 2009 14:12:56 +0200
+
 ledit (2.01-2) unstable; urgency=low
 
   [ Stephane Glondu ]
diff --git a/debian/control b/debian/control
index 40f401f..3fc96e1 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,7 @@ Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ledit.git
 Package: ledit
 Architecture: all
 Depends: ${shlibs:Depends}, ocaml-base-nox-${F:OCamlABI}
+Provides: readline-editor
 Description: line editor for interactive programs
  Ledit is a line editor, allowing to use control commands like in emacs
  or in shells (bash, tcsh). To be used with interactive commands. It is
diff --git a/debian/ledit.postinst b/debian/ledit.postinst
new file mode 100644
index 0000000..5f0b362
--- /dev/null
+++ b/debian/ledit.postinst
@@ -0,0 +1,11 @@
+#!/bin/sh -e
+
+case "$1" in
+  configure)
+    update-alternatives \
+      --install /usr/bin/readline-editor readline-editor /usr/bin/ledit 40 \
+      --slave /usr/share/man/man1/readline-editor.1.gz readline-editor.1.gz /usr/share/man/man1/ledit.1.gz
+    ;;
+esac
+
+#DEBHELPER#
diff --git a/debian/ledit.prerm b/debian/ledit.prerm
new file mode 100644
index 0000000..0a8ad81
--- /dev/null
+++ b/debian/ledit.prerm
@@ -0,0 +1,7 @@
+#!/bin/sh -e
+
+if [ "$1" != "upgrade" ]; then
+  update-alternatives --remove readline-editor /usr/bin/ledit
+fi
+
+#DEBHELPER#

-- 
ledit packaging



More information about the Pkg-ocaml-maint-commits mailing list