1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Add CGI::Session.

PR:		39191
Submitted by:	Erwin Lansing <erwin@lansing.dk>
This commit is contained in:
Anders Nordby 2002-06-30 19:00:48 +00:00
parent 57fca668f3
commit 44e6a8761f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62221
7 changed files with 130 additions and 0 deletions

View File

@ -261,6 +261,7 @@
SUBDIR += p5-CGI-Cache
SUBDIR += p5-CGI-FastTemplate
SUBDIR += p5-CGI-Minimal
SUBDIR += p5-CGI-Session
SUBDIR += p5-CGI-SpeedyCGI
SUBDIR += p5-CGI-XMLApplication
SUBDIR += p5-CGI-modules

View File

@ -0,0 +1,29 @@
# New ports collection makefile for: p5-CGI-Session
# Date created: 12 June 2002
# Whom: Erwin Lansing <erwin@lansing.dk>
#
# $FreeBSD$
#
PORTNAME= CGI-Session
PORTVERSION= 2.91
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= CGI
PKGNAMEPREFIX= p5-
MAINTAINER= erwin@lansing.dk
BUILD_DEPENDS= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5
RUN_DEPENDS= ${BUILD_DEPENDS}
PERL_CONFIGURE= yes
MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
MAN3= CGI::Session::DB_File.3 \
CGI::Session::MySQL.3 \
CGI::Session::MD5.3 \
CGI::Session::File.3 \
CGI::Session.3
.include <bsd.port.mk>

View File

@ -0,0 +1 @@
MD5 (CGI-Session-2.91.tar.gz) = 95c9fac80fec2b13526548f81f6ec147

View File

@ -0,0 +1,47 @@
--- Session.pm.orig Wed Jun 12 11:56:43 2002
+++ Session.pm Wed Jun 12 12:04:39 2002
@@ -915,7 +915,7 @@
=head2 STANDARD INSTALLATION
The library is installed with just like other Perl libraries, or via CPAN interactive
-shell (Perl -MCPAN -e install CGI::Session).
+shell (Perl -MCPAN C<-e> install CGI::Session).
Installation can also be done by following below instructions:
@@ -1117,7 +1117,7 @@
above example. So, how do we "mark" the user? There are several ways of
"marking".
-=head3 IDENTIFYING THE USER VIA CGI QUERY
+=item IDENTIFYING THE USER VIA CGI QUERY
One way of doing it is to append the session id to every single link in the
web site:
@@ -1167,7 +1167,7 @@
session id appended to them. Too bad, because the client has to start
everything over again.
-=head3 INDENTIFYING THE USER VIA COOKIES
+=item INDENTIFYING THE USER VIA COOKIES
We can deal with the above problem by sending the client a cookie. This cookie
will hold the session id only! Thus if the client visits some other site, or
@@ -1211,7 +1211,7 @@
the C<sid> parameter in the URL, and if that fails, then it will default to
undef, which will force C<CGI::Session> to create a new id for the client.
-=head3 IDENTIFYING THE USER VIA PATH_INFO
+=item IDENTIFYING THE USER VIA PATH_INFO
The least common, but at the same time quite convenient way of C<marking> users
with a session id is appending the session id to the url of the script
@@ -1363,7 +1363,7 @@
=back
-=head3 SPECIAL NAMES
+=item SPECIAL NAMES
When you create a fresh-blank session, it's not blank as it seems. It is
initialized with the following 4 parameters, which are serialized together

View File

@ -0,0 +1 @@
Perl extension for persistent session management

View File

@ -0,0 +1,14 @@
"CGI::Session" is Perl5 library that provides an easy persistent session
management system across HTTP requests. Session persistence is a very
important issue in web applications. Shopping carts, user-recognition
features, login and authentication methods and etc. all require
persistent session management mechanism, which is both secure and
reliable. "CGI::Session" provides with just that. You can read the whole
documentation as a tutorial on session management. But if you are
already familiar with "CGI::Session" go to the methods section for the
list of all the methods available.
WWW: http://search.cpan.org/search?dist=CGI-Session
- Erwin Lansing
erwin@lansing.dk

View File

@ -0,0 +1,37 @@
lib/perl5/site_perl/%%PERL_VER%%/CGI/Session/DB_File.pm
lib/perl5/site_perl/%%PERL_VER%%/CGI/Session/MD5.pm
lib/perl5/site_perl/%%PERL_VER%%/CGI/Session/MySQL.pm
lib/perl5/site_perl/%%PERL_VER%%/CGI/Session/File.pm
lib/perl5/site_perl/%%PERL_VER%%/CGI/Session.pm
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/id.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/remote_addr.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/remote_host.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/close.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/_date_shortcuts.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/expires.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/ctime.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/atime.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/param_hashref.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/save_param.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/load_param.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/clear.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/error.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/delete.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/version.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/dump.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/TIEHASH.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/FETCH.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/STORE.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/DELETE.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/EXISTS.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/FIRSTKEY.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/NEXTKEY.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/CLEAR.al
lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session/autosplit.ix
lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Session/.packlist
@dirrm lib/perl5/site_perl/%%PERL_VER%%/CGI/Session
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/CGI 2>/dev/null || true
@dirrm lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session
@unexec rmdir %D/lib/perl5/site_perl/%%PERL_VER%%/auto/CGI/Session 2>/dev/null || true
@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI/Session
@unexec %D/lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/CGI 2>/dev/null || true