Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. # $OpenBSD: Makefile,v 1.13 2017/05/27 19:57:06 ajacoutot Exp $
  2. PORTROACH= limit:^4
  3. COMMENT-main= fast, scalable, and reliable data warehouse for Puppet
  4. COMMENT-plugin= PuppetDB terminus plugin
  5. V= 4.4.0
  6. DISTNAME= puppetdb-$V
  7. PKGNAME-main= ${DISTNAME}
  8. PKGNAME-plugin= puppetdb-termini-$V
  9. CATEGORIES= databases
  10. REVISION-main= 1
  11. REVISION-plugin=1
  12. HOMEPAGE= http://docs.puppetlabs.com/puppetdb/latest/
  13. MAINTAINER= Sebastian Reitenbach <sebastia@openbsd.org>
  14. MASTER_SITES= http://downloads.puppetlabs.com/puppetdb/
  15. # Apachev2
  16. PERMIT_PACKAGE_CDROM= Yes
  17. MODULES= java \
  18. lang/ruby
  19. MODJAVA_VER= 1.8+
  20. MULTI_PACKAGES= -main -plugin
  21. BUILD_DEPENDS = sysutils/coreutils
  22. RUN_DEPENDS-plugin=sysutils/ruby-puppet/4>=4.2.0
  23. RUN_DEPENDS-main=${BASE_PKGPATH},-plugin=$V \
  24. ${MODJAVA_RUN_DEPENDS} \
  25. java/javaPathHelper \
  26. shells/bash
  27. MAKE_FLAGS += confdir="share/examples/puppetdb/" \
  28. datadir="share" \
  29. bindir="bin" \
  30. rubylibdir="${MODRUBY_SITEDIR}" \
  31. DESTDIR="${PREFIX}/"
  32. NO_BUILD= Yes
  33. NO_TEST= Yes
  34. do-configure:
  35. ${SUBST_CMD} ${WRKSRC}/ext/bin/puppetdb \
  36. ${WRKSRC}/ext/cli/ssl-setup \
  37. ${WRKSRC}/ext/config/conf.d/*.ini
  38. sed -i 's,/bin/bash,${LOCALBASE}/bin/bash,g;' \
  39. ${WRKSRC}/ext/bin/puppetdb \
  40. ${WRKSRC}/ext/cli/*
  41. do-install:
  42. cd ${WRKSRC} && ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} \
  43. install-puppetdb install-puppetdb-termini
  44. rm ${PREFIX}/share/puppetdb/ezbake*
  45. .include <bsd.port.mk>