diff options
author | bms <bms@FreeBSD.org> | 2009-07-06 04:34:22 +0800 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2009-07-06 04:34:22 +0800 |
commit | 72018ae9ce7b4d5f3f81d496f46bbf697c59d8f6 (patch) | |
tree | df2a83c76820e2f845c4359a7bfcc4e53ebdf2ce /net-mgmt | |
parent | 025e84ac70331781b5c0e42f60cb468a8d1ca3a8 (diff) | |
download | freebsd-ports-gnome-72018ae9ce7b4d5f3f81d496f46bbf697c59d8f6.tar.gz freebsd-ports-gnome-72018ae9ce7b4d5f3f81d496f46bbf697c59d8f6.tar.zst freebsd-ports-gnome-72018ae9ce7b4d5f3f81d496f46bbf697c59d8f6.zip |
Add pyang, a freely available RFC 4741 YANG parser and validator.
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/py-pyang/Makefile | 36 | ||||
-rw-r--r-- | net-mgmt/py-pyang/distinfo | 3 | ||||
-rw-r--r-- | net-mgmt/py-pyang/pkg-descr | 12 | ||||
-rw-r--r-- | net-mgmt/py-pyang/pkg-plist | 64 |
5 files changed, 116 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index ecb6838d3391..b36ec4072cdf 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -212,6 +212,7 @@ SUBDIR += portmon SUBDIR += py-flowtools SUBDIR += py-ipy + SUBDIR += py-pyang SUBDIR += py-snmp SUBDIR += py-snmp2 SUBDIR += py-snmp4 diff --git a/net-mgmt/py-pyang/Makefile b/net-mgmt/py-pyang/Makefile new file mode 100644 index 000000000000..afd0fe758146 --- /dev/null +++ b/net-mgmt/py-pyang/Makefile @@ -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> diff --git a/net-mgmt/py-pyang/distinfo b/net-mgmt/py-pyang/distinfo new file mode 100644 index 000000000000..57a6a3ac1b76 --- /dev/null +++ b/net-mgmt/py-pyang/distinfo @@ -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 diff --git a/net-mgmt/py-pyang/pkg-descr b/net-mgmt/py-pyang/pkg-descr new file mode 100644 index 000000000000..d0cb3282f356 --- /dev/null +++ b/net-mgmt/py-pyang/pkg-descr @@ -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 diff --git a/net-mgmt/py-pyang/pkg-plist b/net-mgmt/py-pyang/pkg-plist new file mode 100644 index 000000000000..c575c4fb9275 --- /dev/null +++ b/net-mgmt/py-pyang/pkg-plist @@ -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 |