Makefile 863 B

1234567891011121314151617181920212223242526272829303132333435
  1. # $OpenBSD: Makefile,v 1.8 2016/03/16 16:46:32 naddy Exp $
  2. COMMENT = HA and replication cluster management for PostgreSQL
  3. DISTNAME = repmgr-3.0.3
  4. CATEGORIES = databases
  5. HOMEPAGE = http://www.repmgr.org/
  6. # GPLv3
  7. PERMIT_PACKAGE_CDROM = Yes
  8. WANTLIB += c crypto m pq pthread readline ssl termcap xml2 z
  9. MASTER_SITES = ${HOMEPAGE}download/
  10. USE_GMAKE = Yes
  11. MAKE_FLAGS = USE_PGXS=1
  12. # for getopt_long.h
  13. BUILD_DEPENDS = databases/postgresql,-server
  14. LIB_DEPENDS = databases/postgresql
  15. RUN_DEPENDS = net/rsync
  16. NO_TEST = Yes
  17. pre-configure:
  18. ${SUBST_CMD} ${WRKSRC}/config.c
  19. post-install:
  20. ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/repmgr
  21. ${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/repmgr
  22. ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/repmgr
  23. ${INSTALL_DATA} ${WRKSRC}/repmgr.conf.sample ${PREFIX}/share/examples/repmgr/repmgr.conf
  24. .include <bsd.port.mk>