Import vnu-18.8.29.

The Nu Html Checker (v.Nu) is the backend of checker.html5.org,
html5.validator.nu, and validator.w3.org/nu. It can be used to batch-check
HTML 5 documents from the command line and from other scripts/apps, or
deployed as a self-contained web service.

ok jeremy@ tb@
This commit is contained in:
bentley 2018-09-10 06:50:04 +00:00
parent f756e3c091
commit 60729f3f0c
6 changed files with 77 additions and 0 deletions

40
www/vnu/Makefile Normal file
View File

@ -0,0 +1,40 @@
# $OpenBSD: Makefile,v 1.1.1.1 2018/09/10 06:50:04 bentley Exp $
COMMENT = HTML5 validator
V = 18.8.29
DISTNAME = vnu.jar_$V
PKGNAME = vnu-$V
CATEGORIES = www
HOMEPAGE = https://validator.github.io/validator/
MAINTAINER = Anthony J. Bentley <anthony@anjbe.name>
# MIT
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = https://github.com/validator/validator/releases/download/$V/
EXTRACT_SUFX = .zip
MODULES = java
MODJAVA_VER = 1.8+
MODJAVA_JRERUN = Yes
RUN_DEPENDS = java/javaPathHelper
NO_BUILD = Yes
NO_TEST = Yes
WRKDIST = ${WRKDIR}/dist
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/vnu
${INSTALL_DATA} ${WRKSRC}/vnu.jar ${PREFIX}/share/vnu
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/vnu
${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/vnu
${SUBST_CMD} -m 555 -c ${FILESDIR}/vnu ${WRKSRC}/vnu
${INSTALL_SCRIPT} ${WRKSRC}/vnu ${PREFIX}/bin
.include <bsd.port.mk>

2
www/vnu/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (vnu.jar_18.8.29.zip) = 06k+/gS3aVyDG6cvBkAfNx1I9ETpUVLb+nXoyReXUxo=
SIZE (vnu.jar_18.8.29.zip) = 27383668

2
www/vnu/files/vnu Normal file
View File

@ -0,0 +1,2 @@
#!/bin/sh
`javaPathHelper -c vnu` -jar ${TRUEPREFIX}/share/vnu/vnu.jar $@

4
www/vnu/pkg/DESCR Normal file
View File

@ -0,0 +1,4 @@
The Nu Html Checker (v.Nu) is the backend of checker.html5.org,
html5.validator.nu, and validator.w3.org/nu. It can be used to batch-check
HTML 5 documents from the command line and from other scripts/apps, or
deployed as a self-contained web service.

9
www/vnu/pkg/PLIST Normal file
View File

@ -0,0 +1,9 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2018/09/10 06:50:04 bentley Exp $
@newgroup _vnu:818
@newuser _vnu:818:818:daemon:Nu Html Checker:/var/empty:/sbin/nologin
@rcscript ${RCDIR}/vnu
bin/vnu
share/doc/vnu/
share/doc/vnu/README.md
share/vnu/
share/vnu/vnu.jar

20
www/vnu/pkg/vnu.rc Normal file
View File

@ -0,0 +1,20 @@
#!/bin/ksh
#
# $OpenBSD: vnu.rc,v 1.1.1.1 2018/09/10 06:50:04 bentley Exp $
daemon="${TRUEPREFIX}/share/vnu/vnu.jar"
daemon_user="_vnu"
daemon_flags="8888"
. /etc/rc.d/rc.subr
rc_bg=YES
rc_reload=NO
pexp="$(${LOCALBASE}/bin/javaPathHelper -c vnu) -cp ${daemon} nu.validator.servlet.Main ${daemon_flags}"
rc_start() {
${rcexec} "$(${LOCALBASE}/bin/javaPathHelper -c vnu) -cp ${daemon} nu.validator.servlet.Main ${daemon_flags}"
}
rc_cmd $1