blob: c43bd92fd18c89643e2c12a5b3834de918354527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'formula'
class PgpoolIi < Formula
url 'http://pgfoundry.org/frs/download.php/2841/pgpool-II-3.0.1.tar.gz'
homepage 'http://pgpool.projects.postgresql.org/'
md5 '86d8beff0396d11b6753dd2be31bcad7'
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
of "depends_on 'postgresql'" so you can use a non-Homebrew version.
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
|