runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit d8a56d17892ff32ca4a30c064d1b4cf31b227fbf
parent bddba6f8e73df3cc24382537d16b23956cdadaa0
Author: Gerrit Pape <pape@smarden.org>
Date:   Fri,  4 Oct 2002 10:01:02 +0000

archive.
create hardlink runit.old -> runit on debian package upgrade.

Diffstat:
Mdebian/changelog | 4+++-
Adebian/preinst | 39+++++++++++++++++++++++++++++++++++++++
2 files changed, 42 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog @@ -1,8 +1,10 @@ runit (0.6.3-1) sarge; urgency=low * See /package/admin/runit/package/CHANGES. + * preinst: new; create hardlink /sbin/runit.old -> /sbin/runit on + upgrade. - -- Gerrit Pape <pape@smarden.org> Fri, 4 Oct 2002 11:04:05 +0200 + -- Gerrit Pape <pape@smarden.org> Fri, 4 Oct 2002 11:59:42 +0200 runit (0.6.0-1) sarge; urgency=low diff --git a/debian/preinst b/debian/preinst @@ -0,0 +1,39 @@ +#! /bin/sh +# preinst script for runit +# +# 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) + if [ -n "$2" ]; then + # upgrading + rm -f /sbin/runit.old + ln /sbin/runit /sbin/runit.old + 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