2018-01-11 19:27:01 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.115 2018/01/11 19:27:10 rpe Exp $
|
2014-05-27 14:35:50 +00:00
|
|
|
|
|
|
|
# optional dependencies
|
2016-11-23 09:41:20 +00:00
|
|
|
# https://github.com/saltstack/salt/blob/develop/doc/conf.py#L54
|
2014-05-27 14:35:50 +00:00
|
|
|
# libvirt-python
|
|
|
|
# py-GitPython
|
|
|
|
# py-django
|
2015-06-01 07:58:30 +00:00
|
|
|
# py-libcloud (cloud-requirements.txt)
|
2014-05-27 14:35:50 +00:00
|
|
|
# py-mako
|
|
|
|
# py-mongo
|
|
|
|
# py-mysql
|
|
|
|
# py-openssl
|
|
|
|
# py-redis
|
|
|
|
# rabbitmq
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2014-05-27 14:16:35 +00:00
|
|
|
COMMENT = remote execution and configuration management system
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2017-10-10 05:19:43 +00:00
|
|
|
MODPY_EGG_VERSION = 2017.7.2
|
2014-05-27 14:16:35 +00:00
|
|
|
DISTNAME = salt-${MODPY_EGG_VERSION}
|
2018-01-11 19:27:01 +00:00
|
|
|
REVISION = 7
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2014-05-27 14:16:35 +00:00
|
|
|
CATEGORIES = sysutils net devel
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2014-05-27 14:16:35 +00:00
|
|
|
HOMEPAGE = http://saltstack.org/
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2014-05-27 14:16:35 +00:00
|
|
|
MAINTAINER = Antoine Jacoutot <ajacoutot@openbsd.org>
|
2014-05-27 14:12:43 +00:00
|
|
|
|
2013-08-10 13:39:26 +00:00
|
|
|
# Apache 2.0
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
2015-04-02 14:21:12 +00:00
|
|
|
MODPY_PI = Yes
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2014-05-27 14:16:35 +00:00
|
|
|
MODULES = lang/python
|
2014-05-27 14:35:50 +00:00
|
|
|
|
2014-09-08 07:56:37 +00:00
|
|
|
BUILD_DEPENDS = textproc/py-yaml \
|
2015-01-16 13:19:48 +00:00
|
|
|
www/py-jinja2 \
|
|
|
|
www/py-requests
|
2014-09-08 07:56:37 +00:00
|
|
|
|
2015-09-26 09:25:50 +00:00
|
|
|
# requirements/base.txt
|
|
|
|
RUN_DEPENDS = devel/py-futures \
|
|
|
|
net/py-msgpack \
|
2015-01-07 09:57:39 +00:00
|
|
|
textproc/py-MarkupSafe \
|
2014-05-27 14:16:35 +00:00
|
|
|
textproc/py-yaml \
|
2015-01-07 09:57:39 +00:00
|
|
|
www/py-jinja2 \
|
2015-09-26 09:25:50 +00:00
|
|
|
www/py-requests \
|
|
|
|
www/py-tornado
|
|
|
|
|
|
|
|
# requirements/zeromq.txt
|
|
|
|
RUN_DEPENDS += net/py-zmq \
|
|
|
|
security/py-crypto
|
|
|
|
|
|
|
|
# requirements/raet.txt (see pkg/DESCR)
|
|
|
|
#RUN_DEPENDS += devel/py-ioflo \
|
|
|
|
# net/py-raet
|
|
|
|
# security/py-libnacl
|
|
|
|
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2015-06-01 07:58:30 +00:00
|
|
|
# salt/output/progress.py
|
|
|
|
RUN_DEPENDS += devel/py-progressbar
|
|
|
|
|
2015-09-26 09:25:50 +00:00
|
|
|
# salt/modules/x509.py
|
|
|
|
RUN_DEPENDS += security/py-M2Crypto
|
2015-06-01 07:58:30 +00:00
|
|
|
|
2016-11-23 09:41:20 +00:00
|
|
|
# max openfiles, soft: 3072, hard: 4096; DBus system session running...
|
|
|
|
TEST_IS_INTERACTIVE = Yes
|
2014-06-17 13:16:15 +00:00
|
|
|
PORTHOME = ${WRKDIST}
|
2014-09-03 08:53:49 +00:00
|
|
|
TEST_DEPENDS = databases/py-mysql \
|
|
|
|
devel/git \
|
2014-09-16 09:32:12 +00:00
|
|
|
devel/py-gitpython \
|
2014-09-03 08:53:49 +00:00
|
|
|
devel/py-pip \
|
2015-05-07 09:15:55 +00:00
|
|
|
devel/py-six \
|
2014-09-03 08:53:49 +00:00
|
|
|
devel/py-virtualenv \
|
|
|
|
devel/subversion \
|
|
|
|
net/py-libcloud \
|
|
|
|
net/rabbitmq \
|
2016-11-23 09:41:20 +00:00
|
|
|
sysutils/salt-testing \
|
|
|
|
www/py-CherryPy
|
2013-10-08 07:02:34 +00:00
|
|
|
|
2017-12-25 13:06:15 +00:00
|
|
|
# https://github.com/saltstack/salt/pull/45164
|
|
|
|
post-extract:
|
|
|
|
cp ${FILESDIR}/vmctl.py ${WRKSRC}/salt/modules/
|
|
|
|
|
2014-05-27 14:12:43 +00:00
|
|
|
pre-configure:
|
2016-01-28 06:56:56 +00:00
|
|
|
sed -i 's,share/man,man,g' ${WRKSRC}/setup.py
|
2016-01-28 16:33:35 +00:00
|
|
|
sed -i 's,^#user: root,user: _salt,' ${WRKSRC}/conf/{master,proxy}
|
2013-08-10 13:39:26 +00:00
|
|
|
|
2013-08-22 18:14:46 +00:00
|
|
|
post-install:
|
2015-05-07 09:15:55 +00:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples
|
|
|
|
cp -R ${WRKSRC}/conf ${PREFIX}/share/examples/salt
|
2013-08-22 18:14:46 +00:00
|
|
|
|
2014-05-27 14:12:43 +00:00
|
|
|
do-test:
|
2014-09-05 08:27:20 +00:00
|
|
|
cd ${WRKSRC} && \
|
|
|
|
${MODPY_BIN} tests/runtests.py -v
|
2013-08-10 13:39:26 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|