aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Gibson2011-04-16 15:48:28 -0500
committerAdam Vandenberg2011-06-19 09:31:12 -0700
commitd58a5b2bfc7aa3ff7749545d9561bfe7dd0ac04e (patch)
tree15c5381930af719df15efdda86f52a3546e98172
parent0dd7311308076c76cb4dcf5809a6aed9175bf1c9 (diff)
downloadhomebrew-d58a5b2bfc7aa3ff7749545d9561bfe7dd0ac04e.tar.bz2
pg_top 3.6.2
pg_top is 'top' for PostgreSQL. It is derived from Unix Top. Similar to top, pg_top allows you to monitor PostgreSQL processes. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/pg_top.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/pg_top.rb b/Library/Formula/pg_top.rb
new file mode 100644
index 000000000..762fd8758
--- /dev/null
+++ b/Library/Formula/pg_top.rb
@@ -0,0 +1,25 @@
+require 'formula'
+
+class PgTop < Formula
+ url 'http://pgfoundry.org/frs/download.php/1781/pg_top-3.6.2.tar.gz'
+ homepage 'http://ptop.projects.postgresql.org/'
+ md5 '12ddb50cf83e3027d182a1381d388f1d'
+
+ def install
+ unless `/usr/bin/which pg_config`.size > 0
+ opoo "No pg_config was detected."
+ puts <<-EOS.undent
+ pg_top requires postgresql in order to compile, but pg_config was not
+ found. This install will likely fail.
+
+ You can install this with:
+ brew install postgresql
+ or by using a package installer from the PostgreSQL project itself.
+ EOS
+ end
+
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+end