From 6eca441447d88a97995ca7717939ee836f10f8f8 Mon Sep 17 00:00:00 2001 From: Antoine Brodin Date: Sun, 23 Oct 2016 09:21:53 +0000 Subject: [PATCH] New port: security/py-maec A Python library for parsing, manipulating, and generating MAEC content WWW: https://github.com/MAECProject/python-maec --- security/Makefile | 3 ++- security/py-maec/Makefile | 40 ++++++++++++++++++++++++++++++++++++++ security/py-maec/distinfo | 3 +++ security/py-maec/pkg-descr | 3 +++ 4 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 security/py-maec/Makefile create mode 100644 security/py-maec/distinfo create mode 100644 security/py-maec/pkg-descr diff --git a/security/Makefile b/security/Makefile index d3b6e9bc43c9..0a8fca65488a 100644 --- a/security/Makefile +++ b/security/Makefile @@ -268,6 +268,7 @@ SUBDIR += jbrofuzz SUBDIR += john SUBDIR += kc + SUBDIR += kdbx-viewer SUBDIR += kedpm SUBDIR += keepass SUBDIR += keepassx @@ -277,7 +278,6 @@ SUBDIR += keychain SUBDIR += keynote SUBDIR += keyprint - SUBDIR += kdbx-viewer SUBDIR += kgpg-kde4 SUBDIR += knock SUBDIR += knocker @@ -868,6 +868,7 @@ SUBDIR += py-keystone SUBDIR += py-libnacl SUBDIR += py-m2crypto + SUBDIR += py-maec SUBDIR += py-mcrypt SUBDIR += py-mhash SUBDIR += py-oauth2client diff --git a/security/py-maec/Makefile b/security/py-maec/Makefile new file mode 100644 index 000000000000..0a399d5c71bd --- /dev/null +++ b/security/py-maec/Makefile @@ -0,0 +1,40 @@ +# Created by: Antoine Brodin +# $FreeBSD$ + +PORTNAME= maec +PORTVERSION= 4.1.0.12 +CATEGORIES= security python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= antoine@FreeBSD.org +COMMENT= Python library for parsing, manipulating, and generating MAEC content + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=2.2.3:devel/py-lxml \ + ${PYTHON_PKGNAMEPREFIX}cybox>=2.1.0.11:security/py-cybox +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose + +NO_ARCH= yes +USES= python:2.7 +USE_PYTHON= distutils autoplist + +PORTDOCS= README.rst +PORTEXAMPLES= * + +OPTIONS_DEFINE= DOCS EXAMPLES + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/* ${STAGEDIR}${EXAMPLESDIR} + +do-test: + @(cd ${TEST_WRKSRC} && ${SETENV} ${TEST_ENV} nosetests-${PYTHON_VER}) + +.include diff --git a/security/py-maec/distinfo b/security/py-maec/distinfo new file mode 100644 index 000000000000..b99f8905df91 --- /dev/null +++ b/security/py-maec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1476607811 +SHA256 (maec-4.1.0.12.tar.gz) = be46cfd50b7b14701e90c52ceac0e62c0d3e83c3929736b51fba1c5c0bf6d1ac +SIZE (maec-4.1.0.12.tar.gz) = 153351 diff --git a/security/py-maec/pkg-descr b/security/py-maec/pkg-descr new file mode 100644 index 000000000000..e5ec0ee69dbd --- /dev/null +++ b/security/py-maec/pkg-descr @@ -0,0 +1,3 @@ +A Python library for parsing, manipulating, and generating MAEC content + +WWW: https://github.com/MAECProject/python-maec