Update: udpgate-1.1.1
[www.jankratochvil.net.git] / project / udpgate / Index.pm
1 # $Id$
2 # Main page of 'My::Project::udpgate'
3 # Copyright (C) 2004-2005 Jan Kratochvil <project-www.jankratochvil.net@jankratochvil.net>
4
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; exactly version 2 of June 1991 is required
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18
19 package project::udpgate::Index;
20 require 5.6.0;  # at least 'use warnings;' but we need some 5.6.0+ modules anyway
21 our $VERSION=do { my @r=(q$Revision$=~/\d+/g); sprintf "%d.".("%03d"x$#r),@r; };
22 our $CVS_ID=q$Id$;
23 use strict;
24 use warnings;
25
26 use My::Web;
27 Wuse 'project::Lib';
28
29
30 our @ListItem=(
31                 "name"=>"udpgate",
32                 "platform"=>"unixuser",
33                 "priority"=>505,
34                 "download-i386 static binary"=>"dist/udpgate-1.1.1",
35                 "download-gzipped i386 static binary"=>"dist/udpgate-1.1.1.gz",
36                 "download-sources .tar.gz"=>"dist/udpgate-1.1.1.tar.gz",
37                 "download-Fedora Core 4 static builder"=>"dist/build-udpgate-static-2005-11-14-00.tar.gz",
38                 "cvs"=>"udpgate",
39                 "summary"=>"UDP packets gateway",
40                 "license"=>"GPL",
41                 "maintenance"=>"ready",
42                 "language"=>"C",
43                 "description"=><<"HERE",
44 <p>UDP Gate will forward packets from arbitrary clients to a single UDP server.
45 Features optional Gnome user interface and automatic invocation during system startup.
46 Program is provided only with fixed server address.
47 </p>
48 HERE
49                 );
50
51 sub handler
52 {
53 project::Lib->init();
54
55
56 sub projectname($)
57 {
58 my($name)=@_;
59
60         return a_href "/project/$name/",project::Lib->title(project::Lib->name_to_hashref($name));
61 }
62
63 print <<"HERE";
64 <p>Package 'build-udpgate-static' above is in fact obsolete, for further versions it will
65 get replaced by the target project neutral:</p>
66 <blockquote>
67         <p>@{[ projectname "staticbuild" ]}</p>
68 </blockquote>
69 HERE
70
71 my $mms2_title=product::Lib->title(product::Lib->name_to_hashref("mms2"));
72 print <<"HERE";
73 <p>This project was created for the purposes of:</p>
74 <table border="0" class="margin-center td-center">
75         <tr><td>@{[
76                 img '/product/mms2/icon.jpeg',$mms2_title,
77                                 "a_href"=>'/product/mms2/'
78                 ]}</td></tr>
79         <tr><td style="font-size: xx-large;">@{[ a_href '/product/mms2/',$mms2_title ]}</td></tr>
80 </table>
81 HERE
82
83
84 exit;
85 }
86 1;