svn commit: r485326 - in head/textproc: . chkascii
Mateusz Piotrowski
0mp at FreeBSD.org
Mon Nov 19 15:25:10 UTC 2018
Author: 0mp
Date: Mon Nov 19 15:25:08 2018
New Revision: 485326
URL: https://svnweb.freebsd.org/changeset/ports/485326
Log:
New port: textproc/chkascii: Check an ASCII text file for invalid characters
chkascii is a small C program that checks files for any ASCII values
that are possibly junk. The following are considered the only good ASCII
values permissible in a text file: 32-126, 9, 10
The user can optionally force additional ASCII values to be treated as
good.
For good text files, chkascii will wind up by checking on proper EOL
termination. If the file is not EOL-terminated, that too is reported as
an error.
WWW: https://github.com/bourne-again/chkascii
PR: 233254
Submitted by: bourne.identity at hotmail.com
Reviewed by: krion
Approved by: krion (mentor)
Differential Revision: https://reviews.freebsd.org/D18047
Added:
head/textproc/chkascii/
head/textproc/chkascii/Makefile (contents, props changed)
head/textproc/chkascii/distinfo (contents, props changed)
head/textproc/chkascii/pkg-descr (contents, props changed)
Modified:
head/textproc/Makefile
Modified: head/textproc/Makefile
==============================================================================
--- head/textproc/Makefile Mon Nov 19 15:09:35 2018 (r485325)
+++ head/textproc/Makefile Mon Nov 19 15:25:08 2018 (r485326)
@@ -85,6 +85,7 @@
SUBDIR += cdiff
SUBDIR += cgrep
SUBDIR += chpp
+ SUBDIR += chkascii
SUBDIR += cl-meta
SUBDIR += cl-meta-sbcl
SUBDIR += cl-ppcre
Added: head/textproc/chkascii/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/chkascii/Makefile Mon Nov 19 15:25:08 2018 (r485326)
@@ -0,0 +1,23 @@
+# $FreeBSD$
+
+PORTNAME= chkascii
+DISTVERSION= 1.0
+CATEGORIES= textproc
+
+MAINTAINER= bourne.identity at hotmail.com
+COMMENT= Check an ASCII text file for invalid characters
+
+LICENSE= GPLv2+
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= bourne-again
+
+PLIST_FILES= bin/chkascii \
+ man/man1/chkascii.1.gz
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/chkascii ${STAGEDIR}${PREFIX}/bin/chkascii
+ ${INSTALL_MAN} ${WRKSRC}/chkascii.1 ${STAGEDIR}${MANPREFIX}/man/man1
+
+.include <bsd.port.mk>
Added: head/textproc/chkascii/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/chkascii/distinfo Mon Nov 19 15:25:08 2018 (r485326)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1542639723
+SHA256 (bourne-again-chkascii-1.0_GH0.tar.gz) = e25dfa56022894a62b0ebc8f5457871a99c8ccf9f632c6a193f05dbefc27d8ef
+SIZE (bourne-again-chkascii-1.0_GH0.tar.gz) = 9895
Added: head/textproc/chkascii/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/textproc/chkascii/pkg-descr Mon Nov 19 15:25:08 2018 (r485326)
@@ -0,0 +1,16 @@
+chkascii is a small C program that checks files for any ASCII values
+that are possibly junk. The following are considered the only good ASCII
+values permissible in a text file:
+
+32-126
+9
+10
+
+The user can optionally force additional ASCII values to be treated as
+good.
+
+For good text files, chkascii will wind up by checking on proper EOL
+termination. If the file is not EOL-terminated, that too is reported as
+an error.
+
+WWW: https://github.com/bourne-again/chkascii
More information about the svn-ports-all
mailing list