Plack::Middleware::XForwardedFor will look for X-Forwarded-For header
in the incomming request and change REMOTE_ADDR to the real client IP. WWW: http://search.cpan.org/dist/Plack-Middleware-XForwardedFor/ PR: ports/153051 Submitted by: Gea-Suan Lin <gslin at gslin.org>
This commit is contained in:
parent
0dd15fc596
commit
da45faad91
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=266148
@ -1146,6 +1146,7 @@
|
||||
SUBDIR += p5-Plack-Middleware-Session
|
||||
SUBDIR += p5-Plack-Middleware-Status
|
||||
SUBDIR += p5-Plack-Middleware-Throttle
|
||||
SUBDIR += p5-Plack-Middleware-XForwardedFor
|
||||
SUBDIR += p5-Plack-Server-Coro
|
||||
SUBDIR += p5-Plack-Server-POE
|
||||
SUBDIR += p5-Plack-Server-ReverseHTTP
|
||||
|
35
www/p5-Plack-Middleware-XForwardedFor/Makefile
Normal file
35
www/p5-Plack-Middleware-XForwardedFor/Makefile
Normal file
@ -0,0 +1,35 @@
|
||||
# New ports collection makefile for: p5-Plack-Middleware-XForwardedFor
|
||||
# Date created: 2010-12-13
|
||||
# Whom: Gea-Suan Lin <gslin@gslin.org>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= Plack-Middleware-XForwardedFor
|
||||
PORTVERSION= 0.103060
|
||||
CATEGORIES= www perl5
|
||||
MASTER_SITES= CPAN
|
||||
PKGNAMEPREFIX= p5-
|
||||
|
||||
MAINTAINER= gslin@gslin.org
|
||||
COMMENT= Plack middleware to handle X-Forwarded-For headers
|
||||
|
||||
RUN_DEPENDS= p5-Net-Netmask>=1.9015:${PORTSDIR}/net-mgmt/p5-Net-Netmask \
|
||||
p5-Plack>=0.9913:${PORTSDIR}/www/p5-Plack \
|
||||
p5-Regexp-Common>=2010010201:${PORTSDIR}/textproc/p5-Regexp-Common
|
||||
|
||||
PERL_CONFIGURE= yes
|
||||
|
||||
MAN3= Plack::Middleware::XForwardedFor.3
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PERL_LEVEL} < 508009
|
||||
BUILD_DEPENDS+= p5-ExtUtils-MakeMaker>=6.31:${PORTSDIR}/devel/p5-ExtUtils-MakeMaker
|
||||
.endif
|
||||
|
||||
.if ${PERL_LEVEL} < 501100
|
||||
RUN_DEPENDS+= p5-parent>=0.223:${PORTSDIR}/devel/p5-parent
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
2
www/p5-Plack-Middleware-XForwardedFor/distinfo
Normal file
2
www/p5-Plack-Middleware-XForwardedFor/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (Plack-Middleware-XForwardedFor-0.103060.tar.gz) = 6d2550b92ddceb4adf6b2214274821e82012dc7180c04c7b5a8245e6b2ce81cc
|
||||
SIZE (Plack-Middleware-XForwardedFor-0.103060.tar.gz) = 10374
|
4
www/p5-Plack-Middleware-XForwardedFor/pkg-descr
Normal file
4
www/p5-Plack-Middleware-XForwardedFor/pkg-descr
Normal file
@ -0,0 +1,4 @@
|
||||
Plack::Middleware::XForwardedFor will look for X-Forwarded-For header
|
||||
in the incomming request and change REMOTE_ADDR to the real client IP.
|
||||
|
||||
WWW: http://search.cpan.org/dist/Plack-Middleware-XForwardedFor/
|
8
www/p5-Plack-Middleware-XForwardedFor/pkg-plist
Normal file
8
www/p5-Plack-Middleware-XForwardedFor/pkg-plist
Normal file
@ -0,0 +1,8 @@
|
||||
@comment $FreeBSD$
|
||||
%%SITE_PERL%%/%%PERL_ARCH%%/auto/Plack/Middleware/XForwardedFor/.packlist
|
||||
%%SITE_PERL%%/Plack/Middleware/XForwardedFor.pm
|
||||
@dirrmtry %%SITE_PERL%%/Plack/Middleware
|
||||
@dirrmtry %%SITE_PERL%%/Plack
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Plack/Middleware/XForwardedFor
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Plack/Middleware
|
||||
@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Plack
|
Loading…
Reference in New Issue
Block a user