Add www/p5-Plack-Middleware-Rewrite.

This is basically mod_rewrite for Plack.
This commit is contained in:
Adam Weinberger 2015-01-18 23:18:04 +00:00
parent 2d2272b1d4
commit b9d69c23a6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=377373
5 changed files with 32 additions and 0 deletions

View file

@ -1114,6 +1114,7 @@
SUBDIR += p5-Plack-Middleware-RemoveRedundantBody
SUBDIR += p5-Plack-Middleware-Reproxy
SUBDIR += p5-Plack-Middleware-ReverseProxy
SUBDIR += p5-Plack-Middleware-Rewrite
SUBDIR += p5-Plack-Middleware-ServerStatus-Lite
SUBDIR += p5-Plack-Middleware-Session
SUBDIR += p5-Plack-Middleware-SocketIO

View file

@ -0,0 +1,20 @@
# Created by: Adam Weinberger <adamw@FreeBSD.org>
# $FreeBSD$
PORTNAME= Plack-Middleware-Rewrite
PORTVERSION= 1.010
CATEGORIES= www perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= CPAN:ARISTOTLE
PKGNAMEPREFIX= p5-
MAINTAINER= adamw@FreeBSD.org
COMMENT= mod_rewrite for Plack
BUILD_DEPENDS= p5-Plack>=0.9942:${PORTSDIR}/www/p5-Plack
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= perl5
USE_PERL5= configure
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (Plack-Middleware-Rewrite-1.010.tar.gz) = bd7929d4cfbd47971ddfa2c2f7d263fd1cefceb434bde27ba529f78a11f1d21b
SIZE (Plack-Middleware-Rewrite-1.010.tar.gz) = 13234

View file

@ -0,0 +1,7 @@
This middleware provides a convenient way to modify requests in flight in Plack
apps. Rewrite rules are simply written in Perl, which means everything that can
be done with mod_rewrite can be done with this middleware much more intuitively
(if in syntactically wordier ways). Its primary purpose is rewriting paths, but
almost anything is possible very easily.
WWW: https://metacpan.org/pod/Plack::Middleware::Rewrite

View file

@ -0,0 +1,2 @@
%%SITE_PERL%%/Plack/Middleware/Rewrite.pm
%%PERL5_MAN3%%/Plack::Middleware::Rewrite.3.gz