diff --git a/databases/Makefile b/databases/Makefile index 98b965aef4c4..380a8472d1d3 100644 --- a/databases/Makefile +++ b/databases/Makefile @@ -443,6 +443,7 @@ SUBDIR += pecl-memcache SUBDIR += pecl-memcached SUBDIR += pecl-sqlite + SUBDIR += pg_filedump SUBDIR += pgaccess SUBDIR += pgadmin3 SUBDIR += pgadmin3-12 diff --git a/databases/pg_filedump/Makefile b/databases/pg_filedump/Makefile new file mode 100644 index 000000000000..787abc25701f --- /dev/null +++ b/databases/pg_filedump/Makefile @@ -0,0 +1,29 @@ +# New ports collection makefile for: pg_filedump +# Date created: 18 Aug 2009 +# Whom: Jun Kuriyama +# +# $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 diff --git a/databases/pg_filedump/distinfo b/databases/pg_filedump/distinfo new file mode 100644 index 000000000000..eb43d770e152 --- /dev/null +++ b/databases/pg_filedump/distinfo @@ -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 diff --git a/databases/pg_filedump/files/patch-Makefile b/databases/pg_filedump/files/patch-Makefile new file mode 100644 index 000000000000..f419467e8434 --- /dev/null +++ b/databases/pg_filedump/files/patch-Makefile @@ -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 diff --git a/databases/pg_filedump/pkg-descr b/databases/pg_filedump/pkg-descr new file mode 100644 index 000000000000..2b7cce4f022e --- /dev/null +++ b/databases/pg_filedump/pkg-descr @@ -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 diff --git a/databases/pg_filedump/pkg-plist b/databases/pg_filedump/pkg-plist new file mode 100644 index 000000000000..a5b9b0bd27f6 --- /dev/null +++ b/databases/pg_filedump/pkg-plist @@ -0,0 +1,4 @@ +bin/pg_filedump +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/README.pg_filedump +%%PORTDOCS%%@dirrm %%DOCSDIR%%