pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www
Module Name: pkgsrc
Committed By: nia
Date: Thu Sep 10 07:40:55 UTC 2020
Modified Files:
pkgsrc/www: Makefile
Added Files:
pkgsrc/www/lua-web-sanitize: DESCR Makefile PLIST distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.1484 -r1.1485 pkgsrc/www/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/www/lua-web-sanitize/DESCR \
pkgsrc/www/lua-web-sanitize/Makefile pkgsrc/www/lua-web-sanitize/PLIST \
pkgsrc/www/lua-web-sanitize/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/Makefile
diff -u pkgsrc/www/Makefile:1.1484 pkgsrc/www/Makefile:1.1485
--- pkgsrc/www/Makefile:1.1484 Tue Sep 8 11:54:20 2020
+++ pkgsrc/www/Makefile Thu Sep 10 07:40:55 2020
@@ -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+= logswan
SUBDIR+= lua-curl
SUBDIR+= lua-http
SUBDIR+= lua-psl
+SUBDIR+= lua-web-sanitize
SUBDIR+= luakit
SUBDIR+= lynx
SUBDIR+= mMosaic
Added files:
Index: pkgsrc/www/lua-web-sanitize/DESCR
diff -u /dev/null pkgsrc/www/lua-web-sanitize/DESCR:1.1
--- /dev/null Thu Sep 10 07:40:55 2020
+++ pkgsrc/www/lua-web-sanitize/DESCR Thu Sep 10 07:40:55 2020
@@ -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.
Index: pkgsrc/www/lua-web-sanitize/Makefile
diff -u /dev/null pkgsrc/www/lua-web-sanitize/Makefile:1.1
--- /dev/null Thu Sep 10 07:40:55 2020
+++ pkgsrc/www/lua-web-sanitize/Makefile Thu Sep 10 07:40:55 2020
@@ -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"
Index: pkgsrc/www/lua-web-sanitize/PLIST
diff -u /dev/null pkgsrc/www/lua-web-sanitize/PLIST:1.1
--- /dev/null Thu Sep 10 07:40:55 2020
+++ pkgsrc/www/lua-web-sanitize/PLIST Thu Sep 10 07:40:55 2020
@@ -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
Index: pkgsrc/www/lua-web-sanitize/distinfo
diff -u /dev/null pkgsrc/www/lua-web-sanitize/distinfo:1.1
--- /dev/null Thu Sep 10 07:40:55 2020
+++ pkgsrc/www/lua-web-sanitize/distinfo Thu Sep 10 07:40:55 2020
@@ -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