Initial mod_perl-2.0 port.
[www.jankratochvil.net.git] / project / xbill / Index.pm
similarity index 72%
rename from project/xbill/ListItem.pm
rename to project/xbill/Index.pm
index 6a8b23b..fc531a7 100755 (executable)
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
-# Definition of 'My::Project::xbill' for list.cgi.pl
-# Copyright (C) 2003 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
+# Main page of 'My::Project::xbill'
+# 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::xbill::ListItem;
+package project::xbill::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=(
@@ -39,11 +38,26 @@ our @ListItem=(
                "license"=>"GPL",
                "maintenance"=>"ready",
                "language"=>"C",
-               "description"=><<"HERE",
-<p>Rewritten @{[ a_href 'ftp://ftp.x.org/contrib/games/xbill-2.0.tgz','classical xBill game' ]}.
+               "description"=>sub { return <<"HERE"; },
+<p>Rewritten @{[ a_href 'ftp://ftp.x.org/contrib/games/xbill-2.0.tgz','classical xBill game' ]}.</p>
 <p>Features list: @{[ a_href 'http://www.gnome.org/','Gnome/GTK+' ]} UI,
 network gameplay, C++ no longer required, portability.</p>
 HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
+
+print <<"HERE";
+<p>This project has been moved to @{[ a_href 'http://sourceforge.net/','SourceForge' ]}.
+Please refer to its @{[ a_href 'http://xbill.sourceforge.net/','SourceForge project page' ]}.</p>
+
+@{[ centerimg "redmond_.jpeg","xBill" ]}
+HERE
+
+
+My::Web->footer();
+}
 1;