aboutsummaryrefslogtreecommitdiff
path: root/databases/pg_filedump
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-10-13 19:10:18 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2021-10-13 19:10:18 +0000
commitc18ccc804aee20baab47775e65366100cf714bd1 (patch)
tree6c46319dc16d857cb16a6c16170e6ebacbe9ed7b /databases/pg_filedump
parent6a226290f3c82253f50151496168e5d1d1bb13c0 (diff)
downloadports-c18ccc804aee20baab47775e65366100cf714bd1.tar.gz
ports-c18ccc804aee20baab47775e65366100cf714bd1.zip
Diffstat (limited to 'databases/pg_filedump')
-rw-r--r--databases/pg_filedump/Makefile23
-rw-r--r--databases/pg_filedump/distinfo3
-rw-r--r--databases/pg_filedump/pkg-descr17
3 files changed, 43 insertions, 0 deletions
diff --git a/databases/pg_filedump/Makefile b/databases/pg_filedump/Makefile
new file mode 100644
index 000000000000..6c8a53583921
--- /dev/null
+++ b/databases/pg_filedump/Makefile
@@ -0,0 +1,23 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME= pg_filedump
+PORTVERSION= 14.0
+CATEGORIES= databases
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Display formatted contents of a PostgreSQL heap, index, or control file
+
+LICENSE= GPLv2+
+
+USES= gmake pgsql
+
+MAKE_ARGS= PG_LDFLAGS=-lintl
+WANT_PGSQL= lib server
+
+PLIST_FILES= bin/pg_filedump
+
+GH_ACCOUNT= df7cb
+GH_TAGNAME= REL_${PORTVERSION:R}_${PORTVERSION:E}
+USE_GITHUB= yes
+
+.include <bsd.port.mk>
diff --git a/databases/pg_filedump/distinfo b/databases/pg_filedump/distinfo
new file mode 100644
index 000000000000..f49b168a323f
--- /dev/null
+++ b/databases/pg_filedump/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1634111636
+SHA256 (df7cb-pg_filedump-14.0-REL_14_0_GH0.tar.gz) = 46608d7eed343a566e58b67b31452799bb9f0083de1c7b8b2d356a4029f23fbf
+SIZE (df7cb-pg_filedump-14.0-REL_14_0_GH0.tar.gz) = 30684
diff --git a/databases/pg_filedump/pkg-descr b/databases/pg_filedump/pkg-descr
new file mode 100644
index 000000000000..5b4c8c15d366
--- /dev/null
+++ b/databases/pg_filedump/pkg-descr
@@ -0,0 +1,17 @@
+pg_filedump is a utility to format PostgreSQL heap/index/control files into a
+human-readable form. You can format/dump the files several ways, as listed in
+the Invocation section, as well as dumping straight binary.
+
+The type of file (heap/index) can usually be determined automatically by the
+content of the blocks within the file. However, to format a pg_control file you
+must use the -c option.
+
+The default is to format the entire file using the block size listed in block 0
+and display block relative addresses. These defaults can be modified using
+run-time options.
+
+Some options may seem strange but they're there for a reason. For example, block
+size. It's there because if the header of block 0 is corrupt, you need a method
+of forcing a block size.
+
+WWW: https://github.com/df7cb/pg_filedump