aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/Makefile1
-rw-r--r--www/p5-Template-Plugin-StripScripts/Makefile22
-rw-r--r--www/p5-Template-Plugin-StripScripts/distinfo2
-rw-r--r--www/p5-Template-Plugin-StripScripts/pkg-descr6
-rw-r--r--www/p5-Template-Plugin-StripScripts/pkg-plist8
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