diff options
author | anders <anders@FreeBSD.org> | 2002-06-30 19:00:48 +0000 |
---|---|---|
committer | anders <anders@FreeBSD.org> | 2002-06-30 19:00:48 +0000 |
commit | d6830e4594c2bc5901880192f506081dff29ca43 (patch) | |
tree | 8b726ded1aed5a4dbe2fa4b996295da50faba296 /www/p5-CGI-Session | |
parent | e95950dec609276fc679697990ce486200137fdd (diff) | |
download | FreeBSD-ports-d6830e4594c2bc5901880192f506081dff29ca43.zip FreeBSD-ports-d6830e4594c2bc5901880192f506081dff29ca43.tar.gz |
Add CGI::Session.
PR: 39191
Submitted by: Erwin Lansing <erwin@lansing.dk>
Diffstat (limited to 'www/p5-CGI-Session')
-rw-r--r-- | www/p5-CGI-Session/Makefile | 29 | ||||
-rw-r--r-- | www/p5-CGI-Session/distinfo | 1 | ||||
-rw-r--r-- | www/p5-CGI-Session/files/patch-Session.pm | 47 | ||||
-rw-r--r-- | www/p5-CGI-Session/pkg-comment | 1 | ||||
-rw-r--r-- | www/p5-CGI-Session/pkg-descr | 14 | ||||
-rw-r--r-- | www/p5-CGI-Session/pkg-plist | 37 |
6 files changed, 129 insertions, 0 deletions
diff --git a/www/p5-CGI-Session/Makefile b/www/p5-CGI-Session/Makefile new file mode 100644 index 0000000..f95fa6d --- /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 <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> diff --git a/www/p5-CGI-Session/distinfo b/www/p5-CGI-Session/distinfo new file mode 100644 index 0000000..a5aa593 --- /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 0000000..f93c271 --- /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<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 diff --git a/www/p5-CGI-Session/pkg-comment b/www/p5-CGI-Session/pkg-comment new file mode 100644 index 0000000..601428c --- /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 0000000..8867b2f --- /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 0000000..9da1a60 --- /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 |