pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc
Module Name: pkgsrc
Committed By: he
Date: Fri Mar 31 22:41:09 UTC 2023
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/py-textfsm: DESCR Makefile PLIST distinfo
Log Message:
Add textfsm version 1.1.3.
Python module which implements a template based state machine for
parsing semi-formatted text. Originally developed to allow programmatic
access to information returned from the command line interface
(CLI) of networking devices.
The engine takes two inputs - a template file, and text input (such
as command responses from the CLI of a device) and returns a list
of records that contains the data parsed from the text.
A template file is needed for each uniquely structured text input.
Some examples are provided with the code and users are encouraged
to develop their own.
By developing a pool of template files, scripts can call TextFSM
to parse useful information from a variety of sources. It is also
possible to use different templates on the same data in order to
create different tables (or views).
TextFSM was developed internally at Google and released under the
Apache 2.0 licence for the benefit of the wider community.
To generate a diff of this commit:
cvs rdiff -u -r1.1375 -r1.1376 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/py-textfsm/DESCR \
pkgsrc/textproc/py-textfsm/Makefile pkgsrc/textproc/py-textfsm/PLIST \
pkgsrc/textproc/py-textfsm/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1375 pkgsrc/textproc/Makefile:1.1376
--- pkgsrc/textproc/Makefile:1.1375 Fri Mar 31 15:27:45 2023
+++ pkgsrc/textproc/Makefile Fri Mar 31 22:41:09 2023
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1375 2023/03/31 15:27:45 wiz Exp $
+# $NetBSD: Makefile,v 1.1376 2023/03/31 22:41:09 he Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -1154,6 +1154,7 @@ SUBDIR+= py-sphobjinv
SUBDIR+= py-tablib
SUBDIR+= py-tabulate
SUBDIR+= py-text-unidecode
+SUBDIR+= py-textfsm
SUBDIR+= py-textile
SUBDIR+= py-tinycss2
SUBDIR+= py-toml
Added files:
Index: pkgsrc/textproc/py-textfsm/DESCR
diff -u /dev/null pkgsrc/textproc/py-textfsm/DESCR:1.1
--- /dev/null Fri Mar 31 22:41:09 2023
+++ pkgsrc/textproc/py-textfsm/DESCR Fri Mar 31 22:41:09 2023
@@ -0,0 +1,20 @@
+Python module which implements a template based state machine for
+parsing semi-formatted text. Originally developed to allow programmatic
+access to information returned from the command line interface
+(CLI) of networking devices.
+
+The engine takes two inputs - a template file, and text input (such
+as command responses from the CLI of a device) and returns a list
+of records that contains the data parsed from the text.
+
+A template file is needed for each uniquely structured text input.
+Some examples are provided with the code and users are encouraged
+to develop their own.
+
+By developing a pool of template files, scripts can call TextFSM
+to parse useful information from a variety of sources. It is also
+possible to use different templates on the same data in order to
+create different tables (or views).
+
+TextFSM was developed internally at Google and released under the
+Apache 2.0 licence for the benefit of the wider community.
Index: pkgsrc/textproc/py-textfsm/Makefile
diff -u /dev/null pkgsrc/textproc/py-textfsm/Makefile:1.1
--- /dev/null Fri Mar 31 22:41:09 2023
+++ pkgsrc/textproc/py-textfsm/Makefile Fri Mar 31 22:41:09 2023
@@ -0,0 +1,19 @@
+# $NetBSD: Makefile,v 1.1 2023/03/31 22:41:09 he Exp $
+
+DISTNAME= textfsm-1.1.3
+PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES= textproc python
+MASTER_SITES= ${MASTER_SITE_GITHUB:=google/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/google/textfsm
+COMMENT= Template based state machine for parsing semi-formatted text
+LICENSE= apache-2.0
+
+DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
+
+GITHUB_PROJECT= textfsm
+GITHUB_TAG= v${PKGVERSION_NOREV}
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/py-textfsm/PLIST
diff -u /dev/null pkgsrc/textproc/py-textfsm/PLIST:1.1
--- /dev/null Fri Mar 31 22:41:09 2023
+++ pkgsrc/textproc/py-textfsm/PLIST Fri Mar 31 22:41:09 2023
@@ -0,0 +1,36 @@
+@comment $NetBSD: PLIST,v 1.1 2023/03/31 22:41:09 he Exp $
+bin/textfsm
+${PYSITELIB}/testdata/clitable_templateA
+${PYSITELIB}/testdata/clitable_templateB
+${PYSITELIB}/testdata/clitable_templateC
+${PYSITELIB}/testdata/clitable_templateD
+${PYSITELIB}/testdata/default_index
+${PYSITELIB}/testdata/nondefault_index
+${PYSITELIB}/testdata/parseindex_index
+${PYSITELIB}/testdata/parseindexfail1_index
+${PYSITELIB}/testdata/parseindexfail2_index
+${PYSITELIB}/testdata/parseindexfail3_index
+${PYSITELIB}/textfsm-1.1.2-py${PYVERSSUFFIX}.egg-info/PKG-INFO
+${PYSITELIB}/textfsm-1.1.2-py${PYVERSSUFFIX}.egg-info/SOURCES.txt
+${PYSITELIB}/textfsm-1.1.2-py${PYVERSSUFFIX}.egg-info/dependency_links.txt
+${PYSITELIB}/textfsm-1.1.2-py${PYVERSSUFFIX}.egg-info/entry_points.txt
+${PYSITELIB}/textfsm-1.1.2-py${PYVERSSUFFIX}.egg-info/requires.txt
+${PYSITELIB}/textfsm-1.1.2-py${PYVERSSUFFIX}.egg-info/top_level.txt
+${PYSITELIB}/textfsm/__init__.py
+${PYSITELIB}/textfsm/__init__.pyc
+${PYSITELIB}/textfsm/__init__.pyo
+${PYSITELIB}/textfsm/clitable.py
+${PYSITELIB}/textfsm/clitable.pyc
+${PYSITELIB}/textfsm/clitable.pyo
+${PYSITELIB}/textfsm/copyable_regex_object.py
+${PYSITELIB}/textfsm/copyable_regex_object.pyc
+${PYSITELIB}/textfsm/copyable_regex_object.pyo
+${PYSITELIB}/textfsm/parser.py
+${PYSITELIB}/textfsm/parser.pyc
+${PYSITELIB}/textfsm/parser.pyo
+${PYSITELIB}/textfsm/terminal.py
+${PYSITELIB}/textfsm/terminal.pyc
+${PYSITELIB}/textfsm/terminal.pyo
+${PYSITELIB}/textfsm/texttable.py
+${PYSITELIB}/textfsm/texttable.pyc
+${PYSITELIB}/textfsm/texttable.pyo
Index: pkgsrc/textproc/py-textfsm/distinfo
diff -u /dev/null pkgsrc/textproc/py-textfsm/distinfo:1.1
--- /dev/null Fri Mar 31 22:41:09 2023
+++ pkgsrc/textproc/py-textfsm/distinfo Fri Mar 31 22:41:09 2023
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2023/03/31 22:41:09 he Exp $
+
+BLAKE2s (textfsm-1.1.3.tar.gz) = 75265a1977d32b3f7716f09f044beed18553fb6eaf7011844549fc83a7f8ca06
+SHA512 (textfsm-1.1.3.tar.gz) = 08d4f44dcd9a1885d6378ace1c9ec2d497e287426a2401a19946438b41706e02ffac9ed640c25e9437025c6d7eabf73c03eded53675d6451db3bffc8f4d2b988
+Size (textfsm-1.1.3.tar.gz) = 51296 bytes
Home |
Main Index |
Thread Index |
Old Index