ports/75935: New port: p5-MasonX-WebApp -- Works with HTML::Mason to do processing before Mason is invoked.
Travis Campbell
hcoyote at ghostar.ath.cx
Sat Jan 8 06:30:34 UTC 2005
>Number: 75935
>Category: ports
>Synopsis: New port: p5-MasonX-WebApp -- Works with HTML::Mason to do processing before Mason is invoked.
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 08 06:30:32 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: User &
>Release: FreeBSD 4.10-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD malkavian.ghostar.ath.cx 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #0: Sat Jul 10 15:35:47 CDT 2004 root at malkavian.ghostar.ath.cx:/usr/obj/usr/src/sys/MALKAVIAN i386
>Description:
Perl module to allow some pre-processing of data before HTML::Mason
gets invoked.
>How-To-Repeat:
>Fix:
--- p5-MasonX-WebApp.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# p5-MasonX-WebApp
# p5-MasonX-WebApp/Makefile
# p5-MasonX-WebApp/pkg-plist
# p5-MasonX-WebApp/distinfo
# p5-MasonX-WebApp/pkg-descr
#
echo c - p5-MasonX-WebApp
mkdir -p p5-MasonX-WebApp > /dev/null 2>&1
echo x - p5-MasonX-WebApp/Makefile
sed 's/^X//' >p5-MasonX-WebApp/Makefile << 'END-of-p5-MasonX-WebApp/Makefile'
X# New ports collection makefile for: p5-MasonX-WebApp
X# Date created: 2005.01.08
X# Whom: Travis Campbell <hcoyote at ghostar.org>
X#
X# $FreeBSD$
X#
X
XPORTNAME= MasonX-WebApp
XPORTVERSION= 0.08
XCATEGORIES= www perl5
XMASTER_SITES= ${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR= MasonX
XPKGNAMEPREFIX= p5-
X
XMAINTAINER= hcoyote at ghostar.org
XCOMMENT= Works with HTML::Mason to do processing before Mason is invoked
X
XRUN_DEPENDS= ${SITE_PERL}/HTML/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
X ${SITE_PERL}/Apache/Session/Wrapper.pm:${PORTSDIR}/www/p5-Apache-Session-Wrapper \
X ${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
X ${SITE_PERL}/Class/Data/Inheritable.pm:${PORTSDIR}/devel/p5-Class-Data-Inheritable \
X ${SITE_PERL}/Class/Factory/Util.pm:${PORTSDIR}/devel/p5-Class-Factory-Util
XBUILD_DEPENDS= ${RUN_DEPENDS}
X
XPERL_MODBUILD= yes
X
XMAN3= MasonX::WebApp.3
X
X.include <bsd.port.pre.mk>
X
X# Depends on devel/p5-Class-Container whichs needs perl 5.6.x or later
X.if ${PERL_LEVEL} < 500600
XIGNORE= Port requires perl 5.6.x or later. Install lang/perl5 then try again
X.endif
X
X.include <bsd.port.post.mk>
END-of-p5-MasonX-WebApp/Makefile
echo x - p5-MasonX-WebApp/pkg-plist
sed 's/^X//' >p5-MasonX-WebApp/pkg-plist << 'END-of-p5-MasonX-WebApp/pkg-plist'
X%%SITE_PERL%%/MasonX/WebApp.pm
X at unexec rmdir %D/%%SITE_PERL%%/MasonX 2>/dev/null || true
END-of-p5-MasonX-WebApp/pkg-plist
echo x - p5-MasonX-WebApp/distinfo
sed 's/^X//' >p5-MasonX-WebApp/distinfo << 'END-of-p5-MasonX-WebApp/distinfo'
XMD5 (MasonX-WebApp-0.08.tar.gz) = ab080390142392ba23a5a4a925a3db75
XSIZE (MasonX-WebApp-0.08.tar.gz) = 18471
END-of-p5-MasonX-WebApp/distinfo
echo x - p5-MasonX-WebApp/pkg-descr
sed 's/^X//' >p5-MasonX-WebApp/pkg-descr << 'END-of-p5-MasonX-WebApp/pkg-descr'
XMasonX::WebApp works with Mason to let you do processing before Mason is ever
Xinvoked. There are a number of things that one might want to do:
X
X* Argument munging
X
X You might want to make sure all incoming arguments are UTF-8 encoded.
X Or you might want to create some objects which Mason will see as
X incoming arguments. For example, a "user_id" parameter could be turned
X into a user object.
X
X* Handle requests without Mason
X
X If you're not generating output for the browser other than a
X redirect, then there's no reason to use Mason. You can use a
X MasonX::WebApp subclass to handle all form submissions, for example.
X
X This has the added benefit of making it easier to preload this code
X once during server startup.
X
X* And others ...
X
X
XWWW: http://www.masonhq.com/?MasonX
END-of-p5-MasonX-WebApp/pkg-descr
exit
--- p5-MasonX-WebApp.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list