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-07-05 05:23:09 +02:00
|
|
|
PORTVERSION= 3.0.4
|
2005-11-03 13:42:48 +01:00
|
|
|
CATEGORIES= databases
|
2011-07-05 05:23:09 +02:00
|
|
|
MASTER_SITES= http://pgfoundry.org/frs/download.php/3076/
|
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
|
|
|
|
|
2011-09-23 18:07:55 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2005-11-03 13:42:48 +01:00
|
|
|
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-09-23 18:07:55 +02:00
|
|
|
NO_LATEST_LINK= yes
|
2005-11-03 13:42:48 +01:00
|
|
|
|
2011-09-23 18:07:55 +02:00
|
|
|
CONFLICTS= pgpool-3.* pgpool-II-2.* pgpool-II-3.1.*
|
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>
|