From 9749ef7f9b382d743b186bf06c7c2aeb0b9bebee Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Sat, 31 Jul 2004 03:22:20 +0000 Subject: * Split the ssh binary package into openssh-client and openssh-server (closes: #39741). openssh-server depends on openssh-client for some common functionality; it didn't seem worth creating yet another package for this. * New transitional ssh package, depending on openssh-client and openssh-server. May be removed once nothing depends on it. * When upgrading from ssh to openssh-{client,server}, it's very difficult for the maintainer scripts to find out what version we're upgrading from without dodgy dpkg hackery. I've therefore taken the opportunity to move a couple of debconf notes into NEWS files, namely ssh/ssh2_keys_merged and ssh/user_environment_tell. * In general, upgrading to this version directly from woody without first upgrading to the version in sarge is not currently guaranteed to work very smoothly due to the aforementioned version discovery problems. --- debian/preinst | 79 ---------------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 debian/preinst (limited to 'debian/preinst') diff --git a/debian/preinst b/debian/preinst deleted file mode 100644 index e22d0aa5d..000000000 --- a/debian/preinst +++ /dev/null @@ -1,79 +0,0 @@ -#!/bin/sh -e - -action=$1 -version=$2 - -if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then - version=1.2.27 -fi - -if [ "$action" = upgrade ] || [ "$action" = install ] -then - # check if debconf is missing - if ! test -f /usr/share/debconf/confmodule - then - cat </dev/null || exit 1 - - # work around for missing debconf - db_get() { : ; } - RET=true - if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then - cp -a /etc/ssh-nonfree /etc/ssh - fi - else - # Source debconf library. - . /usr/share/debconf/confmodule - db_version 2.0 - fi - - db_get ssh/use_old_init_script - if [ "$RET" = "false" ]; then - echo "ssh config: Aborting because ssh/use_old_init_script = false" >&2 - exit 1 - fi - - # deal with upgrading from pre-OpenSSH versions - key=/etc/ssh/ssh_host_key - export key - if [ -n "$version" ] && [ -x /usr/bin/ssh-keygen ] && [ -f $key ] && - dpkg --compare-versions "$version" lt 1.2.28 - then - # make sure that keys get updated to get rid of IDEA - # - # N.B. this only works because we've still got the old - # nonfree ssh-keygen at this point - # - # First, check if we need to bother - echo -en '\0\0' | 3<&0 sh -c \ - 'dd if=$key bs=1 skip=32 count=2 2>/dev/null | cmp -s - /dev/fd/3' || { - # this means that bytes 32&33 of the key were not both zero, in which - # case the key is encrypted, which we need to fix - chmod 600 $key - ssh-keygen -u -f $key >/dev/null - } - fi -fi - -#DEBHELPER# -- cgit v1.2.3