[med-svn] r2143 - trunk/packages/emboss-explorer/trunk/debian

plessy at alioth.debian.org plessy at alioth.debian.org
Sat Jul 5 08:16:06 UTC 2008


Author: plessy
Date: 2008-07-05 08:16:05 +0000 (Sat, 05 Jul 2008)
New Revision: 2143

Added:
   trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.preinst
Modified:
   trunk/packages/emboss-explorer/trunk/debian/changelog
   trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.conf
Log:
To ease the upgrade from 2.2.0-5.

 - Added a preinst script to migrate the configuration file.
 - Added explanation in the configuration file.


Modified: trunk/packages/emboss-explorer/trunk/debian/changelog
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/changelog	2008-07-05 07:32:12 UTC (rev 2142)
+++ trunk/packages/emboss-explorer/trunk/debian/changelog	2008-07-05 08:16:05 UTC (rev 2143)
@@ -26,6 +26,8 @@
     suppressed to use Upstream's manpages.
   * debian/emboss-explorer.postrm removes the temporary files when the package
     is purged.
+  * debian/emboss-explorer.preinst moves the emboss-explorer.conf in its new
+    place.
 
   [ David Paleino ]
   * debian/control:

Modified: trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.conf
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.conf	2008-07-05 07:32:12 UTC (rev 2142)
+++ trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.conf	2008-07-05 08:16:05 UTC (rev 2143)
@@ -1,3 +1,7 @@
+# Starting from emboss-explorer 2.2.0-6, files in /var/www were moved to more
+# appropriate locations in /usr/share/emboss-explorer and
+# /var/lib/emboss-explorer.
+
 # path to the EMBOSS::GUI HTML files
 our $HTML_PATH = "/usr/share/emboss-explorer/html";
 

Added: trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.preinst
===================================================================
--- trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.preinst	                        (rev 0)
+++ trunk/packages/emboss-explorer/trunk/debian/emboss-explorer.preinst	2008-07-05 08:16:05 UTC (rev 2143)
@@ -0,0 +1,42 @@
+#!/bin/sh
+# preinst script for #PACKAGE#
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    # This is for the Etch -> Lenny transition ; it can be removed in Lenny+1
+        if [ -e "/etc/emboss-explorer.conf" ]; then
+	    [ -d "/etc/emboss/explore" ] || mkdir /etc/emboss-explorer
+	    mv /etc/emboss-explorer.conf /etc/emboss-explorer/
+	fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
+
+




More information about the debian-med-commit mailing list