Lines 12-47
Link Here
|
12 |
MAINTAINER= olgeni@FreeBSD.org |
12 |
MAINTAINER= olgeni@FreeBSD.org |
13 |
COMMENT= PostgreSQL master to multiple replicas replication system |
13 |
COMMENT= PostgreSQL master to multiple replicas replication system |
14 |
|
14 |
|
15 |
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex \ |
15 |
BUILD_DEPENDS= ${LOCALBASE}/bin/flex:${PORTSDIR}/textproc/flex |
16 |
${LOCALBASE}/bin/postmaster:${PORTSDIR}/databases/postgresql${PGSQL_VER}-server |
|
|
17 |
|
16 |
|
18 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
19 |
USES= bison gmake |
18 |
USES= bison gmake pgsql shebangfix |
20 |
USE_PGSQL= yes |
19 |
WANT_PGSQL= server |
21 |
USE_BZIP2= yes |
20 |
USE_BZIP2= yes |
22 |
USE_RC_SUBR= slon |
21 |
USE_RC_SUBR= slon |
23 |
|
22 |
|
|
|
23 |
SHEBANG_FILES= tools/altperl/slonik_restart_node.pl |
24 |
|
24 |
SUB_FILES= pkg-message slon-mkservice.sh |
25 |
SUB_FILES= pkg-message slon-mkservice.sh |
25 |
SUB_LIST+= NAME=slon |
26 |
SUB_LIST+= NAME=slon |
26 |
|
27 |
|
27 |
OPTIONS_DEFINE= DOCS PERLTOOLS |
28 |
OPTIONS_DEFINE= DOCS PERLTOOLS |
28 |
PERLTOOLS_DESC= Install perl configuration tools |
29 |
OPTIONS_SUB= yes |
29 |
|
30 |
|
30 |
CONFLICTS?= slony1-1* |
31 |
CONFLICTS?= slony1-1* |
31 |
|
32 |
|
32 |
CONFIGURE_ENV+= FLEX=${LOCALBASE}/bin/flex |
33 |
CONFIGURE_ENV+= FLEX=${LOCALBASE}/bin/flex |
33 |
|
34 |
|
|
|
35 |
PERLTOOLS_DESC= Install perl configuration tools |
36 |
PERLTOOLS_USES= perl5 |
37 |
PERLTOOLS_CONFIGURE_ENV= PERL=${PERL} |
38 |
PERLTOOLS_CONFIGURE_ON= --with-perltools=${LOCALBASE}/sbin |
39 |
PERLTOOLS_BUILD_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg |
40 |
PERLTOOLS_RUN_DEPENDS= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg |
41 |
|
34 |
.include <bsd.port.options.mk> |
42 |
.include <bsd.port.options.mk> |
35 |
|
43 |
|
36 |
.if ${PORT_OPTIONS:MPERLTOOLS} |
44 |
.if ${PORT_OPTIONS:MPERLTOOLS} |
37 |
USES+= perl5 |
|
|
38 |
CONFIGURE_ARGS+=--with-perltools=${LOCALBASE}/sbin |
39 |
RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg |
40 |
BUILD_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg |
41 |
PLIST_SUB+= PERLTOOLS="" |
42 |
SUB_LIST+= PERLTOOLS="" |
45 |
SUB_LIST+= PERLTOOLS="" |
43 |
.else |
46 |
.else |
44 |
PLIST_SUB+= PERLTOOLS="@comment " |
|
|
45 |
SUB_LIST+= PERLTOOLS="@comment " |
47 |
SUB_LIST+= PERLTOOLS="@comment " |
46 |
.endif |
48 |
.endif |
47 |
|
49 |
|
Lines 54-70
Link Here
|
54 |
--with-pgpkglibdir=${LOCALBASE}/lib/postgresql \ |
56 |
--with-pgpkglibdir=${LOCALBASE}/lib/postgresql \ |
55 |
--with-pgsharedir=${LOCALBASE}/share/postgresql |
57 |
--with-pgsharedir=${LOCALBASE}/share/postgresql |
56 |
|
58 |
|
57 |
# Setting/finding PostgreSQL version we want. |
|
|
58 |
.if exists(${LOCALBASE}/bin/postmaster) |
59 |
PGSQL_VER!= ${LOCALBASE}/bin/postmaster -V | \ |
60 |
${SED} -En 's/.*PostgreSQL[^0-9]*([0-9]+)\.([0-9]+)\..*/\1\2/p' |
61 |
.elif exists(${LOCALBASE}/bin/pg_config) |
62 |
PGSQL_VER!= ${LOCALBASE}/bin/pg_config --version | \ |
63 |
${SED} -En 's/PostgreSQL[^0-9]*([0-9]*)\.([0-9]+)\..*/\1\2/p' |
64 |
.else |
65 |
PGSQL_VER= ${DEFAULT_PGSQL_VER} |
66 |
.endif |
67 |
|
68 |
PORTDOCS= * |
59 |
PORTDOCS= * |
69 |
|
60 |
|
70 |
DOCS= COPYRIGHT INSTALL README README.Unicode RELEASE \ |
61 |
DOCS= COPYRIGHT INSTALL README README.Unicode RELEASE \ |