Add pyang, a freely available RFC 4741 YANG parser and validator.

This commit is contained in:
Bruce M Simpson 2009-07-05 20:34:22 +00:00
parent a670c9a1e1
commit 8833456a69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=237188
5 changed files with 116 additions and 0 deletions

View file

@ -212,6 +212,7 @@
SUBDIR += portmon
SUBDIR += py-flowtools
SUBDIR += py-ipy
SUBDIR += py-pyang
SUBDIR += py-snmp
SUBDIR += py-snmp2
SUBDIR += py-snmp4

View file

@ -0,0 +1,36 @@
# New ports collection makefile for: py-pyang
# Date created: 2009-07-05
# Whom: Bruce Simpson
#
# $FreeBSD$
#
PORTNAME= pyang
PORTVERSION= 0.9.3
CATEGORIES= net-mgmt python
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= bms@FreeBSD.org
COMMENT= Validator and code generator for YANG (RFC 4741)
USE_PYTHON= 2.5+
USE_PYDISTUTILS=yes
MAKE_ENV+= YANG_INSTALL=${PREFIX}
MAN1= pyang.1
MANCOMPRESSED= no
do-patch:
@${REINPLACE_CMD} 's,share/man/man1,man/man1,' ${WRKSRC}/setup.py
# TODO: Sed YANG_INSTALL into pyang itself.
# TODO: Add yang2html to package.
post-install:
@${ECHO_MSG}
@${ECHO_MSG} "Don't forget to set YANG_INSTALL to ${PREFIX} in your environment."
@${ECHO_MSG}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (pyang-0.9.3.tar.gz) = 890bebf59418887dda7fe8bbecefa494
SHA256 (pyang-0.9.3.tar.gz) = c603596a008d5490dc89be3daa7a569df014434a39727c32ab7fa3fa32e00e02
SIZE (pyang-0.9.3.tar.gz) = 195729

View file

@ -0,0 +1,12 @@
YANG is a data modeling language for NETCONF (RFC4741), developed
by the IETF NETMOD WG.
pyang is a YANG validator, transformator and code generator, written
in python. It can be used to validate YANG modules for correctness,
to transform YANG modules into other formats, and to generate code
from the modules.
pyang is compatible with
http://www.ietf.org/internet-drafts/draft-ietf-netmod-yang-02.txt.
WWW: http://code.google.com/p/pyang

View file

@ -0,0 +1,64 @@
bin/pyang
%%PYTHON_SITELIBDIR%%/pyang/__init__.py
%%PYTHON_SITELIBDIR%%/pyang/__init__.pyc
%%PYTHON_SITELIBDIR%%/pyang/__init__.pyo
%%PYTHON_SITELIBDIR%%/pyang/debug.py
%%PYTHON_SITELIBDIR%%/pyang/debug.pyc
%%PYTHON_SITELIBDIR%%/pyang/debug.pyo
%%PYTHON_SITELIBDIR%%/pyang/error.py
%%PYTHON_SITELIBDIR%%/pyang/error.pyc
%%PYTHON_SITELIBDIR%%/pyang/error.pyo
%%PYTHON_SITELIBDIR%%/pyang/grammar.py
%%PYTHON_SITELIBDIR%%/pyang/grammar.pyc
%%PYTHON_SITELIBDIR%%/pyang/grammar.pyo
%%PYTHON_SITELIBDIR%%/pyang/plugin.py
%%PYTHON_SITELIBDIR%%/pyang/plugin.pyc
%%PYTHON_SITELIBDIR%%/pyang/plugin.pyo
%%PYTHON_SITELIBDIR%%/pyang/statements.py
%%PYTHON_SITELIBDIR%%/pyang/statements.pyc
%%PYTHON_SITELIBDIR%%/pyang/statements.pyo
%%PYTHON_SITELIBDIR%%/pyang/syntax.py
%%PYTHON_SITELIBDIR%%/pyang/syntax.pyc
%%PYTHON_SITELIBDIR%%/pyang/syntax.pyo
%%PYTHON_SITELIBDIR%%/pyang/types.py
%%PYTHON_SITELIBDIR%%/pyang/types.pyc
%%PYTHON_SITELIBDIR%%/pyang/types.pyo
%%PYTHON_SITELIBDIR%%/pyang/util.py
%%PYTHON_SITELIBDIR%%/pyang/util.pyc
%%PYTHON_SITELIBDIR%%/pyang/util.pyo
%%PYTHON_SITELIBDIR%%/pyang/yang_parser.py
%%PYTHON_SITELIBDIR%%/pyang/yang_parser.pyc
%%PYTHON_SITELIBDIR%%/pyang/yang_parser.pyo
%%PYTHON_SITELIBDIR%%/pyang/yin_parser.py
%%PYTHON_SITELIBDIR%%/pyang/yin_parser.pyc
%%PYTHON_SITELIBDIR%%/pyang/yin_parser.pyo
%%PYTHON_SITELIBDIR%%/pyang/plugins/__init__.py
%%PYTHON_SITELIBDIR%%/pyang/plugins/__init__.pyc
%%PYTHON_SITELIBDIR%%/pyang/plugins/__init__.pyo
%%PYTHON_SITELIBDIR%%/pyang/plugins/smi.py
%%PYTHON_SITELIBDIR%%/pyang/plugins/smi.pyc
%%PYTHON_SITELIBDIR%%/pyang/plugins/smi.pyo
%%PYTHON_SITELIBDIR%%/pyang/translators/__init__.py
%%PYTHON_SITELIBDIR%%/pyang/translators/__init__.pyc
%%PYTHON_SITELIBDIR%%/pyang/translators/__init__.pyo
%%PYTHON_SITELIBDIR%%/pyang/translators/dsdl.py
%%PYTHON_SITELIBDIR%%/pyang/translators/dsdl.pyc
%%PYTHON_SITELIBDIR%%/pyang/translators/dsdl.pyo
%%PYTHON_SITELIBDIR%%/pyang/translators/xsd.py
%%PYTHON_SITELIBDIR%%/pyang/translators/xsd.pyc
%%PYTHON_SITELIBDIR%%/pyang/translators/xsd.pyo
%%PYTHON_SITELIBDIR%%/pyang/translators/yang.py
%%PYTHON_SITELIBDIR%%/pyang/translators/yang.pyc
%%PYTHON_SITELIBDIR%%/pyang/translators/yang.pyo
%%PYTHON_SITELIBDIR%%/pyang/translators/yin.py
%%PYTHON_SITELIBDIR%%/pyang/translators/yin.pyc
%%PYTHON_SITELIBDIR%%/pyang/translators/yin.pyo
share/yang/modules/ieee-types.yang
share/yang/modules/inet-types.yang
share/yang/modules/yang-smi.yang
share/yang/modules/yang-types.yang
@dirrm %%PYTHON_SITELIBDIR%%/pyang/translators
@dirrm %%PYTHON_SITELIBDIR%%/pyang/plugins
@dirrm %%PYTHON_SITELIBDIR%%/pyang
@dirrm share/yang/modules
@dirrm share/yang