Subversion Repositories lsh

Compare Revisions

Ignore whitespace Rev 40 → Rev 39

/trunk/debian/changelog
17,9 → 17,8
declare that it should start before the services that depend on an
SSH server (Closes: #542689). Thanks to Petter Reinholdtsen.
* Support the status action.
* Drop the no longer useful lsh-server-config script.
 
-- Magnus Holmgren <holmgren@debian.org> Thu, 03 Sep 2009 00:18:41 +0200
-- Magnus Holmgren <holmgren@debian.org> Thu, 03 Sep 2009 00:10:38 +0200
 
lsh-utils (2.0.4-dfsg-2) unstable; urgency=low
 
/trunk/debian/rules
16,3 → 16,7
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
 
LDFLAGS += -Wl,-z,defs -Wl,--as-needed
 
common-install-arch::
install -m755 debian/scripts/lsh-server-config \
debian/tmp/usr/sbin
/trunk/debian/mans/lsh-server-config.8
0,0 → 1,45
.\" Hey, EMACS: -*- nroff -*-
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
.TH lsh-server-config 8 "Jul 26, 2000" LSH "lsh Manuals"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
.\" .nh disable hyphenation
.\" .hy enable hyphenation
.\" .ad l left justify
.\" .ad b justify to both left and right margins
.\" .nf disable filling
.\" .fi enable filling
.\" .br insert line break
.\" .sp <n> insert n+1 empty lines
.\" for manpage-specific macros, see man(7)
.SH NAME
lsh-server-config \- (re-)configure the lsh-server (lshd)
.SH SYNOPSIS
.B lsh-server-config
.RI [ --from-postinst ]
.SH DESCRIPTION
This manual page documents briefly the
.B lsh-server-config
command.
.PP
.\" TeX users may be more comfortable with the \fB<whatever>\fP and
.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
.\" respectively.
\fBlsh-server-config\fP is a program that configures/reconfigures the
lsh-server package on Debian GNU systems.
.SH OPTIONS
.TP
.B \-\-from\-postinst
Indicates that the script is being called from lsh-server's postinst.
You should never need to use this.
.SH FILES
.BR /etc/default/lsh-server
.SH SEE ALSO
.BR lshd (8),
.br
.SH AUTHOR
This manual page was written by Timshel Knoll <timshel@debian.org>,
for the Debian GNU/Linux system (but may be used by others).
/trunk/debian/lsh-server.manpages
1,5 → 1,6
debian/mans/lsh-execuv.8
debian/mans/lsh-pam-checkpw.8
debian/mans/lsh-krb-checkpw.8
debian/mans/lsh-server-config.8
doc/lshd.8
src/sftp/sftp-server.8*
/trunk/debian/scripts/lsh-server-config
0,0 → 1,47
#!/bin/sh -e
#
# Script to (re-)configure the lsh-server package.
#
# Copyright (C) 2000, 2001 Timshel Knoll <timshel@debian.org>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# On Debian systems, see /usr/share/common-licenses/GPL for the GNU GPL.
 
LSHD_DEFAULTS="/etc/default/lsh-server"
LSHD_PORT=
SSH1_FALLBACK=
 
HOST_KEY="/etc/lsh_host_key"
RANDOM_SEED="/var/spool/lsh/yarrow-seed-file"
 
if [ ! -f "$RANDOM_SEED" ] ; then
echo "Generating random seed $RANDOM_SEED"
lsh-make-seed --server --output-file "$RANDOM_SEED"
fi
 
# Generate a hostkey, if none already exist
# FIXME: should this convert an existing OpenSSH/SSH1 hostkey if one exists?
if [ ! -f "$HOST_KEY" ] ; then
printf "Generating a new host key: $HOST_KEY"
lsh-keygen --server --nist-level 8 | \
lsh-writekey --server --output-file "$HOST_KEY"
echo " done."
fi
 
# Emacs stuff:
# Local-Variables:
# sh-indent: 3
# End:
/trunk/debian/lsh-server.install
2,4 → 2,5
usr/sbin/lsh-execuv
usr/sbin/lsh-krb-checkpw
usr/sbin/lsh-pam-checkpw
usr/sbin/lsh-server-config
usr/sbin/sftp-server usr/lib/lsh-server
/trunk/debian/lsh-server.postinst
57,9 → 57,10
# OK, now make the config file
 
cat <<"EOF" >"$LSHD_DEFAULTS"
# Configuration file generated by lsh-server.postinst.
# Configuration file generated by lsh-server-config.
# You can change the lsh-server configuration either by editing
# this file, or by running dpkg-reconfigure lsh-server.
# this file, or by running /usr/sbin/lsh-server-config, which uses
# a debconf interface to set up lsh-server.
#
EOF
 
87,7 → 88,7
# stop ssh from starting at bootup
cat <<"EOF" >"$file"
LSH_SERVER_CONFIG_GENERATED
# Generated by lsh-server.postinst
# Generated by lsh-server-config
# Please don't remove this file unless you have first disabled lsh, and don't
# change the first line ... otherwise lsh-server won't recognise it!!!
EOF