diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2013-11-19 03:29:06 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2013-11-19 03:29:06 +0800 |
commit | 98b6bdd7180418785c6672579723da28a3e977e7 (patch) | |
tree | b087a800be9f76516df5391bf750f83fe3209f8a /www | |
parent | c88fe54f9e892be7c01056f09ce02966c9d46dea (diff) | |
download | freebsd-ports-gnome-98b6bdd7180418785c6672579723da28a3e977e7.tar.gz freebsd-ports-gnome-98b6bdd7180418785c6672579723da28a3e977e7.tar.zst freebsd-ports-gnome-98b6bdd7180418785c6672579723da28a3e977e7.zip |
- Add p5-Template-Plugin-StripScripts 0.02
- While I'm here:
- Add LICENSE
- Convert to new Perl framework
Template::Plugin::StripScripts is a Template::Toolkit plugin to
filter HTML and strip scripting snipets which can cause XSS.
Additionally, due to some nice features from HTML::StripScripts,
this module can work really flexibly on treating HTML.
WWW: http://search.cpan.org/dist/Template-Plugin-StripScripts/
PR: ports/180320
Submitted by: Anes Mukhametov <anes@anes.su>
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 1 | ||||
-rw-r--r-- | www/p5-Template-Plugin-StripScripts/Makefile | 22 | ||||
-rw-r--r-- | www/p5-Template-Plugin-StripScripts/distinfo | 2 | ||||
-rw-r--r-- | www/p5-Template-Plugin-StripScripts/pkg-descr | 6 | ||||
-rw-r--r-- | www/p5-Template-Plugin-StripScripts/pkg-plist | 8 |
5 files changed, 39 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile index 473c7d540caa..9eec8e9fde9e 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1197,6 +1197,7 @@ SUBDIR += p5-Template-Plugin-Markdown SUBDIR += p5-Template-Plugin-Monta SUBDIR += p5-Template-Plugin-Number-Format + SUBDIR += p5-Template-Plugin-StripScripts SUBDIR += p5-Template-Plugin-Subst SUBDIR += p5-Template-Plugin-VMethods SUBDIR += p5-Template-Provider-Encoding diff --git a/www/p5-Template-Plugin-StripScripts/Makefile b/www/p5-Template-Plugin-StripScripts/Makefile new file mode 100644 index 000000000000..4514587c3359 --- /dev/null +++ b/www/p5-Template-Plugin-StripScripts/Makefile @@ -0,0 +1,22 @@ +# Created by: Anes Mukhametov <anes@anes.su> +# $FreeBSD$ + +PORTNAME= Template-Plugin-StripScripts +PORTVERSION= 0.02 +CATEGORIES= www perl5 +MASTER_SITES= CPAN +PKGNAMEPREFIX= p5- + +MAINTAINER= anes@anes.su +COMMENT= TT plugin to filter HTML against XSS + +LICENSE= MIT + +BUILD_DEPENDS= p5-HTML-StripScripts-Parser>=0.99:${PORTSDIR}/www/p5-HTML-StripScripts-Parser \ + p5-Template-Toolkit>=0:${PORTSDIR}/www/p5-Template-Toolkit +RUN_DEPENDS:= ${BUILD_DEPENDS} + +USE_PERL5= configure +USES= perl5 + +.include <bsd.port.mk> diff --git a/www/p5-Template-Plugin-StripScripts/distinfo b/www/p5-Template-Plugin-StripScripts/distinfo new file mode 100644 index 000000000000..88110ae4cdcc --- /dev/null +++ b/www/p5-Template-Plugin-StripScripts/distinfo @@ -0,0 +1,2 @@ +SHA256 (Template-Plugin-StripScripts-0.02.tar.gz) = e5db2d808b0705f427d655bbaec7671dfc6e4d60fb353a52d2e999e5dce5409d +SIZE (Template-Plugin-StripScripts-0.02.tar.gz) = 35092 diff --git a/www/p5-Template-Plugin-StripScripts/pkg-descr b/www/p5-Template-Plugin-StripScripts/pkg-descr new file mode 100644 index 000000000000..2af90b459157 --- /dev/null +++ b/www/p5-Template-Plugin-StripScripts/pkg-descr @@ -0,0 +1,6 @@ +Template::Plugin::StripScripts is a Template::Toolkit plugin to +filter HTML and strip scripting snipets which can cause XSS. +Additionally, due to some nice features from HTML::StripScripts, +this module can work really flexibly on treating HTML. + +WWW: http://search.cpan.org/dist/Template-Plugin-StripScripts/ diff --git a/www/p5-Template-Plugin-StripScripts/pkg-plist b/www/p5-Template-Plugin-StripScripts/pkg-plist new file mode 100644 index 000000000000..b86075d81392 --- /dev/null +++ b/www/p5-Template-Plugin-StripScripts/pkg-plist @@ -0,0 +1,8 @@ +%%SITE_PERL%%/Template/Plugin/StripScripts.pm +%%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin/StripScripts/.packlist +%%PERL5_MAN3%%/Template::Plugin::StripScripts.3.gz +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin/StripScripts +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template/Plugin +@dirrmtry %%SITE_PERL%%/%%PERL_ARCH%%/auto/Template +@dirrmtry %%SITE_PERL%%/Template/Plugin +@dirrmtry %%SITE_PERL%%/Template |