Makefile 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. # $OpenBSD: Makefile,v 1.42 2017/05/27 19:57:06 ajacoutot Exp $
  2. PORTROACH= limit:^2
  3. COMMENT-main= fast, scalable, and reliable data warehouse for Puppet
  4. COMMENT-plugin= PuppetDB terminus plugin
  5. V= 2.3.8
  6. DISTNAME= puppetdb-$V
  7. PKGNAME-main= ${DISTNAME}
  8. PKGNAME-plugin= puppetdb-terminus-$V
  9. CATEGORIES= databases
  10. REVISION-main= 4
  11. REVISION-plugin=3
  12. HOMEPAGE= http://docs.puppetlabs.com/puppetdb/latest/
  13. MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
  14. MASTER_SITES= http://downloads.puppetlabs.com/puppetdb/
  15. # Apache
  16. PERMIT_PACKAGE_CDROM= Yes
  17. MODULES= java \
  18. lang/ruby
  19. MODJAVA_VER= 1.7+
  20. MODRUBY_REV= 2.2
  21. MULTI_PACKAGES= -main -plugin
  22. RUN_DEPENDS-plugin=sysutils/ruby-puppet/3>=3.5.1
  23. RUN_DEPENDS-main=${BASE_PKGPATH},-plugin \
  24. ${MODJAVA_RUN_DEPENDS} \
  25. java/javaPathHelper \
  26. shells/bash
  27. NO_BUILD= Yes
  28. NO_TEST= Yes
  29. SCRIPTS= anonymize export foreground import ssl-setup
  30. do-configure:
  31. ${SUBST_CMD} ${WRKSRC}/Rakefile \
  32. ${WRKSRC}/tasks/install.rake \
  33. ${WRKSRC}/ext/files/config.ini \
  34. ${WRKSRC}/ext/files/puppetdb.env
  35. .for s in ${SCRIPTS}
  36. ${SUBST_CMD} ${WRKSRC}/ext/files/puppetdb-$s
  37. .endfor
  38. sed -i -e 's,/bin/bash,${LOCALBASE}/bin/bash,g;' \
  39. -e 's,/usr/libexec,${LOCALBASE}/libexec,g;' \
  40. ${WRKSRC}/ext/files/puppetdb*
  41. do-install:
  42. ${INSTALL_DATA_DIR} ${PREFIX}/share/{,examples/}puppetdb
  43. ${INSTALL_DATA_DIR} ${PREFIX}/libexec/puppetdb/
  44. ${INSTALL_SCRIPT} ${WRKSRC}/ext/files/puppetdb ${PREFIX}/bin/
  45. .for s in ${SCRIPTS}
  46. ${INSTALL_SCRIPT} ${WRKSRC}/ext/files/puppetdb-$s ${PREFIX}/libexec/puppetdb/
  47. .endfor
  48. ${INSTALL_DATA} ${WRKSRC}/ext/files/puppetdb.env ${PREFIX}/libexec/puppetdb/
  49. .for c in config.ini database.ini jetty.ini repl.ini
  50. ${INSTALL_DATA} ${WRKSRC}/ext/files/$c ${PREFIX}/share/examples/puppetdb/
  51. .endfor
  52. ${INSTALL_DATA} ${WRKSRC}/ext/files/logback.xml \
  53. ${PREFIX}/share/examples/puppetdb/
  54. ${INSTALL_DATA} ${WRKSRC}/puppetdb.jar ${PREFIX}/share/puppetdb/
  55. cd ${PREFIX}/share/puppetdb/ && ln -sf /var/db/puppetdb/db db
  56. cd ${PREFIX}/share/puppetdb/ && ln -sf /var/db/puppetdb/mq mq
  57. cd ${PREFIX}/share/puppetdb/ && ln -sf /var/db/puppetdb/state state
  58. ${INSTALL_DATA_DIR} ${PREFIX}/${MODRUBY_SITEDIR}
  59. cd ${WRKSRC}/ext/master/lib/ && pax -rw . ${PREFIX}/${MODRUBY_SITEDIR}
  60. .include <bsd.port.mk>