aboutsummaryrefslogtreecommitdiffstats
path: root/databases/pgpool-II-30/Makefile
blob: afe67faa9292724c0743bc594e8a7d03ef3a12d3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# Created by: Choe, Cheng-Dae <whitekid@gmail.com>
# $FreeBSD$

PORTNAME=   pgpool-II
PORTVERSION=    3.0.4
PORTREVISION=   1
CATEGORIES= databases
MASTER_SITES=   http://pgfoundry.org/frs/download.php/3076/
PKGNAMESUFFIX=  30

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

CONFLICTS=  pgpool-3.* pgpool-II-3.* pgpool-II-22-* 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

post-patch:
    @${REINPLACE_CMD} -e 's| pg_config| ${LOCALBASE}/bin/pg_config|g' \
    ${WRKSRC}/sql/pgpool-recovery/Makefile

post-build:
    @cd ${WRKSRC}/sql/pgpool-recovery && ${SETENV} ${MAKE_ENV} ${MAKE_CMD}

post-install:
    echo "--- ==="
    -cat `pg_config --pgxs`
    echo "--- ==="
    @cd ${WRKSRC}/sql/pgpool-recovery && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} DESTDIR=${STAGEDIR} ${INSTALL_TARGET}
    ${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
    @${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}

.include <bsd.port.mk>