From d8251c38c3a468a03a50fa7c07ebffff5214210c Mon Sep 17 00:00:00 2001 From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Tue, 9 Oct 2018 13:51:40 +0000 Subject: [PATCH] New port: security/py-bro-pkg: Bro NSM package manager The Bro Package Manager makes it easy for Bro users to install and manage third party scripts as well as plugins for Bro and BroControl. The command-line tool is preconfigured scripts as well as plugins for Bro and BroControl. The command-line tool is preconfigured to download packages from the Bro package source, a GitHub repository that has been setup such that any developer can request their Bro package be included. See the README file of that repository for information regarding the package submission process. NOTE: It's left up to users to decide for themselves via code review, GitHub comments/stars, or other metrics whether any given package is trustworthy as there is no implied guarantees that it's secure just because it's been accepted into the default package source. See the package manager documentation for further usage information, how-to guides, and walkthroughs. For offline reading, it's also available in the doc/ directory of the source code distribution. WWW: https://github.com/bro/package-manager/ PR: 231739 Submitted by: Shirkdog Reviewed by: Nathan Approved by: krion (mentor) Differential Revision: https://reviews.freebsd.org/D17358 --- security/Makefile | 1 + security/py-bro-pkg/Makefile | 29 +++++++++++++++++++++++++++++ security/py-bro-pkg/distinfo | 3 +++ security/py-bro-pkg/pkg-descr | 18 ++++++++++++++++++ security/py-bro-pkg/pkg-message | 7 +++++++ 5 files changed, 58 insertions(+) create mode 100644 security/py-bro-pkg/Makefile create mode 100644 security/py-bro-pkg/distinfo create mode 100644 security/py-bro-pkg/pkg-descr create mode 100644 security/py-bro-pkg/pkg-message diff --git a/security/Makefile b/security/Makefile index 5ee461bfcd7d..2abd2c3746b8 100644 --- a/security/Makefile +++ b/security/Makefile @@ -914,6 +914,7 @@ SUBDIR += py-backports.ssl_match_hostname SUBDIR += py-bcrypt SUBDIR += py-borg.localrole + SUBDIR += py-bro-pkg SUBDIR += py-btchip-python SUBDIR += py-cerealizer SUBDIR += py-certbot diff --git a/security/py-bro-pkg/Makefile b/security/py-bro-pkg/Makefile new file mode 100644 index 000000000000..680d92198f49 --- /dev/null +++ b/security/py-bro-pkg/Makefile @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= bro-pkg +DISTVERSIONPREFIX= v +DISTVERSION= 1.4.2 +CATEGORIES= security python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= mshirk@daemon-security.com +COMMENT= Bro NSM package manager + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/COPYING + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}GitPython>=2.1.8:devel/py-gitpython@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}btest>=0:devel/py-btest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}configparser>=0:devel/py-configparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}semantic_version>=0:devel/py-semantic_version@${PY_FLAVOR} + +USES= python +USE_PYTHON= distutils autoplist concurrent + +USE_GITHUB= yes +GH_ACCOUNT= bro +GH_PROJECT= package-manager + +NO_ARCH= yes + +.include diff --git a/security/py-bro-pkg/distinfo b/security/py-bro-pkg/distinfo new file mode 100644 index 000000000000..af4fd777578e --- /dev/null +++ b/security/py-bro-pkg/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1538253976 +SHA256 (bro-package-manager-v1.4.2_GH0.tar.gz) = 25e9ed42066cece276023dbbde65eff02fd7e879127883b02a4ae3a6350b0d1d +SIZE (bro-package-manager-v1.4.2_GH0.tar.gz) = 87843 diff --git a/security/py-bro-pkg/pkg-descr b/security/py-bro-pkg/pkg-descr new file mode 100644 index 000000000000..f40272f92401 --- /dev/null +++ b/security/py-bro-pkg/pkg-descr @@ -0,0 +1,18 @@ +The Bro Package Manager makes it easy for Bro users to install +and manage third party scripts as well as plugins for Bro and +BroControl. The command-line tool is preconfigured scripts as +well as plugins for Bro and BroControl. The command-line tool +is preconfigured to download packages from the Bro package source, +a GitHub repository that has been setup such that any developer +can request their Bro package be included. See the README file +of that repository for information regarding the package submission +process. NOTE: It's left up to users to decide for themselves +via code review, GitHub comments/stars, or other metrics whether +any given package is trustworthy as there is no implied guarantees +that it's secure just because it's been accepted into the default +package source. See the package manager documentation for further +usage information, how-to guides, and walkthroughs. For offline +reading, it's also available in the doc/ directory of the +source code distribution. + +WWW: https://github.com/bro/package-manager/ diff --git a/security/py-bro-pkg/pkg-message b/security/py-bro-pkg/pkg-message new file mode 100644 index 000000000000..ed8055ac7da6 --- /dev/null +++ b/security/py-bro-pkg/pkg-message @@ -0,0 +1,7 @@ +====================================================================== + +Run the following to configure bro-pkg: + +bro-pkg autoconfig + +======================================================================