-#! /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
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>
</pre>
HERE
-My::Web->footer();
+
+exit;
+}
+1;