aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2013-01-28 05:07:09 +0800
committerjgh <jgh@FreeBSD.org>2013-01-28 05:07:09 +0800
commitbc1587889a1c632b77b37389912455c03957e03b (patch)
treee59d5a2c4c44eae8132be866d4b436bb53c156e3
parent2535bf3cb74efd762b118ade121fc5ebfa297dcc (diff)
downloadfreebsd-ports-gnome-bc1587889a1c632b77b37389912455c03957e03b.tar.gz
freebsd-ports-gnome-bc1587889a1c632b77b37389912455c03957e03b.tar.zst
freebsd-ports-gnome-bc1587889a1c632b77b37389912455c03957e03b.zip
- add new port: sysutils/py-salt-api
Salt API : Expose the fundamental aspects of Salt control to external sources ============================================================================= Salt API is a modular interface on top of Salt that can provide a variety of entry points into a running Salt system. WWW: http://saltstack.org PR: 175512 Submitted by: christer.edwards@gmail.com
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/py-salt-api/Makefile30
-rw-r--r--sysutils/py-salt-api/distinfo2
-rw-r--r--sysutils/py-salt-api/files/patch-setup.py14
-rw-r--r--sysutils/py-salt-api/pkg-descr7
-rw-r--r--sysutils/py-salt-api/pkg-plist31
6 files changed, 85 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 0aacfc64e5a6..c6cbcfe0b339 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -728,6 +728,7 @@
SUBDIR += py-psutil
SUBDIR += py-ranger
SUBDIR += py-salt
+ SUBDIR += py-salt-api
SUBDIR += py-salt-cloud
SUBDIR += py-stdiff
SUBDIR += py-supervisor
diff --git a/sysutils/py-salt-api/Makefile b/sysutils/py-salt-api/Makefile
new file mode 100644
index 000000000000..60b2a088d5c8
--- /dev/null
+++ b/sysutils/py-salt-api/Makefile
@@ -0,0 +1,30 @@
+# $FreeBSD$
+
+PORTNAME= salt-api
+PORTVERSION= 0.7.5
+CATEGORIES= sysutils python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= christer.edwards@gmail.com
+COMMENT= Exposes the fundamental aspects of Salt control to external sources
+
+LICENSE= AL2
+
+FETCH_ARGS= -pRr
+USE_PYTHON= 2.6-2.7
+USE_PYDISTUTILS= yes
+
+SUB_LIST+= PYTHON_CMD=${PYTHON_CMD}
+
+MAN1= salt-api.1
+MAN7= salt-api.7
+
+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}salt:${PORTSDIR}/sysutils/py-salt
+
+RUN_DEPENDS:= ${BUILD_DEPENDS}
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>
diff --git a/sysutils/py-salt-api/distinfo b/sysutils/py-salt-api/distinfo
new file mode 100644
index 000000000000..dea644d90842
--- /dev/null
+++ b/sysutils/py-salt-api/distinfo
@@ -0,0 +1,2 @@
+SHA256 (salt-api-0.7.5.tar.gz) = 5057c2468aea492607addf694033f8d36796cf55bfd6ff7abfc277842edb51a1
+SIZE (salt-api-0.7.5.tar.gz) = 33401
diff --git a/sysutils/py-salt-api/files/patch-setup.py b/sysutils/py-salt-api/files/patch-setup.py
new file mode 100644
index 000000000000..42bd2ddf4f53
--- /dev/null
+++ b/sysutils/py-salt-api/files/patch-setup.py
@@ -0,0 +1,14 @@
+--- setup.py 2013-01-22 09:29:51.251688608 -0700
++++ setup.py-new 2013-01-22 09:35:20.608700323 -0700
+@@ -43,9 +43,9 @@
+ ],
+ package_data={
+ 'saltapi.netapi.rest_cherrypy': ['tmpl/*']},
+- data_files=[('share/man/man1',
++ data_files=[('man/man1',
+ ['doc/man/salt-api.1']),
+- ('share/man/man7',
++ ('man/man7',
+ ['doc/man/salt-api.7'])],
+ scripts=['scripts/salt-api'],
+ test_suite='unittest2.collector' if 'unittest2' in locals() else None)
diff --git a/sysutils/py-salt-api/pkg-descr b/sysutils/py-salt-api/pkg-descr
new file mode 100644
index 000000000000..8a822dab157b
--- /dev/null
+++ b/sysutils/py-salt-api/pkg-descr
@@ -0,0 +1,7 @@
+Salt API : Expose the fundamental aspects of Salt control to external sources
+=============================================================================
+
+Salt API is a modular interface on top of Salt that can provide a variety of
+entry points into a running Salt system.
+
+WWW: http://saltstack.org
diff --git a/sysutils/py-salt-api/pkg-plist b/sysutils/py-salt-api/pkg-plist
new file mode 100644
index 000000000000..1cb3b6973817
--- /dev/null
+++ b/sysutils/py-salt-api/pkg-plist
@@ -0,0 +1,31 @@
+bin/salt-api
+%%PYTHON_SITELIBDIR%%/saltapi/__init__.py
+%%PYTHON_SITELIBDIR%%/saltapi/__init__.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/__init__.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/cli.py
+%%PYTHON_SITELIBDIR%%/saltapi/cli.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/cli.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/client.py
+%%PYTHON_SITELIBDIR%%/saltapi/client.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/client.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/config.py
+%%PYTHON_SITELIBDIR%%/saltapi/config.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/config.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/loader.py
+%%PYTHON_SITELIBDIR%%/saltapi/loader.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/loader.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/__init__.py
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/__init__.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/__init__.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_cherrypy/__init__.py
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_cherrypy/__init__.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_cherrypy/__init__.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_flask.py
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_flask.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_flask.pyo
+%%PYTHON_SITELIBDIR%%/saltapi/version.py
+%%PYTHON_SITELIBDIR%%/saltapi/version.pyc
+%%PYTHON_SITELIBDIR%%/saltapi/version.pyo
+@dirrm %%PYTHON_SITELIBDIR%%/saltapi/netapi
+@dirrm %%PYTHON_SITELIBDIR%%/saltapi/netapi/rest_cherrypy
+@dirrm %%PYTHON_SITELIBDIR%%/saltapi