diff options
author | Colin Watson <cjwatson@debian.org> | 2004-07-31 03:22:20 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2004-07-31 03:22:20 +0000 |
commit | 9749ef7f9b382d743b186bf06c7c2aeb0b9bebee (patch) | |
tree | aadbcc936c4e05d344f3ae856925b62bafc8debb /debian/config | |
parent | c57fe5be57af965042484e8669767f95e558b0ef (diff) |
* 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.
Diffstat (limited to 'debian/config')
-rw-r--r-- | debian/config | 96 |
1 files changed, 0 insertions, 96 deletions
diff --git a/debian/config b/debian/config deleted file mode 100644 index b5cff528c..000000000 --- a/debian/config +++ /dev/null | |||
@@ -1,96 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | action=$1 | ||
4 | version=$2 | ||
5 | |||
6 | if [ -d /etc/ssh-nonfree ] && [ ! -d /etc/ssh ]; then | ||
7 | version=1.2.27 | ||
8 | cp -a /etc/ssh-nonfree /etc/ssh | ||
9 | fi | ||
10 | |||
11 | # Source debconf library. | ||
12 | . /usr/share/debconf/confmodule | ||
13 | db_version 2.0 | ||
14 | |||
15 | if [ -n "$version" ] && dpkg --compare-versions "$version" lt 1:3.0p1-1 | ||
16 | then | ||
17 | db_input medium ssh/ssh2_keys_merged | ||
18 | fi | ||
19 | |||
20 | if [ -e /etc/init.d/ssh ] && ! grep -q pidfile /etc/init.d/ssh | ||
21 | then | ||
22 | db_fset ssh/use_old_init_script seen false | ||
23 | db_input medium ssh/use_old_init_script || true | ||
24 | db_go | ||
25 | |||
26 | db_get ssh/use_old_init_script | ||
27 | [ "$RET" = "false" ] && exit 0 | ||
28 | else | ||
29 | db_set ssh/use_old_init_script true | ||
30 | db_fset ssh/use_old_init_script seen true | ||
31 | fi | ||
32 | |||
33 | if [ -z "$version" ] && [ ! -e /etc/ssh/sshd_config ] | ||
34 | then | ||
35 | db_input medium ssh/protocol2_only || true | ||
36 | fi | ||
37 | |||
38 | if [ -e /etc/ssh/sshd_config ] | ||
39 | then | ||
40 | if dpkg --compare-versions "$version" lt-nl 1:1.3 ; | ||
41 | then db_input medium ssh/new_config || true | ||
42 | db_go | ||
43 | db_get ssh/new_config | ||
44 | if [ "$RET" = "true" ]; | ||
45 | then db_input medium ssh/protocol2_only ||true | ||
46 | fi | ||
47 | fi | ||
48 | fi | ||
49 | |||
50 | db_input medium ssh/SUID_client || true | ||
51 | |||
52 | # To be correct during initial installation, this relies on the desired | ||
53 | # default for run_sshd being "true". | ||
54 | if [ -e /etc/ssh/sshd_not_to_be_run ] | ||
55 | then | ||
56 | db_set ssh/run_sshd false | ||
57 | else | ||
58 | db_set ssh/run_sshd true | ||
59 | fi | ||
60 | db_input medium ssh/run_sshd || true | ||
61 | |||
62 | if [ -x /usr/sbin/in.telnetd ] && grep -q "^telnet\b" /etc/inetd.conf | ||
63 | then | ||
64 | if ! /usr/sbin/in.telnetd -? 2>&1 | grep -q ssl 2>/dev/null | ||
65 | then | ||
66 | db_input low ssh/insecure_telnetd || true | ||
67 | fi | ||
68 | fi | ||
69 | |||
70 | key=/etc/ssh/ssh_host_key | ||
71 | export key | ||
72 | if [ -n "$version" ] && [ -f $key ] && [ ! -x /usr/bin/ssh-keygen ] && | ||
73 | dpkg --compare-versions "$version" lt 1.2.28 | ||
74 | then | ||
75 | # make sure that keys get updated to get rid of IDEA; preinst | ||
76 | # actually does the work, but if the old ssh-keygen is not found, | ||
77 | # it can't do that -- thus, we tell the user that he must create | ||
78 | # a new host key. | ||
79 | echo -en '\0\0' | 3<&0 sh -c \ | ||
80 | 'dd if=$key bs=1 skip=32 count=2 2>/dev/null | cmp -s - /dev/fd/3' || { | ||
81 | # this means that bytes 32&33 of the key were not both zero, in which | ||
82 | # case the key is encrypted, which we need to fix | ||
83 | db_input high ssh/encrypted_host_key_but_no_keygen || true | ||
84 | } | ||
85 | fi | ||
86 | |||
87 | |||
88 | db_input low ssh/forward_warning || true | ||
89 | |||
90 | if dpkg --compare-versions "$version" lt-nl 1:3.5p1-3; then | ||
91 | db_input high ssh/user_environment_tell || true | ||
92 | fi | ||
93 | |||
94 | db_go | ||
95 | |||
96 | exit 0 | ||