Makefile 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # $OpenBSD: Makefile,v 1.103 2017/05/11 09:25:27 ajacoutot Exp $
  2. # optional dependencies
  3. # https://github.com/saltstack/salt/blob/develop/doc/conf.py#L54
  4. # libvirt-python
  5. # py-GitPython
  6. # py-django
  7. # py-libcloud (cloud-requirements.txt)
  8. # py-mako
  9. # py-mongo
  10. # py-mysql
  11. # py-openssl
  12. # py-redis
  13. # rabbitmq
  14. COMMENT = remote execution and configuration management system
  15. MODPY_EGG_VERSION = 2016.11.5
  16. DISTNAME = salt-${MODPY_EGG_VERSION}
  17. CATEGORIES = sysutils net devel
  18. HOMEPAGE = http://saltstack.org/
  19. MAINTAINER = Antoine Jacoutot <ajacoutot@openbsd.org>
  20. # Apache 2.0
  21. PERMIT_PACKAGE_CDROM = Yes
  22. MODPY_PI = Yes
  23. MODULES = lang/python
  24. BUILD_DEPENDS = textproc/py-yaml \
  25. www/py-jinja2 \
  26. www/py-requests
  27. # requirements/base.txt
  28. RUN_DEPENDS = devel/py-futures \
  29. net/py-msgpack \
  30. textproc/py-MarkupSafe \
  31. textproc/py-yaml \
  32. www/py-jinja2 \
  33. www/py-requests \
  34. www/py-tornado
  35. # requirements/zeromq.txt
  36. RUN_DEPENDS += net/py-zmq \
  37. security/py-crypto
  38. # requirements/raet.txt (see pkg/DESCR)
  39. #RUN_DEPENDS += devel/py-ioflo \
  40. # net/py-raet
  41. # security/py-libnacl
  42. # salt/output/progress.py
  43. RUN_DEPENDS += devel/py-progressbar
  44. # salt/modules/x509.py
  45. RUN_DEPENDS += security/py-M2Crypto
  46. # max openfiles, soft: 3072, hard: 4096; DBus system session running...
  47. TEST_IS_INTERACTIVE = Yes
  48. PORTHOME = ${WRKDIST}
  49. TEST_DEPENDS = databases/py-mysql \
  50. devel/git \
  51. devel/py-gitpython \
  52. devel/py-pip \
  53. devel/py-six \
  54. devel/py-virtualenv \
  55. devel/subversion \
  56. net/py-libcloud \
  57. net/rabbitmq \
  58. sysutils/salt-testing \
  59. www/py-CherryPy
  60. pre-configure:
  61. sed -i 's,share/man,man,g' ${WRKSRC}/setup.py
  62. sed -i 's,^#user: root,user: _salt,' ${WRKSRC}/conf/{master,proxy}
  63. post-install:
  64. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples
  65. cp -R ${WRKSRC}/conf ${PREFIX}/share/examples/salt
  66. do-test:
  67. cd ${WRKSRC} && \
  68. ${MODPY_BIN} tests/runtests.py -v
  69. .include <bsd.port.mk>