From 44e6a8761fd395911a781f1f83f362f1301b21a6 Mon Sep 17 00:00:00 2001 From: Anders Nordby Date: Sun, 30 Jun 2002 19:00:48 +0000 Subject: Add CGI::Session. PR: 39191 Submitted by: Erwin Lansing --- www/Makefile | 1 + www/p5-CGI-Session/Makefile | 29 +++++++++++++++++++ www/p5-CGI-Session/distinfo | 1 + www/p5-CGI-Session/files/patch-Session.pm | 47 +++++++++++++++++++++++++++++++ www/p5-CGI-Session/pkg-comment | 1 + www/p5-CGI-Session/pkg-descr | 14 +++++++++ www/p5-CGI-Session/pkg-plist | 37 ++++++++++++++++++++++++ 7 files changed, 130 insertions(+) create mode 100644 www/p5-CGI-Session/Makefile create mode 100644 www/p5-CGI-Session/distinfo create mode 100644 www/p5-CGI-Session/files/patch-Session.pm create mode 100644 www/p5-CGI-Session/pkg-comment create mode 100644 www/p5-CGI-Session/pkg-descr create mode 100644 www/p5-CGI-Session/pkg-plist diff --git a/www/Makefile b/www/Makefile index df9be7e5e834..f612f5c8af0b 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 diff --git a/www/p5-CGI-Session/Makefile b/www/p5-CGI-Session/Makefile new file mode 100644 index 000000000000..f95fa6dc2591 --- /dev/null +++ b/www/p5-CGI-Session/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: p5-CGI-Session +# Date created: 12 June 2002 +# Whom: Erwin Lansing +# +# $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 diff --git a/www/p5-CGI-Session/distinfo b/www/p5-CGI-Session/distinfo new file mode 100644 index 000000000000..a5aa59378456 --- /dev/null +++ b/www/p5-CGI-Session/distinfo @@ -0,0 +1 @@ +MD5 (CGI-Session-2.91.tar.gz) = 95c9fac80fec2b13526548f81f6ec147 diff --git a/www/p5-CGI-Session/files/patch-Session.pm b/www/p5-CGI-Session/files/patch-Session.pm new file mode 100644 index 000000000000..f93c271de62a --- /dev/null +++ b/www/p5-CGI-Session/files/patch-Session.pm @@ -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 parameter in the URL, and if that fails, then it will default to + undef, which will force C 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 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 diff --git a/www/p5-CGI-Session/pkg-comment b/www/p5-CGI-Session/pkg-comment new file mode 100644 index 000000000000..601428c415d7 --- /dev/null +++ b/www/p5-CGI-Session/pkg-comment @@ -0,0 +1 @@ +Perl extension for persistent session management diff --git a/www/p5-CGI-Session/pkg-descr b/www/p5-CGI-Session/pkg-descr new file mode 100644 index 000000000000..8867b2feac7c --- /dev/null +++ b/www/p5-CGI-Session/pkg-descr @@ -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 diff --git a/www/p5-CGI-Session/pkg-plist b/www/p5-CGI-Session/pkg-plist new file mode 100644 index 000000000000..9da1a602dde1 --- /dev/null +++ b/www/p5-CGI-Session/pkg-plist @@ -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 -- cgit v1.2.3