blob: 9344681a4bf1ca2c6e1c81f418c4d4f8ebe27c4e (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
|
# New ports collection makefile for: pgcluster
# Date created: 22 Jan 2004
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= pgcluster
PORTVERSION= 1.0.6c.a13
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_PGSQL}
MASTER_SITE_SUBDIR= v${BASEPGSQL}
DISTNAME= postgresql-base-${BASEPGSQL}
DIST_SUBDIR= postgresql
PATCH_SITES= http://dist.bsdlab.org/
PATCHFILES= pgcluster-${PORTVERSION}-patch.tar.gz
PATCH_DIST_STRIP= -p0
MAINTAINER= kuriyama@FreeBSD.org
COMMENT=The multi-master and synchronous replication system for PostgreSQL
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
WRKSRC?= ${WRKDIR}/postgresql-${BASEPGSQL}
USE_GMAKE= yes
GNU_CONFIGURE= yes
USE_AUTOCONF_VER= 257
MAKE_FLAGS= # empty
MAKEFILE= # empty
CONFLICTS= postgresql-*
USE_RC_SUBR= yes
INSTALLS_SHLIB= yes
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
INSTALL_TARGET= install
.else
INSTALL_TARGET= install-strip
.endif
BASEPGSQL= 7.3.4
.if defined(WITHOUT_PGCLUSTER_REPLICATION)
PGRP= "@comment "
.endif
.if defined(WITHOUT_PGCLUSTER_LOADBALANCER)
PGLB= "@comment "
.endif
PLIST_SUB= PGRP=${PGRP} PGLB=${PGLB}
RCSUBR_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR}
RCSUBR_SED= ${SED} ${RCSUBR_SUB:S|$|!g|:S|^| -e s!%%|:S|=|%%!|}
MAN1= clusterdb.1 createdb.1 createlang.1 createuser.1 dropdb.1 droplang.1 \
dropuser.1 ecpg.1 initdb.1 initlocation.1 ipcclean.1 \
pg_config.1 pg_controldata.1 pg_ctl.1 pg_dump.1 pg_dumpall.1 \
pg_resetxlog.1 pg_restore.1 pgtclsh.1 pgtksh.1 \
postgres.1 postmaster.1 psql.1 vacuumdb.1
MAN7= abort.7 alter_database.7 alter_group.7 alter_table.7 alter_trigger.7 \
alter_user.7 analyze.7 begin.7 \
checkpoint.7 close.7 cluster.7 comment.7 commit.7 copy.7 \
create_aggregate.7 create_cast.7 create_constraint_trigger.7 \
create_conversion.7 create_database.7 create_domain.7 \
create_function.7 create_group.7 create_index.7 create_language.7 \
create_operator.7 create_operator_class.7 create_rule.7 \
create_schema.7 create_sequence.7 create_table.7 create_table_as.7 \
create_trigger.7 create_type.7 create_user.7 create_view.7 \
deallocate.7 declare.7 delete.7 drop_aggregate.7 drop_cast.7 \
drop_conversion.7 drop_database.7 drop_domain.7 drop_function.7 \
drop_group.7 drop_index.7 drop_language.7 drop_operator.7 \
drop_operator_class.7 drop_rule.7 drop_schema.7 drop_sequence.7 \
drop_table.7 drop_trigger.7 drop_type.7 drop_user.7 drop_view.7 \
end.7 execute.7 explain.7 fetch.7 grant.7 insert.7 listen.7 load.7 \
lock.7 move.7 notify.7 prepare.7 reindex.7 reset.7 revoke.7 \
rollback.7 select.7 select_into.7 set.7 set_constraints.7 \
set_session_authorization.7 set_transaction.7 show.7 \
start_transaction.7 truncate.7 unlisten.7 update.7 vacuum.7
post-patch:
cd ${WRKSRC}/src/pgcluster/pgrp; ${CHMOD} +x configure missing
cd ${WRKSRC}/src/pgcluster/pglb; ${CHMOD} +x configure
post-build:
.if !defined(WITHOUT_PGCLUSTER_REPLICATION)
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pgrp run-autotools do-configure
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pgrp AUTOCONF=autoconf257 do-build
.endif
.if !defined(WITHOUT_PGCLUSTER_LOADBALANCER)
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pglb run-autotools do-configure
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pglb AUTOCONF=autconf257 do-build
.endif
pre-install:
@${SETENV} PKG_PREFIX=${PREFIX} \
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL
post-install:
.if !defined(WITHOUT_PGCLUSTER_REPLICATION)
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pgrp do-install
${RCSUBR_SED} ${FILESDIR}/pgreplicate.sh.tmpl > \
${PREFIX}/etc/rc.d/pgreplicate.sh
${CHMOD} +x ${PREFIX}/etc/rc.d/pgreplicate.sh
.endif
.if !defined(WITHOUT_PGCLUSTER_LOADBALANCER)
${MAKE} WRKSRC=${WRKSRC}/src/pgcluster/pglb do-install
${RCSUBR_SED} ${FILESDIR}/pglb.sh.tmpl > ${PREFIX}/etc/rc.d/pglb.sh
${CHMOD} +x ${PREFIX}/etc/rc.d/pglb.sh
.endif
${RCSUBR_SED} ${FILESDIR}/pgcluster.sh.tmpl > \
${PREFIX}/etc/rc.d/pgcluster.sh
${CHMOD} +x ${PREFIX}/etc/rc.d/pgcluster.sh
.include <bsd.port.mk>
|