mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-18 03:46:03 +00:00
0f48c6db01
As the result of a recent exp-run for postgresql 9.3, several ports failed to build as a result. Most could likely be fixed by updating the port to a later available version. Until that happens, set the maximum version of pgsql to 9.2 for these ports. * pg_rman (1.23) : version 1.27 is available * pg_statsinfo (2.4.1) : version 2.5.0 available, works on pgsql 9.3 * pgpool-II (3.1.6) : version 3.4 available, works on pgsql 9.3 * pgpool-II30 (3.0.4) PR: 195281
80 lines
2.1 KiB
Makefile
80 lines
2.1 KiB
Makefile
# Created by: Choe, Cheng-Dae <whitekid@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pgpool-II
|
|
PORTVERSION= 3.1.6
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= LOCAL/kuriyama \
|
|
http://www.pgpool.net/mediawiki/images/
|
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
|
COMMENT= Connection pool server for PostgreSQL
|
|
|
|
LICENSE= MIT
|
|
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
USES= gmake pgsql:9.2- libtool
|
|
USE_LDCONFIG= yes
|
|
USE_OPENSSL= yes
|
|
CONFIGURE_ARGS= --with-openssl
|
|
|
|
CONFLICTS= pgpool-3.* pgpool-II-22-* pgpool-II-23-* pgpool-II-23-*
|
|
USE_RC_SUBR= pgpool
|
|
|
|
PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README README.euc_jp
|
|
PORTDOCS+= TODO
|
|
PORTDOCShtml= pgpool-en.html pgpool-ja.html pgpool.css
|
|
PORTDOCShtml+= tutorial-en.html tutorial-ja.html
|
|
|
|
OPTIONS_DEFINE+= DOCS SSL
|
|
SSL_DESC= Build with OpenSSL support
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
USE_OPENSSL= yes
|
|
CONFIGURE_ARGS+=--with-openssl
|
|
.endif
|
|
|
|
.if exists(${LOCALBASE}/include/postgresql/server/replication/walreceiver.h)
|
|
FUNCTIONS= pgpool-recovery pgpool-regclass pgpool-walrecrunning
|
|
PLIST_SUB= PGSQL9=""
|
|
.else
|
|
FUNCTIONS= pgpool-recovery pgpool-regclass
|
|
PLIST_SUB= PGSQL9="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's| pg_config| ${LOCALBASE}/bin/pg_config|g' \
|
|
${WRKSRC}/sql/pgpool-recovery/Makefile
|
|
|
|
post-build:
|
|
.for f in ${FUNCTIONS}
|
|
@cd ${WRKSRC}/sql/${f} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}
|
|
.endfor
|
|
|
|
post-install:
|
|
.for f in ${FUNCTIONS}
|
|
@cd ${WRKSRC}/sql/${f} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} DESTDIR=${STAGEDIR} ${INSTALL_TARGET}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/sample/dist_def_pgbench.sql ${STAGEDIR}${DATADIR}
|
|
${INSTALL_DATA} ${WRKSRC}/sample/replicate_def_pgbench.sql ${STAGEDIR}${DATADIR}
|
|
${MKDIR} ${STAGEDIR}${DATADIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
.for f in pgpool_recovery pgpool_recovery_pitr pgpool_remote_start
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sample/${f} ${STAGEDIR}${EXAMPLESDIR}
|
|
.endfor
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for f in ${PORTDOCS}
|
|
${INSTALL_MAN} ${WRKSRC}/$f ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
.for f in ${PORTDOCShtml}
|
|
${INSTALL_MAN} ${WRKSRC}/doc/$f ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
PORTDOCS+= ${PORTDOCShtml}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|