Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

slony 2.1.2

Closes #15285.
Closes #15201.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit 2f4799696cbc543af8ad493cc136cb4a1ce4848e 1 parent a2ea7da
Allen Huang authored adamv committed
Showing with 38 additions and 0 deletions.
  1. +38 −0 Library/Formula/slony.rb
View
38 Library/Formula/slony.rb
@@ -0,0 +1,38 @@
+require 'formula'
+
+class PostgresqlInstalled < Requirement
+ def message; <<-EOS.undent
+ PostgresQL is required to install.
+
+ You can install this with:
+ brew install postgresql
+
+ Or you can use an official installer from:
+ http://www.postgresql.org/
+ EOS
+ end
+ def satisfied?
+ which 'pg_config'
+ end
+ def fatal?
+ true
+ end
+end
+
+class Slony < Formula
+ homepage 'http://slony.info/'
+ url 'http://slony.info/downloads/2.1/source/slony1-2.1.2.tar.bz2'
+ sha1 '47449fbc742a25eefdab088ab650973416bccb53'
+
+ depends_on PostgresqlInstalled.new
+
+ def install
+ system "./configure", "--disable-debug",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+
+ def test
+ system "slon", "-v"
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.