2005-11-03 13:42:48 +01:00
|
|
|
# New ports collection makefile for: pgpool
|
|
|
|
# Date created: 2005-10-19
|
|
|
|
# Whom: Choe, Cheng-Dae <whitekid@gmail.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2007-04-16 05:43:42 +02:00
|
|
|
PORTNAME= pgpool-II
|
2011-02-25 02:31:19 +01:00
|
|
|
PORTVERSION= 3.0.3
|
2005-11-03 13:42:48 +01:00
|
|
|
CATEGORIES= databases
|
2011-02-25 02:31:19 +01:00
|
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/2958/
|
2005-11-03 13:42:48 +01:00
|
|
|
|
2007-04-16 05:43:42 +02:00
|
|
|
MAINTAINER= kuriyama@FreeBSD.org
|
2005-11-03 13:42:48 +01:00
|
|
|
COMMENT= A connection pool server for PostgreSQL
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2007-04-16 05:43:42 +02:00
|
|
|
USE_PGSQL= yes
|
2009-03-08 23:59:44 +01:00
|
|
|
USE_LDCONFIG= yes
|
2011-02-25 02:31:19 +01:00
|
|
|
LICENSE= BSD
|
2005-11-03 13:42:48 +01:00
|
|
|
|
2010-10-13 13:49:12 +02:00
|
|
|
CONFLICTS= pgpool-3.* pgpool-II-*
|
2006-04-14 20:40:59 +02:00
|
|
|
USE_RC_SUBR= pgpool
|
|
|
|
|
2007-04-16 05:43:42 +02:00
|
|
|
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
|
2005-11-03 13:42:48 +01:00
|
|
|
|
2006-05-15 11:14:34 +02:00
|
|
|
MAN8= pgpool.8
|
|
|
|
|
2007-07-14 23:56:54 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|echo aout|echo elf|g' \
|
|
|
|
${WRKSRC}/configure
|
2008-12-31 16:10:50 +01:00
|
|
|
@${REINPLACE_CMD} -e 's| pg_config| ${LOCALBASE}/bin/pg_config|g' \
|
|
|
|
${WRKSRC}/sql/pgpool-recovery/Makefile
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/sql/pgpool-recovery && ${GMAKE}
|
2007-07-14 23:56:54 +02:00
|
|
|
|
2005-11-03 13:42:48 +01:00
|
|
|
post-install:
|
2009-03-08 23:59:44 +01:00
|
|
|
@cd ${WRKSRC}/sql/pgpool-recovery && ${GMAKE} ${INSTALL_TARGET}
|
2008-03-07 02:58:15 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/dist_def_pgbench.sql ${DATADIR}
|
2008-12-31 16:10:50 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/replicate_def_pgbench.sql ${DATADIR}
|
2011-02-25 02:31:19 +01:00
|
|
|
${MKDIR} ${DATADIR} ${EXAMPLESDIR}
|
2008-03-07 02:58:15 +01:00
|
|
|
.for f in pgpool_recovery pgpool_recovery_pitr pgpool_remote_start
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/sample/${f} ${EXAMPLESDIR}
|
|
|
|
.endfor
|
2005-11-03 13:42:48 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-04-14 20:40:59 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-11-03 13:42:48 +01:00
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/$f ${DOCSDIR}
|
|
|
|
.endfor
|
2007-04-16 05:43:42 +02:00
|
|
|
.for f in ${PORTDOCShtml}
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/$f ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
PORTDOCS+= ${PORTDOCShtml}
|
2005-11-03 13:42:48 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|