From 3a75716979cdaf6b0cf7da91d8e67aa450a3eeed Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Wed, 22 Oct 2008 11:08:09 +0000 Subject: [PATCH] Import pg-toolbox-3 The PostgreSQL Toolbox is a collection of small programs to aid the PostgreSQL administrator and developer. <...> from Pierre-Emmanuel Andre (MAINTAINER) --- databases/pg-toolbox/Makefile | 33 +++++++++++++++++++++ databases/pg-toolbox/distinfo | 5 ++++ databases/pg-toolbox/patches/patch-Makefile | 16 ++++++++++ databases/pg-toolbox/pkg/DESCR | 26 ++++++++++++++++ databases/pg-toolbox/pkg/PLIST | 19 ++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 databases/pg-toolbox/Makefile create mode 100644 databases/pg-toolbox/distinfo create mode 100644 databases/pg-toolbox/patches/patch-Makefile create mode 100644 databases/pg-toolbox/pkg/DESCR create mode 100644 databases/pg-toolbox/pkg/PLIST diff --git a/databases/pg-toolbox/Makefile b/databases/pg-toolbox/Makefile new file mode 100644 index 00000000000..c9346c06712 --- /dev/null +++ b/databases/pg-toolbox/Makefile @@ -0,0 +1,33 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/10/22 11:08:09 ajacoutot Exp $ + +COMMENT= programs to aid the PostgreSQL administrator + +DISTNAME= pg-toolbox-3 +CATEGORIES= databases sysutils + +HOMEPAGE= http://pg-toolbox.projects.postgresql.org/ + +MAINTAINER= Pierre-Emmanuel Andre + +# BSD / Zlib +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +MASTER_SITES= http://pgfoundry.org/frs/download.php/1943/ + +RUN_DEPENDS= ::databases/postgresql,-main + +NO_REGRESS= Yes + +USE_GMAKE= Yes + +BINFILES= pg_file2str.pl + +post-install: +.for i in ${BINFILES} + @cd ${PREFIX}/bin && mv ${i} `basename ${i} .pl` +.endfor + +.include diff --git a/databases/pg-toolbox/distinfo b/databases/pg-toolbox/distinfo new file mode 100644 index 00000000000..c00d13a9a51 --- /dev/null +++ b/databases/pg-toolbox/distinfo @@ -0,0 +1,5 @@ +MD5 (pg-toolbox-3.tar.gz) = 12k7Csh07zh9dqV6I3wCDg== +RMD160 (pg-toolbox-3.tar.gz) = KUefwQYFIB/5puj/SZMkWfnAqWw= +SHA1 (pg-toolbox-3.tar.gz) = BMk9094wCQKvRxFHig6MOB8c6tQ= +SHA256 (pg-toolbox-3.tar.gz) = RnNUzv1bV9loknSF2jWWDztzMmdDapmugA2YsQFbxFk= +SIZE (pg-toolbox-3.tar.gz) = 9095 diff --git a/databases/pg-toolbox/patches/patch-Makefile b/databases/pg-toolbox/patches/patch-Makefile new file mode 100644 index 00000000000..201ce687f1e --- /dev/null +++ b/databases/pg-toolbox/patches/patch-Makefile @@ -0,0 +1,16 @@ +$OpenBSD: patch-Makefile,v 1.1.1.1 2008/10/22 11:08:09 ajacoutot Exp $ +--- Makefile.orig Tue Oct 14 21:52:43 2008 ++++ Makefile Mon Oct 20 16:35:37 2008 +@@ -8,11 +8,10 @@ TOOLS=pgstat pgcomment listdb dbsize dbstat listlock d + all: $(MANPAGES) + perl -c pgcomment + perl -c pg_file2str.pl +- $(MAKE) -C htdocs $@ + + install: all + for t in $(TOOLS) ; do install -m 755 $$t $(PREFIX)/bin/ ; done +- for m in $(MANPAGES) ; do install -m 644 $$m $(PREFIX)/share/man/man1 ; done ++ for m in $(MANPAGES) ; do install -m 644 $$m $(PREFIX)/man/man1 ; done + + uninstall: + for t in $(TOOLS) ; do rm -f $(PREFIX)/bin/$$t ; done diff --git a/databases/pg-toolbox/pkg/DESCR b/databases/pg-toolbox/pkg/DESCR new file mode 100644 index 00000000000..5759d5feeff --- /dev/null +++ b/databases/pg-toolbox/pkg/DESCR @@ -0,0 +1,26 @@ +The PostgreSQL Toolbox is a collection of small programs to aid the +PostgreSQL administrator and developer. + +* pgcomment parses SQL files which should contain DDL and + (javadoc) comments and can generate the appropriate COMMENT ON + statements or HTML and LaTeX fragments. + +* pgstat shows the queries the PostgreSQL server is currently + executing and optionally idle connections. + +* listdb lists all databases like the \l+ command in psql. + +* dbsize tells the overall size of a single database. + +* dbrelationsize tells the size of tables, view, indices, + sequences of a specific database. + +* dbstat prints the collected statistics about a database. + +* listlock prints locks held by a database. + +* xloginfo shows the current write and insert location in the xlogs. + +* pg_file2str reads a file from STDIN or the filename given as its first + command line argument and prints the file properly escaped as a + PostgreSQL string literal to STDOUT. diff --git a/databases/pg-toolbox/pkg/PLIST b/databases/pg-toolbox/pkg/PLIST new file mode 100644 index 00000000000..afbd74f2703 --- /dev/null +++ b/databases/pg-toolbox/pkg/PLIST @@ -0,0 +1,19 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/10/22 11:08:09 ajacoutot Exp $ +bin/dbrelationsize +bin/dbsize +bin/dbstat +bin/listdb +bin/listlock +bin/pg_file2str +bin/pgcomment +bin/pgstat +bin/xloginfo +@man man/man1/dbrelationsize.1 +@man man/man1/dbsize.1 +@man man/man1/dbstat.1 +@man man/man1/listdb.1 +@man man/man1/listlock.1 +@man man/man1/pg_file2str.1 +@man man/man1/pgcomment.1 +@man man/man1/pgstat.1 +@man man/man1/xloginfo.1