Finally merged the branch 'apache20'(+'apache2') back to the main trunk.
[www.jankratochvil.net.git] / project / kix / Index.pm
old mode 100755 (executable)
new mode 100644 (file)
similarity index 70%
rename from project/kix/Index.html.pl
rename to project/kix/Index.pm
index 6522d39..62a9344
@@ -1,8 +1,6 @@
-#! /usr/bin/perl
-# 
 # $Id$
 # Main page of 'My::Project::kix'
-# 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,29 @@ 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::kix::ListItem';
+Wuse 'project::Lib';
 
 
-My::Project->init_project(
-               "__PACKAGE__"=>__PACKAGE__,
-               "ListItem"=>\@project::kix::ListItem::ListItem,
+our @ListItem=(
+               "name"=>"KIX",
+               "platform"=>"unixuser",
+               "priority"=>110,
+               "download"=>"kix.c",
+               "summary"=>sub { return "Free protocol-compatible ".a_href('http://www.kali.net/','Kali').' server equivalent'; },
+               "license"=>"PD",
+               "maintenance"=>"ready",
+               "language"=>"C",
+               "description"=>sub { return <<"HERE"; },
+<p>Server used on GNU/Linux as a replacement for proprietary
+@{[ a_href 'ftp://linux.kali.net/outgoing/kalinix/','KaliNix' ]} network game server.</p>
+HERE
                );
 
+sub handler
+{
+project::Lib->init();
+
 
 print <<"HERE";
 <p>You no longer need to run any foreign binaries on your system and connect
@@ -49,4 +59,6 @@ do not need IPX support anywhere (kernel, D1X, ...).</p>
 HERE
 
 
-My::Web->footer();
+exit;
+}
+1;