From 5c84da1d21893c0b2c30b7b879fa00736f049492 Mon Sep 17 00:00:00 2001 From: adam Date: Thu, 24 Jan 2019 13:58:17 +0000 Subject: [PATCH] py-salt-pepper: added version 0.7.5 Pepper contains a Python library and CLI scripts for accessing a remote salt-api instance. pepperlib abstracts the HTTP calls to salt-api so existing Python projects can easily integrate with a remote Salt installation just by instantiating a class. The pepper CLI script allows users to execute Salt commands from computers that are external to computers running the salt-master or salt-minion daemons as though they were running Salt locally. The long-term goal is to add additional CLI scripts maintain the same interface as Salt's own CLI scripts (salt, salt-run, salt-key, etc). --- sysutils/Makefile | 3 ++- sysutils/py-salt-pepper/ALTERNATIVES | 1 + sysutils/py-salt-pepper/DESCR | 11 +++++++++++ sysutils/py-salt-pepper/Makefile | 22 ++++++++++++++++++++++ sysutils/py-salt-pepper/PLIST | 24 ++++++++++++++++++++++++ sysutils/py-salt-pepper/distinfo | 6 ++++++ 6 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 sysutils/py-salt-pepper/ALTERNATIVES create mode 100644 sysutils/py-salt-pepper/DESCR create mode 100644 sysutils/py-salt-pepper/Makefile create mode 100644 sysutils/py-salt-pepper/PLIST create mode 100644 sysutils/py-salt-pepper/distinfo diff --git a/sysutils/Makefile b/sysutils/Makefile index 273fe5f22857..d54c32c70dee 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.796 2019/01/22 17:19:07 martin Exp $ +# $NetBSD: Makefile,v 1.797 2019/01/24 13:58:17 adam Exp $ # COMMENT= System utilities @@ -485,6 +485,7 @@ SUBDIR+= py-pefile SUBDIR+= py-psutil SUBDIR+= py-ptyprocess SUBDIR+= py-pyinotify +SUBDIR+= py-salt-pepper SUBDIR+= py-setconf SUBDIR+= py-setproctitle SUBDIR+= py-structlog diff --git a/sysutils/py-salt-pepper/ALTERNATIVES b/sysutils/py-salt-pepper/ALTERNATIVES new file mode 100644 index 000000000000..e10b8aea5d23 --- /dev/null +++ b/sysutils/py-salt-pepper/ALTERNATIVES @@ -0,0 +1 @@ +bin/pepper @PREFIX@/bin/pepper-@PYVERSSUFFIX@ diff --git a/sysutils/py-salt-pepper/DESCR b/sysutils/py-salt-pepper/DESCR new file mode 100644 index 000000000000..984ce11682ac --- /dev/null +++ b/sysutils/py-salt-pepper/DESCR @@ -0,0 +1,11 @@ +Pepper contains a Python library and CLI scripts for accessing a remote +salt-api instance. + +pepperlib abstracts the HTTP calls to salt-api so existing Python projects can +easily integrate with a remote Salt installation just by instantiating a class. + +The pepper CLI script allows users to execute Salt commands from computers that +are external to computers running the salt-master or salt-minion daemons as +though they were running Salt locally. The long-term goal is to add additional +CLI scripts maintain the same interface as Salt's own CLI scripts (salt, +salt-run, salt-key, etc). diff --git a/sysutils/py-salt-pepper/Makefile b/sysutils/py-salt-pepper/Makefile new file mode 100644 index 000000000000..4d56f78b46b9 --- /dev/null +++ b/sysutils/py-salt-pepper/Makefile @@ -0,0 +1,22 @@ +# $NetBSD: Makefile,v 1.1 2019/01/24 13:58:17 adam Exp $ + +DISTNAME= salt-pepper-0.7.5 +PKGNAME= ${PYPKGPREFIX}-${DISTNAME} +CATEGORIES= sysutils python +MASTER_SITES= ${MASTER_SITE_PYPI:=s/salt-pepper/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://github.com/saltstack/pepper +COMMENT= CLI front-end to a running salt-api system +LICENSE= apache-2.0 + +BUILD_DEPENDS+= ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm + +USE_LANGUAGES= # none + +post-install: + cd ${DESTDIR}${PREFIX}/bin && \ + ${MV} pepper pepper-${PYVERSSUFFIX} || ${TRUE} + +.include "../../lang/python/egg.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/sysutils/py-salt-pepper/PLIST b/sysutils/py-salt-pepper/PLIST new file mode 100644 index 000000000000..b62e8a09963a --- /dev/null +++ b/sysutils/py-salt-pepper/PLIST @@ -0,0 +1,24 @@ +@comment $NetBSD: PLIST,v 1.1 2019/01/24 13:58:17 adam Exp $ +bin/pepper-${PYVERSSUFFIX} +${PYSITELIB}/${EGG_INFODIR}/PKG-INFO +${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt +${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt +${PYSITELIB}/${EGG_INFODIR}/top_level.txt +${PYSITELIB}/pepper/__init__.py +${PYSITELIB}/pepper/__init__.pyc +${PYSITELIB}/pepper/__init__.pyo +${PYSITELIB}/pepper/cli.py +${PYSITELIB}/pepper/cli.pyc +${PYSITELIB}/pepper/cli.pyo +${PYSITELIB}/pepper/exceptions.py +${PYSITELIB}/pepper/exceptions.pyc +${PYSITELIB}/pepper/exceptions.pyo +${PYSITELIB}/pepper/libpepper.py +${PYSITELIB}/pepper/libpepper.pyc +${PYSITELIB}/pepper/libpepper.pyo +${PYSITELIB}/pepper/retcode.py +${PYSITELIB}/pepper/retcode.pyc +${PYSITELIB}/pepper/retcode.pyo +${PYSITELIB}/pepper/script.py +${PYSITELIB}/pepper/script.pyc +${PYSITELIB}/pepper/script.pyo diff --git a/sysutils/py-salt-pepper/distinfo b/sysutils/py-salt-pepper/distinfo new file mode 100644 index 000000000000..a46f8f3b3387 --- /dev/null +++ b/sysutils/py-salt-pepper/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2019/01/24 13:58:17 adam Exp $ + +SHA1 (salt-pepper-0.7.5.tar.gz) = 9514242be551752eaae23115e835bdbade2de3fe +RMD160 (salt-pepper-0.7.5.tar.gz) = d27939d8d870d6be0858a17170b303342a088ec2 +SHA512 (salt-pepper-0.7.5.tar.gz) = 740395fc01ead459e26b1445449ab6f46ccc65947a151dbd1f644c126d00f0486b6ae45ae16d835e0192f152c503081f3a3828b89f07bbcd7fe8659401799c31 +Size (salt-pepper-0.7.5.tar.gz) = 21742 bytes