pkgsrc/www/lua-web-sanitize/Makefile
nia cd5df3a0d3 lua-web-sanitize: update to 1.4.0
Stricter attribute value escaping

This is a critical update if you are using a custom white list with iframe
elements allowed. Due to their non-standard parsing within browsers it
maybe be possible to craft HTML to bypass sanitization by using an element
with an attribute value of a closing iframe tag. Those using the default
whitelist are not affected.
2023-02-01 12:36:06 +00:00

39 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.4 2023/02/01 12:36:06 nia Exp $
DISTNAME= web_sanitize-1.4.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
HOMEPAGE= https://github.com/leafo/web_sanitize
COMMENT= Lua library for sanitizing untrusted HTML
LICENSE= mit
USE_LANGUAGES= # none
NO_BUILD= yes
LUA_USE_BUSTED= yes
TEST_DEPENDS+= ${LUA_PKGPREFIX}-moonscript-[0-9]*:../../lang/lua-moonscript
TEST_DEPENDS+= ${LUA_PKGPREFIX}-cjson-[0-9]*:../../textproc/lua-cjson
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
pre-test:
${PREFIX}/bin/moonc${_LUA_DOT_VERSION} ${WRKSRC}/spec/*.moon
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"