Subversion Repositories lsh

Compare Revisions

Ignore whitespace Rev 98 → Rev 99

/trunk/debian/lsh-server.config
101,6 → 101,16
 
my $capb = &capb ('backup');
 
system {'sh'} 'sh', '-c', <<'EOF';
[ -e /etc/default/lsh-server ] || exit 0
. /etc/default/lsh-server
. /usr/share/debconf/confmodule
 
db_set lsh-server/lshd_port "$LSHD_PORT" || true
db_set lsh-server/sftp "$ENABLE_SFTP" || true
db_set lsh-server/extra_args "$EXTRA_ARGS" || true
EOF
 
if ($ARGV[0] eq "configure" || $ARGV[0] eq "reconfigure") {
&configure ();
}
/trunk/debian/lsh-server.postinst
95,6 → 95,7
db_get "lsh-server/lshd_port"; LSHD_PORT="$RET"
db_get "lsh-server/sftp"; ENABLE_SFTP="$RET"
db_get "lsh-server/extra_args"; EXTRA_ARGS="$RET"
exec 3>&-
 
# OK, now make the config file
108,6 → 109,7
 
echo "LSHD_PORT=\"$LSHD_PORT\"" >>"$LSHD_DEFAULTS"
echo "ENABLE_SFTP=\"$ENABLE_SFTP\"" >> "$LSHD_DEFAULTS"
echo "EXTRA_ARGS=\"$EXTRA_ARGS\"" >> "$LSHD_DEFAULTS"
 
# Versions before 2.0.1cdbs-4 have a security issue, therefore
# have the random seed regenerated.
/trunk/debian/lsh-server.init.d
53,7 → 53,7
start)
log_daemon_msg "Starting $DESC" "$NAME"
start-stop-daemon --start --quiet --oknodo --pidfile $PIDFILE --exec $DAEMON \
-- --daemonic --port "$LSHD_PORT" $SFTP_FLAG
-- --daemonic --port "$LSHD_PORT" $SFTP_FLAG $EXTRA_ARGS
log_end_msg $?
;;
stop|graceful-stop)
69,7 → 69,7
start-stop-daemon --stop --retry HUP/1 --quiet --pidfile $PIDFILE \
--oknodo --exec $DAEMON &&
start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON \
-- --daemonic --port "$LSHD_PORT" $SFTP_FLAG
-- --daemonic --port "$LSHD_PORT" $SFTP_FLAG $EXTRA_ARGS
log_end_msg $?
;;
status)
/trunk/debian/lsh-server.templates
28,3 → 28,7
.
Please choose whether you want to purge the host key when the package
is removed.
 
Template: lsh-server/extra_args
Type: string
Description: Additional arguments to pass to lshd:
/trunk/debian/changelog
7,8 → 7,11
be deleted.
* Add Italian debconf localization. (Closes: #666425). Thanks to
Beatrice Torracca and the Italian localization team.
* Read settings from /etc/default/lsh-server in the config script
(Closes: #620809) and add an EXTRA_ARGS variable that can be used to
specify additional arguments to lshd (Closes: #592595).
 
-- Magnus Holmgren <holmgren@debian.org> Sat, 30 Jun 2012 13:38:40 +0200
-- Magnus Holmgren <holmgren@debian.org> Sat, 30 Jun 2012 17:56:22 +0200
 
lsh-utils (2.0.4-dfsg-9) unstable; urgency=low