[med-svn] r8789 - trunk/packages/ensembl/ensembl/trunk/debian
Andreas Tille
tille at alioth.debian.org
Tue Dec 6 12:55:27 UTC 2011
Author: tille
Date: 2011-12-06 12:55:26 +0000 (Tue, 06 Dec 2011)
New Revision: 8789
Modified:
trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postinst
trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postrm
trunk/packages/ensembl/ensembl/trunk/debian/ensembl.preinst
trunk/packages/ensembl/ensembl/trunk/debian/ensembl.prerm
trunk/packages/ensembl/ensembl/trunk/debian/init.d
Log:
Clean up {pre,post}{inst,rm} scripts from useless comments; drop a hackish call in postinst while keeping proper FIXME notes in case this workaround might be needed definitely to enable caring for the problem more properly
Modified: trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postinst
===================================================================
--- trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postinst 2011-12-06 11:48:26 UTC (rev 8788)
+++ trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postinst 2011-12-06 12:55:26 UTC (rev 8789)
@@ -1,25 +1,8 @@
#!/bin/sh
# postinst script for ensembl
-#
-# see: dh_installdeb(1)
set -e
-# Source debconf library.
-. /usr/share/debconf/confmodule
-
-# summary of how this script can be called:
-# * <postinst> `configure' <most-recently-configured-version>
-# * <old-postinst> `abort-upgrade' <new version>
-# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-# <new-version>
-# * <postinst> `abort-remove'
-# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-# <failed-install-package> <version> `removing'
-# <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
case "$1" in
configure|reconfigure)
echo "Preparing a series of directories."
@@ -118,20 +101,11 @@
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
+# FIXME!!
+# In a previous version the automatically inserted debhlper code was prepended by a
+# invoke-rc.d apache2 stop
+# This should not be necessary, but it is kept here for reference in case something might went wrong
-# Automatically added by dh_installinit
-if [ -x "/etc/init.d/ensembl" ]; then
- update-rc.d ensembl defaults >/dev/null
- if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
- invoke-rc.d apache2 stop || exit $?
- invoke-rc.d ensembl start || exit $?
- else
- /etc/init.d/apache2 stop || exit $?
- /etc/init.d/ensembl start || exit $?
- fi
-fi
-# End automatically added section
+#DEBHELPER#
exit 0
Modified: trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postrm
===================================================================
--- trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postrm 2011-12-06 11:48:26 UTC (rev 8788)
+++ trunk/packages/ensembl/ensembl/trunk/debian/ensembl.postrm 2011-12-06 12:55:26 UTC (rev 8789)
@@ -1,24 +1,8 @@
#!/bin/sh
# postrm script for ensembl
-#
-# see: dh_installdeb(1)
set -e
-# summary of how this script can be called:
-# * <postrm> `remove'
-# * <postrm> `purge'
-# * <old-postrm> `upgrade' <new-version>
-# * <new-postrm> `failed-upgrade' <old-version>
-# * <new-postrm> `abort-install'
-# * <new-postrm> `abort-install' <old-version>
-# * <new-postrm> `abort-upgrade' <old-version>
-# * <disappearer's-postrm> `disappear' <overwriter>
-# <overwriter-version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
case "$1" in
purge)
if [ -e /usr/share/debconf/confmodule ]; then
@@ -39,9 +23,6 @@
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0
Modified: trunk/packages/ensembl/ensembl/trunk/debian/ensembl.preinst
===================================================================
--- trunk/packages/ensembl/ensembl/trunk/debian/ensembl.preinst 2011-12-06 11:48:26 UTC (rev 8788)
+++ trunk/packages/ensembl/ensembl/trunk/debian/ensembl.preinst 2011-12-06 12:55:26 UTC (rev 8789)
@@ -1,19 +1,8 @@
#!/bin/sh
# preinst script for ensembl
-#
-# 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)
;;
@@ -35,9 +24,6 @@
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0
Modified: trunk/packages/ensembl/ensembl/trunk/debian/ensembl.prerm
===================================================================
--- trunk/packages/ensembl/ensembl/trunk/debian/ensembl.prerm 2011-12-06 11:48:26 UTC (rev 8788)
+++ trunk/packages/ensembl/ensembl/trunk/debian/ensembl.prerm 2011-12-06 12:55:26 UTC (rev 8789)
@@ -1,22 +1,8 @@
#!/bin/sh
# prerm script for ensembl
-#
-# see: dh_installdeb(1)
set -e
-# summary of how this script can be called:
-# * <prerm> `remove'
-# * <old-prerm> `upgrade' <new-version>
-# * <new-prerm> `failed-upgrade' <old-version>
-# * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-# * <deconfigured's-prerm> `deconfigure' `in-favour'
-# <package-being-installed> <version> `removing'
-# <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
case "$1" in
remove|upgrade|deconfigure)
if ! /etc/init.d/ensembl stop ; then
@@ -33,9 +19,6 @@
;;
esac
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
#DEBHELPER#
exit 0
Modified: trunk/packages/ensembl/ensembl/trunk/debian/init.d
===================================================================
--- trunk/packages/ensembl/ensembl/trunk/debian/init.d 2011-12-06 11:48:26 UTC (rev 8788)
+++ trunk/packages/ensembl/ensembl/trunk/debian/init.d 2011-12-06 12:55:26 UTC (rev 8789)
@@ -98,6 +98,7 @@
# chmod 755 "$d"
#done
+ echo "FIXME: In case something might went wrong you need to run '/etc/init.d/apache2 stop' first. Please report this to Debian Maintainer of ensembl." >&2
log_daemon_msg "Starting web server" "ensembl"
if $APACHE2CTL start; then
log_end_msg 0
More information about the debian-med-commit
mailing list