pg_filedump is a utility to format PostgreSQL heap, index, and control

files into a human-readable form. You can format/dump the files
several ways as well as dumping straight binary. This utility is
intended to aid in the understanding of the internal contents of a
PostgreSQL block.

WWW: http://sources.redhat.com/rhdb/utilities.html
This commit is contained in:
Jun Kuriyama 2009-08-18 02:53:33 +00:00
parent 6cb77b7afc
commit d73b950702
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=239824
6 changed files with 72 additions and 0 deletions

View file

@ -443,6 +443,7 @@
SUBDIR += pecl-memcache
SUBDIR += pecl-memcached
SUBDIR += pecl-sqlite
SUBDIR += pg_filedump
SUBDIR += pgaccess
SUBDIR += pgadmin3
SUBDIR += pgadmin3-12

View file

@ -0,0 +1,29 @@
# New ports collection makefile for: pg_filedump
# Date created: 18 Aug 2009
# Whom: Jun Kuriyama <kuriyama@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= pg_filedump
PORTVERSION= 8.3
CATEGORIES= databases
MASTER_SITES= http://sources.redhat.com/rhdb/tools/
DISTNAME= ${PORTNAME}-${PORTVERSION}
EXTRACT_SUFX= .tar
MAINTAINER= kuriyama@FreeBSD.org
COMMENT= Utility to format PostgreSQL heap, index, etc into human-readable form
BUILD_DEPENDS= \
${NONEXISTENT}:${PORTSDIR}/databases/postgresql83-client:patch
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pg_filedump ${PREFIX}/bin
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.pg_filedump ${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
MD5 (pg_filedump-8.3.tar) = d4e6cf9a221e4790b3a4a3ca27276fa0
SHA256 (pg_filedump-8.3.tar) = aa0a38043f10531109ff64138d5f5717d9d076685b84c4e41b5a0be40f70e014
SIZE (pg_filedump-8.3.tar) = 71680

View file

@ -0,0 +1,28 @@
--- Makefile.orig 2008-02-28 23:12:21.000000000 +0900
+++ Makefile 2009-08-17 23:37:15.000000000 +0900
@@ -3,10 +3,10 @@
CC=gcc
CFLAGS=-g -O -Wall -Wmissing-prototypes -Wmissing-declarations
-INCLUDE=/usr/include/pgsql/server
+INCLUDE=${LOCALBASE}/include/postgresql/server
# PGSQL MUST POINT TO pgsql SOURCE DIRECTORY
-PGSQL=../../../../postgres/pgsql
+PGSQL=../../../postgresql83-client/work/postgresql-8.3.7
CRC_SRC=${PGSQL}/src/backend/utils/hash
CRC_INCLUDE=${PGSQL}/src
@@ -17,10 +17,10 @@
${CC} ${CFLAGS} -o pg_filedump pg_filedump.o pg_crc.o
pg_filedump.o: pg_filedump.c
- ${CC} ${CFLAGS} -I${INCLUDE} pg_filedump.c -c
+ ${CC} ${CFLAGS} -I${INCLUDE} -I${LOCALBASE}/include pg_filedump.c -c
pg_crc.o: ${CRC_SRC}/pg_crc.c
- ${CC} ${CFLAGS} -I${CRC_INCLUDE} -I${INCLUDE} ${CRC_SRC}/pg_crc.c -c
+ ${CC} ${CFLAGS} -I${CRC_INCLUDE} -I${INCLUDE} -I${LOCALBASE}/include ${CRC_SRC}/pg_crc.c -c
clean:
rm -rf *.o pg_filedump

View file

@ -0,0 +1,7 @@
pg_filedump is a utility to format PostgreSQL heap, index, and control
files into a human-readable form. You can format/dump the files
several ways as well as dumping straight binary. This utility is
intended to aid in the understanding of the internal contents of a
PostgreSQL block.
WWW: http://sources.redhat.com/rhdb/utilities.html

View file

@ -0,0 +1,4 @@
bin/pg_filedump
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/README.pg_filedump
%%PORTDOCS%%@dirrm %%DOCSDIR%%