Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www www: Add lua-web-sanitize



details:   https://anonhg.NetBSD.org/pkgsrc/rev/322a85f61514
branches:  trunk
changeset: 438765:322a85f61514
user:      nia <nia%pkgsrc.org@localhost>
date:      Thu Sep 10 07:40:55 2020 +0000

description:
www: Add lua-web-sanitize

A Lua library for working with HTML and CSS. It can do HTML and CSS
sanitization using a whitelist, along with general HTML parsing and
transformation. It also includes a query-selector syntax (similar to
jQuery) for scanning HTML.

diffstat:

 www/Makefile                  |   3 ++-
 www/lua-web-sanitize/DESCR    |   4 ++++
 www/lua-web-sanitize/Makefile |  34 ++++++++++++++++++++++++++++++++++
 www/lua-web-sanitize/PLIST    |  12 ++++++++++++
 www/lua-web-sanitize/distinfo |   6 ++++++
 5 files changed, 58 insertions(+), 1 deletions(-)

diffs (89 lines):

diff -r c67563254805 -r 322a85f61514 www/Makefile
--- a/www/Makefile      Thu Sep 10 07:18:33 2020 +0000
+++ b/www/Makefile      Thu Sep 10 07:40:55 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1484 2020/09/08 11:54:20 wiz Exp $
+# $NetBSD: Makefile,v 1.1485 2020/09/10 07:40:55 nia Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -200,6 +200,7 @@
 SUBDIR+=       lua-curl
 SUBDIR+=       lua-http
 SUBDIR+=       lua-psl
+SUBDIR+=       lua-web-sanitize
 SUBDIR+=       luakit
 SUBDIR+=       lynx
 SUBDIR+=       mMosaic
diff -r c67563254805 -r 322a85f61514 www/lua-web-sanitize/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-web-sanitize/DESCR        Thu Sep 10 07:40:55 2020 +0000
@@ -0,0 +1,4 @@
+A Lua library for working with HTML and CSS. It can do HTML and CSS
+sanitization using a whitelist, along with general HTML parsing and
+transformation. It also includes a query-selector syntax (similar to
+jQuery) for scanning HTML.
diff -r c67563254805 -r 322a85f61514 www/lua-web-sanitize/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-web-sanitize/Makefile     Thu Sep 10 07:40:55 2020 +0000
@@ -0,0 +1,34 @@
+# $NetBSD: Makefile,v 1.1 2020/09/10 07:40:55 nia Exp $
+
+DISTNAME=      web_sanitize-1.0.0
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/_/-/g}
+CATEGORIES=    www lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=leafo/}
+GITHUB_PROJECT=        web_sanitize
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    nia%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/leafo/web_sanitize
+COMMENT=       Lua library for sanitizing untrusted HTML
+LICENSE=       mit
+
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+
+INSTALLATION_DIRS+=    ${LUA_LDIR}
+INSTALLATION_DIRS+=    ${LUA_LDIR}/web_sanitize
+INSTALLATION_DIRS+=    ${LUA_LDIR}/web_sanitize/query
+
+do-install:
+       ${INSTALL_DATA} ${WRKSRC}/*.lua \
+           ${DESTDIR}${PREFIX}/${LUA_LDIR}
+       ${INSTALL_DATA} ${WRKSRC}/web_sanitize/*.lua \
+           ${DESTDIR}${PREFIX}/${LUA_LDIR}/web_sanitize
+       ${INSTALL_DATA} ${WRKSRC}/web_sanitize/query/*.lua \
+           ${DESTDIR}${PREFIX}/${LUA_LDIR}/web_sanitize/query
+
+do-test:
+       cd ${WRKSRC} && ${PREFIX}/bin/busted${_LUA_DOT_VERSION}
+
+.include "../../lang/lua/module.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c67563254805 -r 322a85f61514 www/lua-web-sanitize/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-web-sanitize/PLIST        Thu Sep 10 07:40:55 2020 +0000
@@ -0,0 +1,12 @@
+@comment $NetBSD: PLIST,v 1.1 2020/09/10 07:40:55 nia Exp $
+${LUA_LDIR}/web_sanitize.lua
+${LUA_LDIR}/web_sanitize/css.lua
+${LUA_LDIR}/web_sanitize/css_types.lua
+${LUA_LDIR}/web_sanitize/css_whitelist.lua
+${LUA_LDIR}/web_sanitize/data.lua
+${LUA_LDIR}/web_sanitize/html.lua
+${LUA_LDIR}/web_sanitize/init.lua
+${LUA_LDIR}/web_sanitize/query.lua
+${LUA_LDIR}/web_sanitize/query/parse_query.lua
+${LUA_LDIR}/web_sanitize/query/scan_html.lua
+${LUA_LDIR}/web_sanitize/whitelist.lua
diff -r c67563254805 -r 322a85f61514 www/lua-web-sanitize/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-web-sanitize/distinfo     Thu Sep 10 07:40:55 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/09/10 07:40:55 nia Exp $
+
+SHA1 (web_sanitize-1.0.0.tar.gz) = 5b9a3bd08e8d9e5608805b72c550da9ba247afa8
+RMD160 (web_sanitize-1.0.0.tar.gz) = 87cbcb3411b6582377479b8853608c3c06d2bd3c
+SHA512 (web_sanitize-1.0.0.tar.gz) = 37d32c3c1cbe0286bfd37098d7f1d4e5374f3169d045c177e0ed531a3732aeadf6ca58d234efcb99e1f776d069f231b701dd4477c2a2e2ed3384ea213a7ef534
+Size (web_sanitize-1.0.0.tar.gz) = 26034 bytes



Home | Main Index | Thread Index | Old Index