Install the .sql files for release 1.1.2 -- this is missing from the

release tarball, but has been fixed in upstream's Github.

Add pglogical_dump, pglogical_origin--1.0.0.sql and
pglogical_origin.control conditionally on the postgresql version --
these are only compiled and installed with postgresql-9.4.x

Submitted by:	Anderson Neves <anderson.ufal@gmail.com>
This commit is contained in:
Matthew Seaman 2016-08-19 10:11:37 +00:00
parent 56a7de8250
commit 2ad889f4e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=420454
3 changed files with 32 additions and 1 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= pglogical
PORTVERSION= 1.1.2
PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= http://packages.2ndquadrant.com/pglogical/tarballs/
@ -23,6 +24,14 @@ OPTIONS_DEFINE= DOCS
DOCS_PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${PGSQL_VER:M9.4}
PLIST_SUB= PGSQL94=""
.else
PLIST_SUB= PGSQL94="@comment "
.endif
# FFI
#TEST_DEPENDS= pg_regress:databases/postgresql${PGSQL_VER_NODOT}-pg_regress
#TEST_TARGET= do-test
@ -30,6 +39,9 @@ DOCS_PORTDOCS= *
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pglogical_create_subscriber
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/postgresql/pglogical.so
.if ${PGSQL_VER:M9.4}
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pglogical_dump
.endif
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@ -38,4 +50,4 @@ post-install-DOCS-on:
#do-test:
# ${MAKE} ${MAKE_ARGS} check
.include <bsd.port.mk>
.include <bsd.port.post.mk>

View File

@ -0,0 +1,13 @@
--- Makefile.orig 2016-08-17 20:46:15 UTC
+++ Makefile
@@ -6,7 +6,9 @@ PGFILEDESC = "pglogical - logical replic
DATA = pglogical--1.0.0.sql pglogical--1.0.1.sql pglogical--1.0.0--1.0.1.sql \
pglogical--1.1.0.sql pglogical--1.1.1.sql pglogical--1.0.0--1.1.0.sql \
- pglogical--1.0.1--1.1.0.sql pglogical--1.1.0--1.1.1.sql
+ pglogical--1.0.1--1.1.0.sql pglogical--1.1.0--1.1.1.sql \
+ pglogical--1.1.2.sql pglogical--1.1.0--1.1.2.sql \
+ pglogical--1.1.1--1.1.2.sql
OBJS = pglogical_apply.o pglogical_conflict.o pglogical_manager.o \
pglogical_node.o pglogical_proto.o pglogical_relcache.o \

View File

@ -1,4 +1,5 @@
bin/pglogical_create_subscriber
%%PGSQL94%%bin/pglogical_dump
lib/postgresql/pglogical.so
share/postgresql/extension/pglogical--1.0.0--1.0.1.sql
share/postgresql/extension/pglogical--1.0.0--1.1.0.sql
@ -6,6 +7,11 @@ share/postgresql/extension/pglogical--1.0.0.sql
share/postgresql/extension/pglogical--1.0.1--1.1.0.sql
share/postgresql/extension/pglogical--1.0.1.sql
share/postgresql/extension/pglogical--1.1.0--1.1.1.sql
share/postgresql/extension/pglogical--1.1.0--1.1.2.sql
share/postgresql/extension/pglogical--1.1.0.sql
share/postgresql/extension/pglogical--1.1.1--1.1.2.sql
share/postgresql/extension/pglogical--1.1.1.sql
share/postgresql/extension/pglogical--1.1.2.sql
share/postgresql/extension/pglogical.control
%%PGSQL94%%share/postgresql/extension/pglogical_origin--1.0.0.sql
%%PGSQL94%%share/postgresql/extension/pglogical_origin.control