Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / tcpdump / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 72%
rename from project/tcpdump/Index.html.pl
rename to project/tcpdump/Index.pm
index 5eabacb..db343f2
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
 # Main page of 'My::Project::tcpdump'
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# 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
@@ -25,17 +23,31 @@ our $CVS_ID=q$Id$;
 use strict;
 use warnings;
 
-BEGIN{ open F,"Makefile"; our $top_dir=pop @{[split /\s/,(grep /^top_srcdir/,<F>)[0]]}; eval "use lib '$top_dir'"; close F; }
 use My::Web;
-Wuse 'My::Project';
-Wuse 'project::tcpdump::ListItem';
+Wuse 'project::Lib';
 
 
-My::Project->init_project(
-               "__PACKAGE__"=>__PACKAGE__,
-               "ListItem"=>\@project::tcpdump::ListItem::ListItem,
+our @ListItem=(
+               "name"=>"tcpdump ASCII",
+               "platform"=>"unixuser",
+               "trivia"=>1,
+               "priority"=>170,
+               "download"=>"tcpdump-3.4-ASCIIdump.diff",
+               "download-tcpdump-3.4"=>"ftp://ftp.ee.lbl.gov/tcpdump-3.4.tar.Z",
+               "summary"=>"tcpdump(1) patch for better output readable as ASCII",
+               "license"=>"PD",
+               "maintenance"=>"ready",
+               "language"=>"C patch",
+               "description"=><<"HERE",
+<p>Makes the text messages of tcpdump(1) readable when option <code>-x</code> is used.</p>
+HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
 print <<'HERE';
 <p>From original raw hex output it now looks as in example:</p>
 
@@ -51,4 +63,7 @@ print <<'HERE';
 </pre>
 HERE
 
-My::Web->footer();
+
+exit;
+}
+1;