Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / sshpatch / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 63%
rename from project/sshpatch/ListItem.pm
rename to project/sshpatch/Index.pm
index 4d21c55..2d1d06c
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::sshpatch' for list.cgi.pl
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Main page of 'My::Project::sshpatch'
+# Copyright (C) 2003-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
 # 
 # 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
@@ -18,7 +16,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 
-package project::sshpatch::ListItem;
+package project::sshpatch::Index;
 require 5.6.0; # at least 'use warnings;' but we need some 5.6.0+ modules anyway
 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
 our $CVS_ID=q$Id$;
@@ -26,6 +24,7 @@ use strict;
 use warnings;
 
 use My::Web;
+Wuse 'project::Lib';
 
 
 our @ListItem=(
@@ -37,9 +36,11 @@ our @ListItem=(
                "download-SSH-1, version 1.2.30, .tar.gz"=>"ftp://ftp.fi.muni.cz/pub/ssh/ssh-1.2.30.tar.gz",
                "summary"=>"SSH-1 <i>KeepAliveData</i> and <i>OnDemandForward</i> features",
                "license"=>"PD",
-               "maintenance"=>"obsolete-".a_href('http://www.openssh.com/','OpenSSH').' now contains equivalent features.',
+               "maintenance"=>sub {
+                               return "obsolete-".a_href('http://www.openssh.com/','OpenSSH').' now contains equivalent features.';
+                               },
                "language"=>"C patch",
-               "description"=><<"HERE",
+               "description"=>sub { return <<"HERE"; },
 <ul>
        <li><i>KeepAliveData</i>: Protect your mostly idle SSH connection from broken
                        masquerading firewalls which forget and reset the idle connections.
@@ -55,4 +56,26 @@ our @ListItem=(
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+print <<'HERE';
+<p>This patch will enahance your <tt>SSH</tt> with two new options, their detailed description you will
+find in the updated man pages after you install this offered patch:</p>
+<ul>
+<li><b>KeepAliveData</b>: Some broken hosts potentially gatewaying/masquerading the data (between ssh
+client-server) forget and reject connections with too much idle time.  Use this option to
+workaround it.</li>
+<li><b>OnDemandForward</b>: Forces client to wait until the first connection to locally forwarded port is
+made. When user enables this option, SSH client initially only starts listening on specified local ports for
+forwarding. Only after the first connection to such local port is made, SSH will
+start the connection and authentication to the server.</li>
+</ul>
+HERE
+
+
+exit;
+}
 1;