Makefile 810 B

123456789101112131415161718192021222324252627282930313233
  1. # $OpenBSD: Makefile,v 1.12 2017/02/02 23:01:30 sthen Exp $
  2. COMMENT = next-generation web UI for icinga
  3. GH_ACCOUNT = Icinga
  4. GH_PROJECT = icingaweb2
  5. GH_TAGNAME = v2.4.1
  6. PKGNAME = icinga-web2-${GH_TAGNAME:S/v//}
  7. REVISION = 0
  8. MODULES= lang/php
  9. RUN_DEPENDS = lang/php/${MODPHP_VERSION},-intl \
  10. php-pdo_mysql-${MODPHP_VSPEC}|php-pdo_pgsql-${MODPHP_VSPEC}:lang/php/${MODPHP_VERSION},-pdo_mysql
  11. NO_TEST = Yes
  12. NO_BUILD = Yes
  13. PREFIX = ${VARBASE}/www
  14. do-configure:
  15. @sed -i 's,^#!/usr/bin/env php.*,#!${MODPHP_BIN},' \
  16. ${WRKSRC}/bin/icingacli
  17. do-install:
  18. ${INSTALL_DATA_DIR} ${PREFIX}/icinga-web2
  19. cd ${WRKSRC}; pax -rw ./ ${PREFIX}/icinga-web2/
  20. find ${PREFIX}/icinga-web2 -name '*.orig' | xargs rm
  21. ln -s ${TRUEPREFIX}/icinga-web2/bin/icingacli \
  22. ${WRKINST}/usr/local/bin/
  23. .include <bsd.port.mk>