2010-06-27 08:05:44 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class PgpoolIi < Formula
|
2010-11-08 13:22:57 +00:00
|
|
|
url 'http://pgfoundry.org/frs/download.php/2841/pgpool-II-3.0.1.tar.gz'
|
2010-06-27 08:05:44 +00:00
|
|
|
homepage 'http://pgpool.projects.postgresql.org/'
|
2010-11-08 13:22:57 +00:00
|
|
|
md5 '86d8beff0396d11b6753dd2be31bcad7'
|
2010-06-27 08:05:44 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
if `/usr/bin/which pg_config`.chomp.empty?
|
|
|
|
opoo "No PostgreSQL was detected."
|
|
|
|
puts <<-EOS.undent
|
|
|
|
This formula uses `pg_config` to detect an installed PostgreSQL instead
|
2010-04-07 05:58:35 +00:00
|
|
|
of "depends_on 'postgresql'" so you can use a non-Homebrew version.
|
2010-06-27 08:05:44 +00:00
|
|
|
You may want to `brew install postgresql` if you don't have another
|
|
|
|
version already installed.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
|
|
|
|
system "./configure", "--prefix=#{prefix}", "--mandir=#{man}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|