diff options
author | matthew <matthew@FreeBSD.org> | 2016-05-25 18:12:50 +0800 |
---|---|---|
committer | matthew <matthew@FreeBSD.org> | 2016-05-25 18:12:50 +0800 |
commit | e80609930d788eeef4ee7e510d83427021e281ac (patch) | |
tree | 5ca71dc338be94363461ae5494437cc7e60ade4f /databases | |
parent | 7f3b9e8cecb9ebd5e3db5694ca6f81610744f53b (diff) | |
download | freebsd-ports-gnome-e80609930d788eeef4ee7e510d83427021e281ac.tar.gz freebsd-ports-gnome-e80609930d788eeef4ee7e510d83427021e281ac.tar.zst freebsd-ports-gnome-e80609930d788eeef4ee7e510d83427021e281ac.zip |
pgreplay reads a PostgreSQL log file (*not* a WAL file), extracts the
SQL statements and executes them in the same order and with the original
timing against a PostgreSQL database.
WWW: https://github.com/laurenz/pgreplay
Diffstat (limited to 'databases')
-rw-r--r-- | databases/Makefile | 1 | ||||
-rw-r--r-- | databases/pgreplay/Makefile | 28 | ||||
-rw-r--r-- | databases/pgreplay/distinfo | 3 | ||||
-rw-r--r-- | databases/pgreplay/files/patch-Makefile.in | 14 | ||||
-rw-r--r-- | databases/pgreplay/pkg-descr | 5 |
5 files changed, 51 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile index 980939a6722a..2fcbe88148f0 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -572,6 +572,7 @@ SUBDIR += pgpool-II-30 SUBDIR += pgpool-II-33 SUBDIR += pgpoolAdmin + SUBDIR += pgreplay SUBDIR += pgrouting SUBDIR += pgsphere SUBDIR += pgtcl diff --git a/databases/pgreplay/Makefile b/databases/pgreplay/Makefile new file mode 100644 index 000000000000..0c371541f6d5 --- /dev/null +++ b/databases/pgreplay/Makefile @@ -0,0 +1,28 @@ +# Created by: Matthew Seaman +# $FreeBSD$ + +PORTNAME= pgreplay +PORTVERSION= 1.2.0 +CATEGORIES= databases + +MAINTAINER= matthew@FreeBSD.org +COMMENT= Replay SQL statements from a Postgresql Log + +LICENSE= PostgreSQL + +USE_GITHUB= yes +GH_ACCOUNT= laurenz +GH_TAGNAME= PGREPLAY_1_2_0 + +USES= pgsql autoreconf +GNU_CONFIGURE= yes + +PLIST_FILES= bin/pgreplay man/man1/pgreplay.1.gz + +ALL_TARGET= ${PORTNAME} + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/pgreplay ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/pgreplay.1 ${STAGEDIR}${PREFIX}/man/man1 + +.include <bsd.port.mk> diff --git a/databases/pgreplay/distinfo b/databases/pgreplay/distinfo new file mode 100644 index 000000000000..528afea981d8 --- /dev/null +++ b/databases/pgreplay/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1464166606 +SHA256 (laurenz-pgreplay-1.2.0-PGREPLAY_1_2_0_GH0.tar.gz) = b2443d1ccf0c0c1da2ce9d98035e42c8f6846146b804cb3bf5a8819ca6c4123d +SIZE (laurenz-pgreplay-1.2.0-PGREPLAY_1_2_0_GH0.tar.gz) = 118585 diff --git a/databases/pgreplay/files/patch-Makefile.in b/databases/pgreplay/files/patch-Makefile.in new file mode 100644 index 000000000000..9e66158a85c7 --- /dev/null +++ b/databases/pgreplay/files/patch-Makefile.in @@ -0,0 +1,14 @@ +--- Makefile.in.orig 2016-05-25 09:58:50 UTC ++++ Makefile.in +@@ -1,4 +1,5 @@ + CFLAGS = @CFLAGS@ ++CPPFLAGS= @CPPFLAGS@ + LDFLAGS = @LDFLAGS@ + LIBS = @LIBS@ + CC = @CC@ +@@ -57,4 +58,4 @@ install_html: $(EXE).html + $(INSTALL) -D -m 0644 $< $(DESTDIR)$(htmldir)/$< + + .c.o: $(HEADERS) +- $(CC) -c $(CFLAGS) -DVERSION='"$(VERSION)"' $< ++ $(CC) -c $(CFLAGS) $(CPPFLAGS) -DVERSION='"$(VERSION)"' $< diff --git a/databases/pgreplay/pkg-descr b/databases/pgreplay/pkg-descr new file mode 100644 index 000000000000..5740420cde29 --- /dev/null +++ b/databases/pgreplay/pkg-descr @@ -0,0 +1,5 @@ +pgreplay reads a PostgreSQL log file (*not* a WAL file), extracts the +SQL statements and executes them in the same order and with the original +timing against a PostgreSQL database. + +WWW: https://github.com/laurenz/pgreplay |