Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Nov 2018 15:25:08 +0000 (UTC)
From:      Mateusz Piotrowski <0mp@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r485326 - in head/textproc: . chkascii
Message-ID:  <201811191525.wAJFP8ru098337@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811191525.wAJFP8ru098337>