#! /usr/bin/perl
# 
# $Id$
# Main page of 'My::Project::postget'
# Copyright (C) 2003 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
# the Free Software Foundation; exactly version 2 of June 1991 is required
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA


package project::postget::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$;
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::postget::ListItem';


My::Project->init_project(
		"__PACKAGE__"=>__PACKAGE__,
		"ListItem"=>\@project::postget::ListItem::ListItem,
		);


print <<"HERE";

<ul>
	<li>
		<p>Store the
				@{[ a_href $W->{"project_viewcvs"}."*checkout*/nethome/WWW/cgi-bin/postget.php?rev=HEAD",'downloaded file' ]}
		as <b>/home/lace/WWW/cgi-bin/postget.php</b>.</p>
	</li>
	<li>
		<p>Edit path to your <b>priv</b> directory in the stored
		<b>@{[ a_href $W->{"project_viewcvs"}."*checkout*/nethome/WWW/cgi-bin/postget.php?rev=HEAD",'postget.php' ]}</b>.
	</li>
	<li>
		<p>Bookmark the following @{[ a_href 'http://freshmeat.net/','Freshmeat' ]} URL:
				@{[ CGI::escapeHTML(q{http://localhost/~lace/cgi-bin/postget.php?_postget=http%3A%2F%2Ffreshmeat.net%2Flogin%2F&url=%2F&username=YOUR_USERNAME&password=_priv_postget.freshmeat.net.pwd&persistent=1}) ]}
		</p>
		<p>(Replace <b>YOUR_USERNAME</b> with your @{[ a_href 'http://freshmeat.net/','Freshmeat' ]}
		account name.</p>
	</li>
	<li>
		<p>Store your @{[ a_href 'http://freshmeat.net/','Freshmeat' ]} account password
		to: <b>~/priv/postget.freshmeat.net.pwd</b></p>
		<p>Protect it by '<i>chgrp nobody postget.freshmeat.net.pwd</i>' and
		'<i>chmod 640 postget.freshmeat.net.pwd</i>' (it is not secure as long as
		someone else can supply pages served by the same
		@{[ a_href 'http://httpd.apache.org/','Apache webserver' ]}.</p>
	</li>
</ul>

HERE


My::Web->footer();
