aboutsummaryrefslogtreecommitdiff
path: root/databases/pglogical
diff options
context:
space:
mode:
authorMatthew Seaman <matthew@FreeBSD.org>2016-08-19 10:11:37 +0000
committerMatthew Seaman <matthew@FreeBSD.org>2016-08-19 10:11:37 +0000
commit2ad889f4e43c4e368223f249cec9a9523fe4bcd0 (patch)
tree2022fb110f324cef7aaeb44ee62740db3cf4c255 /databases/pglogical
parent56a7de8250e4314cb7c7c0fb3f34860999f9d4a3 (diff)
downloadports-2ad889f4e43c4e368223f249cec9a9523fe4bcd0.tar.gz
ports-2ad889f4e43c4e368223f249cec9a9523fe4bcd0.zip
Notes
Diffstat (limited to 'databases/pglogical')
-rw-r--r--databases/pglogical/Makefile14
-rw-r--r--databases/pglogical/files/patch-Makefile13
-rw-r--r--databases/pglogical/pkg-plist6
3 files changed, 32 insertions, 1 deletions
diff --git a/databases/pglogical/Makefile b/databases/pglogical/Makefile
index 86bbf489446a..447a95078d21 100644
--- a/databases/pglogical/Makefile
+++ b/databases/pglogical/Makefile
@@ -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>
diff --git a/databases/pglogical/files/patch-Makefile b/databases/pglogical/files/patch-Makefile
new file mode 100644
index 000000000000..f2f83d8b742f
--- /dev/null
+++ b/databases/pglogical/files/patch-Makefile
@@ -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 \
diff --git a/databases/pglogical/pkg-plist b/databases/pglogical/pkg-plist
index c0577c3b0bf4..6d6138fcbf4b 100644
--- a/databases/pglogical/pkg-plist
+++ b/databases/pglogical/pkg-plist
@@ -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