diff options
author | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-09-26 04:56:04 +0000 |
---|---|---|
committer | Craig Rodrigues <rodrigc@FreeBSD.org> | 2017-09-26 04:56:04 +0000 |
commit | 161cfba1b19ce329d7b8b9991b3b9dba1ae6429e (patch) | |
tree | 3f24eeb12a0927e83868516c4e41fe93f3d6d872 /devel | |
parent | be7de40f678af97bf7c552f3c067826ce2cb6ff9 (diff) | |
download | ports-161cfba1b19ce329d7b8b9991b3b9dba1ae6429e.tar.gz ports-161cfba1b19ce329d7b8b9991b3b9dba1ae6429e.zip |
Notes
Diffstat (limited to 'devel')
24 files changed, 94 insertions, 338 deletions
diff --git a/devel/Makefile b/devel/Makefile index e1d3ef070c89..97bcc70d5b70 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4259,6 +4259,7 @@ SUBDIR += py-boto SUBDIR += py-botocore SUBDIR += py-bsd + SUBDIR += py-buildbot-grid-view SUBDIR += py-cached-property SUBDIR += py-cachetools SUBDIR += py-calendar diff --git a/devel/buildbot-console-view/Makefile b/devel/buildbot-console-view/Makefile index f764c219ccc6..dfe9142b7fdb 100644 --- a/devel/buildbot-console-view/Makefile +++ b/devel/buildbot-console-view/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= buildbot-console-view -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -11,27 +11,12 @@ COMMENT= Continuous Integration Framework (Console View) LICENSE= GPLv2 -MY_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg -BUILD_DEPENDS= ${MY_DEPENDS} -RUN_DEPENDS= ${MY_DEPENDS} -TEST_DEPENDS= trial:devel/py-twisted \ - buildbot-worker>=${PORTVERSION}:devel/buildbot-worker \ - ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:devel/py-mock \ - ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \ - ${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity \ - ${PYTHON_PKGNAMEPREFIX}treq>0:www/py-treq +BUILD_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg +RUN_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg -USES= python:-2.7 +USES= python:2.7 USE_PYTHON= autoplist distutils NO_ARCH= yes -post-patch: - @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 ${REINPLACE_CMD} -e \ - 's|/usr/bin/python|${PYTHON_CMD}|g' - @${FIND} ${WRKSRC} -name \*.bak -delete - -do-test: - @cd ${WRKSRC} && trial buildbot - .include <bsd.port.mk> diff --git a/devel/buildbot-console-view/distinfo b/devel/buildbot-console-view/distinfo index 72a751bccb70..b3d3fdbb32e1 100644 --- a/devel/buildbot-console-view/distinfo +++ b/devel/buildbot-console-view/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504051930 -SHA256 (buildbot-console-view-0.9.10.tar.gz) = ca62780a7405df761fa2d80019890c8b25d79f6b716df26fbc4ce257a21f762e -SIZE (buildbot-console-view-0.9.10.tar.gz) = 640908 +TIMESTAMP = 1506179816 +SHA256 (buildbot-console-view-0.9.11.tar.gz) = a0467c096971178462dc18b6a652b53485d1ad0f2791c19f6026a432a07d9d9b +SIZE (buildbot-console-view-0.9.11.tar.gz) = 640623 diff --git a/devel/buildbot-console-view/pkg-descr b/devel/buildbot-console-view/pkg-descr index 951553acad3b..3bcde4457a8c 100644 --- a/devel/buildbot-console-view/pkg-descr +++ b/devel/buildbot-console-view/pkg-descr @@ -1,6 +1,6 @@ This port is the Console View Plugin for BuildBot. For the buildmaster, -install the devel/buildbot port +install the devel/buildbot port. -For more information, please see: http://buildbot.net/trac +For more information, please see: https://buildbot.net/trac -WWW: http://buildbot.net +WWW: https://buildbot.net diff --git a/devel/buildbot-pkg/Makefile b/devel/buildbot-pkg/Makefile index 1908945ad498..6a77fd2bca7d 100644 --- a/devel/buildbot-pkg/Makefile +++ b/devel/buildbot-pkg/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= buildbot-pkg -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -11,27 +11,9 @@ COMMENT= Continuous Integration Framework (packaging) LICENSE= GPLv2 -MY_DEPENDS= buildbot>=${PORTVERSION}:devel/buildbot -BUILD_DEPENDS= ${MY_DEPENDS} -RUN_DEPENDS= ${MY_DEPENDS} -TEST_DEPENDS= trial:devel/py-twisted \ - buildbot-worker>=${PORTVERSION}:devel/buildbot-worker \ - ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:devel/py-mock \ - ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \ - ${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity \ - ${PYTHON_PKGNAMEPREFIX}treq>0:www/py-treq - -USES= python:-2.7 +USES= python:2.7 USE_PYTHON= autoplist distutils NO_ARCH= yes -post-patch: - @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 ${REINPLACE_CMD} -e \ - 's|/usr/bin/python|${PYTHON_CMD}|g' - @${FIND} ${WRKSRC} -name \*.bak -delete - -do-test: - @cd ${WRKSRC} && trial buildbot - .include <bsd.port.mk> diff --git a/devel/buildbot-pkg/distinfo b/devel/buildbot-pkg/distinfo index e04c5c2a74e4..fa6492bea11a 100644 --- a/devel/buildbot-pkg/distinfo +++ b/devel/buildbot-pkg/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504051931 -SHA256 (buildbot-pkg-0.9.10.tar.gz) = 6eecdde02f98be469ec9fde47c55fe64ca04eec764a4729be2ff4faa892532d8 -SIZE (buildbot-pkg-0.9.10.tar.gz) = 4422 +TIMESTAMP = 1506179823 +SHA256 (buildbot-pkg-0.9.11.tar.gz) = 6328abfa68efba299d0309a88b8de40d71d1da4d7bc9148476fed8f393e407be +SIZE (buildbot-pkg-0.9.11.tar.gz) = 4420 diff --git a/devel/buildbot-pkg/pkg-descr b/devel/buildbot-pkg/pkg-descr index 5e58d4965496..244d7ba1dc56 100644 --- a/devel/buildbot-pkg/pkg-descr +++ b/devel/buildbot-pkg/pkg-descr @@ -1,6 +1,6 @@ This port is the Web UI part of BuildBot. For the buildmaster, install the -devel/buildbot port +devel/buildbot port. -For more information, please see: http://buildbot.net/trac +For more information, please see: https://buildbot.net/trac -WWW: http://buildbot.net +WWW: https://buildbot.net diff --git a/devel/buildbot-waterfall-view/Makefile b/devel/buildbot-waterfall-view/Makefile index 742b2489cde1..fa327559123d 100644 --- a/devel/buildbot-waterfall-view/Makefile +++ b/devel/buildbot-waterfall-view/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= buildbot-waterfall-view -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -11,27 +11,12 @@ COMMENT= Continuous Integration Framework (Waterfall View) LICENSE= GPLv2 -MY_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg -BUILD_DEPENDS= ${MY_DEPENDS} -RUN_DEPENDS= ${MY_DEPENDS} -TEST_DEPENDS= trial:devel/py-twisted \ - buildbot-worker>=${PORTVERSION}:devel/buildbot-worker \ - ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:devel/py-mock \ - ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \ - ${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity \ - ${PYTHON_PKGNAMEPREFIX}treq>0:www/py-treq +BUILD_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg +RUN_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg -USES= python:-2.7 +USES= python:2.7 USE_PYTHON= autoplist distutils NO_ARCH= yes -post-patch: - @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 ${REINPLACE_CMD} -e \ - 's|/usr/bin/python|${PYTHON_CMD}|g' - @${FIND} ${WRKSRC} -name \*.bak -delete - -do-test: - @cd ${WRKSRC} && trial buildbot - .include <bsd.port.mk> diff --git a/devel/buildbot-waterfall-view/distinfo b/devel/buildbot-waterfall-view/distinfo index da602bb8711f..8d1c8c3a8ebb 100644 --- a/devel/buildbot-waterfall-view/distinfo +++ b/devel/buildbot-waterfall-view/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504051937 -SHA256 (buildbot-waterfall-view-0.9.10.tar.gz) = c2768391d7eb92e550afe4210e3cba7b69b34a7c9a27d333582f2a04b0f8b030 -SIZE (buildbot-waterfall-view-0.9.10.tar.gz) = 714260 +TIMESTAMP = 1506179833 +SHA256 (buildbot-waterfall-view-0.9.11.tar.gz) = 54e36f8d02be7c046510173f7adb14e3eaeb912e0f41f1b7784e2ac0744799c1 +SIZE (buildbot-waterfall-view-0.9.11.tar.gz) = 713915 diff --git a/devel/buildbot-waterfall-view/pkg-descr b/devel/buildbot-waterfall-view/pkg-descr index 5d36b0cec1da..62d0df878d84 100644 --- a/devel/buildbot-waterfall-view/pkg-descr +++ b/devel/buildbot-waterfall-view/pkg-descr @@ -1,6 +1,6 @@ This port is the Waterfall View Plugin for BuildBot. For the buildmaster, -install the devel/buildbot port +install the devel/buildbot port. -For more information, please see: http://buildbot.net/trac +For more information, please see: https://buildbot.net/trac -WWW: http://buildbot.net +WWW: https://buildbot.net diff --git a/devel/buildbot-worker/Makefile b/devel/buildbot-worker/Makefile index e5fe08f92a12..1af0f3392478 100644 --- a/devel/buildbot-worker/Makefile +++ b/devel/buildbot-worker/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= buildbot-worker -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -14,11 +14,10 @@ LICENSE_FILE= ${WRKSRC}/COPYING RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}future>=0.15.2:devel/py-future \ ${PYTHON_PKGNAMEPREFIX}twisted>=14.0.1:devel/py-twisted - TEST_DEPENDS= trial:devel/py-twisted \ ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock -USES= python:-2.7 +USES= python:2.7 USE_PYTHON= autoplist distutils USE_RC_SUBR= buildbot-worker @@ -32,6 +31,7 @@ post-install: ${INSTALL_MAN} ${WRKSRC}/docs/buildbot-worker.1 ${STAGEDIR}${MANPREFIX}/man/man1 do-test: - @cd ${WRKSRC} && trial buildbot_worker.test + ${MKDIR} ${WRKDIR}/tmp + cd ${WRKDIR}/tmp && ${PYTHON_CMD} -m twisted.trial buildbot_worker.test .include <bsd.port.mk> diff --git a/devel/buildbot-worker/distinfo b/devel/buildbot-worker/distinfo index 144296f27d48..e4d202087c2d 100644 --- a/devel/buildbot-worker/distinfo +++ b/devel/buildbot-worker/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504051939 -SHA256 (buildbot-worker-0.9.10.tar.gz) = 1793631d74629cd73bc0df1fadf28fb34d87e63aa72cba82058122bde165a824 -SIZE (buildbot-worker-0.9.10.tar.gz) = 99028 +TIMESTAMP = 1506179860 +SHA256 (buildbot-worker-0.9.11.tar.gz) = 4254bf964465acb6586fda36b26a424466a265b6a5259138cf4fa63a1e9f6851 +SIZE (buildbot-worker-0.9.11.tar.gz) = 100746 diff --git a/devel/buildbot-worker/files/patch-setup.py b/devel/buildbot-worker/files/patch-setup.py index 8fe0b3d2be8f..7d73586b6df1 100644 --- a/devel/buildbot-worker/files/patch-setup.py +++ b/devel/buildbot-worker/files/patch-setup.py @@ -1,6 +1,6 @@ ---- setup.py.orig 2017-02-08 10:06:13.000000000 +0100 -+++ setup.py 2017-03-07 15:28:03.225761995 +0100 -@@ -104,9 +104,6 @@ +--- setup.py.orig 2017-07-01 19:16:48 UTC ++++ setup.py +@@ -106,9 +106,6 @@ setup_args = { "buildbot_worker.test.unit", "buildbot_worker.test.util", ], diff --git a/devel/buildbot-worker/pkg-descr b/devel/buildbot-worker/pkg-descr index 07b879844954..f0d91bd6c43a 100644 --- a/devel/buildbot-worker/pkg-descr +++ b/devel/buildbot-worker/pkg-descr @@ -1,6 +1,6 @@ This port is the worker part of BuildBot. For the buildmaster, install the -devel/buildbot port +devel/buildbot port. -For more information, please see: http://buildbot.net/trac +For more information, please see: https://buildbot.net/trac -WWW: http://buildbot.net +WWW: https://buildbot.net diff --git a/devel/buildbot-www/Makefile b/devel/buildbot-www/Makefile index 15bda486d5d2..a6edbfc68ed6 100644 --- a/devel/buildbot-www/Makefile +++ b/devel/buildbot-www/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= buildbot-www -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -11,31 +11,17 @@ COMMENT= Continuous Integration Framework (WWW) LICENSE= GPLv2 -MY_DEPENDS= buildbot>=${PORTVERSION}:devel/buildbot \ +BUILD_DEPENDS= buildbot>=${PORTVERSION}:devel/buildbot \ buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg \ ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:devel/py-mock -BUILD_DEPENDS= ${MY_DEPENDS} -RUN_DEPENDS= ${MY_DEPENDS} \ - buildbot-console-view>=${PORTVERSION}:devel/buildbot-console-view \ +RUN_DEPENDS= buildbot-console-view>=${PORTVERSION}:devel/buildbot-console-view \ + buildbot-grid-view>=${PORTVERSION}:devel/py-buildbot-grid-view \ buildbot-waterfall-view>=${PORTVERSION}:devel/buildbot-waterfall-view \ ${PYTHON_PKGNAMEPREFIX}service_identity>=16.0.0:security/py-service_identity -TEST_DEPENDS= trial:devel/py-twisted \ - buildbot-worker>=${PORTVERSION}:devel/buildbot-worker \ - ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:devel/py-mock \ - ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 \ - ${PYTHON_PKGNAMEPREFIX}treq>0:www/py-treq -USES= python:-2.7 +USES= python:2.7 USE_PYTHON= autoplist distutils NO_ARCH= yes -post-patch: - @${FIND} ${WRKSRC} -type f | ${XARGS} -n 10 ${REINPLACE_CMD} -e \ - 's|/usr/bin/python|${PYTHON_CMD}|g' - @${FIND} ${WRKSRC} -name \*.bak -delete - -do-test: - @cd ${WRKSRC} && trial buildbot - .include <bsd.port.mk> diff --git a/devel/buildbot-www/distinfo b/devel/buildbot-www/distinfo index a75f2ffde567..04e543b8ba77 100644 --- a/devel/buildbot-www/distinfo +++ b/devel/buildbot-www/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504051917 -SHA256 (buildbot-www-0.9.10.tar.gz) = 9083516d702feefb8b61dd6cb351a54163f3b2d4f34b14071f77f2f550de9bf6 -SIZE (buildbot-www-0.9.10.tar.gz) = 693452 +TIMESTAMP = 1506180945 +SHA256 (buildbot-www-0.9.11.tar.gz) = af01216d543eddba0772e55a0a97a2a1d0a9b0fddc1c87dd59b449b4818893db +SIZE (buildbot-www-0.9.11.tar.gz) = 687664 diff --git a/devel/buildbot-www/pkg-descr b/devel/buildbot-www/pkg-descr index 5e58d4965496..244d7ba1dc56 100644 --- a/devel/buildbot-www/pkg-descr +++ b/devel/buildbot-www/pkg-descr @@ -1,6 +1,6 @@ This port is the Web UI part of BuildBot. For the buildmaster, install the -devel/buildbot port +devel/buildbot port. -For more information, please see: http://buildbot.net/trac +For more information, please see: https://buildbot.net/trac -WWW: http://buildbot.net +WWW: https://buildbot.net diff --git a/devel/buildbot/Makefile b/devel/buildbot/Makefile index f8e499405ed9..d1268d63429c 100644 --- a/devel/buildbot/Makefile +++ b/devel/buildbot/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= buildbot -PORTVERSION= 0.9.10 +PORTVERSION= 0.9.11 CATEGORIES= devel python MASTER_SITES= CHEESESHOP @@ -24,13 +24,13 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=14.0.1:devel/py-twisted \ ${PYTHON_PKGNAMEPREFIX}sqlalchemy10>=0.6:databases/py-sqlalchemy10 \ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3 \ ${PYTHON_PKGNAMEPREFIX}treq>0:www/py-treq -TEST_DEPENDS= trial:devel/py-twisted \ - buildbot-worker>=${PORTVERSION}:devel/buildbot-worker \ +TEST_DEPENDS= buildbot-worker>=${PORTVERSION}:devel/buildbot-worker \ + buildbot-www>=${PORTVERSION}:devel/buildbot-www \ ${PYTHON_PKGNAMEPREFIX}mock>0.8.0:devel/py-mock \ ${PYTHON_PKGNAMEPREFIX}boto3>0:www/py-boto3 +USES= python:2.7 USE_RC_SUBR= buildbot -USES= python:-2.7 USE_PYTHON= autoplist distutils SUB_LIST+= PYTHON_CMD=${PYTHON_CMD} @@ -43,6 +43,7 @@ post-patch: @${FIND} ${WRKSRC} -name \*.bak -delete do-test: - @cd ${WRKSRC} && trial buildbot + ${MKDIR} ${WRKDIR}/tmp + cd ${WRKDIR}/tmp && ${PYTHON_CMD} -m twisted.trial buildbot.test .include <bsd.port.mk> diff --git a/devel/buildbot/distinfo b/devel/buildbot/distinfo index 8122297df407..df399815eae5 100644 --- a/devel/buildbot/distinfo +++ b/devel/buildbot/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1504051787 -SHA256 (buildbot-0.9.10.tar.gz) = 8c5ed75f3f16f4ff0f2c9e3f9b091acb5e6e1c0ef68ffa8f687a55413a833143 -SIZE (buildbot-0.9.10.tar.gz) = 3112750 +TIMESTAMP = 1506179805 +SHA256 (buildbot-0.9.11.tar.gz) = 9be352c0aab5d1520fedac8d6b19aadda4f48763ac7f72bb00e5f8cc51107ee8 +SIZE (buildbot-0.9.11.tar.gz) = 3096455 diff --git a/devel/buildbot/files/patch-buildbot-secrets b/devel/buildbot/files/patch-buildbot-secrets deleted file mode 100644 index 1ec681372419..000000000000 --- a/devel/buildbot/files/patch-buildbot-secrets +++ /dev/null @@ -1,214 +0,0 @@ -diff -rNu buildbot/secrets.orig/providers/__init__.py buildbot/secrets/providers/__init__.py ---- buildbot/secrets.orig/providers/__init__.py 1970-01-01 01:00:00.000000000 +0100 -+++ buildbot/secrets/providers/__init__.py 2017-03-28 21:52:03.947803965 +0200 -@@ -0,0 +1,14 @@ -+# This file is part of Buildbot. Buildbot is free software: you can -+# redistribute it and/or modify it under the terms of the GNU General Public -+# License as published by the Free Software Foundation, version 2. -+# -+# This program is distributed in the hope that it will be useful, but WITHOUT -+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -+# details. -+# -+# You should have received a copy of the GNU General Public License along with -+# this program; if not, write to the Free Software Foundation, Inc., 51 -+# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -+# -+# Copyright Buildbot Team Members -diff -rNu buildbot/secrets.orig/providers/base.py buildbot/secrets/providers/base.py ---- buildbot/secrets.orig/providers/base.py 1970-01-01 01:00:00.000000000 +0100 -+++ buildbot/secrets/providers/base.py 2017-03-28 21:52:03.947803965 +0200 -@@ -0,0 +1,35 @@ -+# This file is part of Buildbot. Buildbot is free software: you can -+# redistribute it and/or modify it under the terms of the GNU General Public -+# License as published by the Free Software Foundation, version 2. -+# -+# This program is distributed in the hope that it will be useful, but WITHOUT -+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -+# details. -+# -+# You should have received a copy of the GNU General Public License along with -+# this program; if not, write to the Free Software Foundation, Inc., 51 -+# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -+# -+# Copyright Buildbot Team Members -+""" -+secret provider interface -+""" -+from __future__ import absolute_import -+from __future__ import print_function -+ -+import abc -+ -+from buildbot.util.service import BuildbotService -+ -+ -+class SecretProviderBase(BuildbotService): -+ """ -+ Secret provider base -+ """ -+ -+ @abc.abstractmethod -+ def get(self, *args, **kwargs): -+ """ -+ this should be an abstract method -+ """ -diff -rNu buildbot/secrets.orig/providers/file.py buildbot/secrets/providers/file.py ---- buildbot/secrets.orig/providers/file.py 1970-01-01 01:00:00.000000000 +0100 -+++ buildbot/secrets/providers/file.py 2017-03-28 21:52:03.947803965 +0200 -@@ -0,0 +1,82 @@ -+# This file is part of Buildbot. Buildbot is free software: you can -+# redistribute it and/or modify it under the terms of the GNU General Public -+# License as published by the Free Software Foundation, version 2. -+# -+# This program is distributed in the hope that it will be useful, but WITHOUT -+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -+# details. -+# -+# You should have received a copy of the GNU General Public License along with -+# this program; if not, write to the Free Software Foundation, Inc., 51 -+# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -+# -+# Copyright Buildbot Team Members -+""" -+file based provider -+""" -+from __future__ import absolute_import -+from __future__ import print_function -+ -+import os -+import stat -+ -+from buildbot import config -+from buildbot.secrets.providers.base import SecretProviderBase -+ -+ -+class SecretInAFile(SecretProviderBase): -+ """ -+ secret is stored in a separate file under the given directory name -+ """ -+ name = "SecretInAFile" -+ -+ def checkFileIsReadOnly(self, dirname, secretfile): -+ filepath = os.path.join(dirname, secretfile) -+ obs_stat = stat.S_IMODE(os.stat(filepath).st_mode) -+ if (obs_stat & 0o77) != 0 and os.name == "posix": -+ config.error("Permissions %s on file %s are too open." -+ " It is required that your secret files are NOT" -+ " accessible by others!" % (oct(obs_stat), -+ secretfile)) -+ -+ def checkSecretDirectoryIsAvailableAndReadable(self, dirname, suffixes): -+ if not os.access(dirname, os.F_OK): -+ config.error("directory %s does not exists" % dirname) -+ for secretfile in os.listdir(dirname): -+ for suffix in suffixes: -+ if secretfile.endswith(suffix): -+ self.checkFileIsReadOnly(dirname, secretfile) -+ -+ def loadSecrets(self, dirname, suffixes): -+ secrets = {} -+ for secretfile in os.listdir(dirname): -+ secretvalue = None -+ for suffix in suffixes: -+ if secretfile.endswith(suffix): -+ with open(os.path.join(dirname, secretfile)) as source: -+ secretvalue = source.read() -+ if suffix: -+ secretfile = secretfile[:-len(suffix)] -+ secrets[secretfile] = secretvalue -+ return secrets -+ -+ def checkConfig(self, dirname, suffixes=None): -+ self._dirname = dirname -+ if suffixes is None: -+ suffixes = [""] -+ self.checkSecretDirectoryIsAvailableAndReadable(dirname, -+ suffixes=suffixes) -+ -+ def reconfigService(self, dirname, suffixes=None): -+ self._dirname = dirname -+ self.secrets = {} -+ if suffixes is None: -+ suffixes = [""] -+ self.secrets = self.loadSecrets(self._dirname, suffixes=suffixes) -+ -+ def get(self, entry): -+ """ -+ get the value from the file identified by 'entry' -+ """ -+ return self.secrets.get(entry) -diff -rNu buildbot/secrets.orig/providers/vault.py buildbot/secrets/providers/vault.py ---- buildbot/secrets.orig/providers/vault.py 1970-01-01 01:00:00.000000000 +0100 -+++ buildbot/secrets/providers/vault.py 2017-03-28 21:52:03.947803965 +0200 -@@ -0,0 +1,67 @@ -+# This file is part of Buildbot. Buildbot is free software: you can -+# redistribute it and/or modify it under the terms of the GNU General Public -+# License as published by the Free Software Foundation, version 2. -+# -+# This program is distributed in the hope that it will be useful, but WITHOUT -+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS -+# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more -+# details. -+# -+# You should have received a copy of the GNU General Public License along with -+# this program; if not, write to the Free Software Foundation, Inc., 51 -+# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -+# -+# Copyright Buildbot Team Members -+""" -+vault based providers -+""" -+ -+from __future__ import absolute_import -+from __future__ import print_function -+ -+from twisted.internet import defer -+ -+from buildbot import config -+from buildbot.secrets.providers.base import SecretProviderBase -+from buildbot.util import httpclientservice -+ -+ -+class HashiCorpVaultSecretProvider(SecretProviderBase): -+ """ -+ basic provider where each secret is stored in Vault -+ """ -+ -+ name = 'SecretInVault' -+ -+ def checkConfig(self, vaultServer=None, vaultToken=None, secretsmount=None): -+ if not isinstance(vaultServer, str): -+ config.error("vaultServer must be a string while it is %s" % (type(vaultServer,))) -+ if not isinstance(vaultToken, str): -+ config.error("vaultToken must be a string while it is %s" % (type(vaultToken,))) -+ -+ @defer.inlineCallbacks -+ def reconfigService(self, vaultServer=None, vaultToken=None, secretsmount=None): -+ if secretsmount is None: -+ self.secretsmount = "secret" -+ else: -+ self.secretsmount = secretsmount -+ self.vaultServer = vaultServer -+ self.vaultToken = vaultToken -+ if vaultServer.endswith('/'): -+ vaultServer = vaultServer[:-1] -+ self._http = yield httpclientservice.HTTPClientService.getService( -+ self.master, self.vaultServer, headers={'X-Vault-Token': self.vaultToken}) -+ -+ @defer.inlineCallbacks -+ def get(self, entry): -+ """ -+ get the value from vault secret backend -+ """ -+ path = self.secretsmount + '/' + entry -+ proj = yield self._http.get('/v1/{0}'.format(path)) -+ code = yield proj.code -+ if code != 200: -+ raise KeyError("The key %s does not exist in Vault provider: request" -+ " return code:%d." % (entry, code)) -+ json = yield proj.json() -+ defer.returnValue(json.get(u'data', {}).get('value')) diff --git a/devel/buildbot/pkg-descr b/devel/buildbot/pkg-descr index 7bf41164ca9a..47f30cdeace2 100644 --- a/devel/buildbot/pkg-descr +++ b/devel/buildbot/pkg-descr @@ -17,6 +17,6 @@ their time with. Developers get immediate (and potentially public) feedback about their changes, encouraging them to be more careful about testing before checkin. -For more information, please see: http://buildbot.net/trac +For more information, please see: https://buildbot.net/trac -WWW: http://buildbot.net +WWW: https://buildbot.net diff --git a/devel/py-buildbot-grid-view/Makefile b/devel/py-buildbot-grid-view/Makefile new file mode 100644 index 000000000000..ac311ec2e046 --- /dev/null +++ b/devel/py-buildbot-grid-view/Makefile @@ -0,0 +1,21 @@ +# $FreeBSD$ + +PORTNAME= buildbot-grid-view +PORTVERSION= 0.9.11 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP + +MAINTAINER= rodrigc@FreeBSD.org +COMMENT= Continuous Integration Framework (Grid View) + +LICENSE= GPLv2 + +BUILD_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg +RUN_DEPENDS= buildbot-pkg>=${PORTVERSION}:devel/buildbot-pkg + +USES= python:2.7 +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/devel/py-buildbot-grid-view/distinfo b/devel/py-buildbot-grid-view/distinfo new file mode 100644 index 000000000000..2b0d5a56353a --- /dev/null +++ b/devel/py-buildbot-grid-view/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1506180944 +SHA256 (buildbot-grid-view-0.9.11.tar.gz) = f93088ba6ac063c4bd7400b2477c94e86a7531fc614c3965c18914dcc701812b +SIZE (buildbot-grid-view-0.9.11.tar.gz) = 638818 diff --git a/devel/py-buildbot-grid-view/pkg-descr b/devel/py-buildbot-grid-view/pkg-descr new file mode 100644 index 000000000000..901e99d8d16e --- /dev/null +++ b/devel/py-buildbot-grid-view/pkg-descr @@ -0,0 +1,6 @@ +This port is the Grid View Plugin for BuildBot. For the buildmaster, +install the devel/buildbot port. + +For more information, please see: https://buildbot.net/trac + +WWW: https://buildbot.net |