Skip to content
This repository has been archived by the owner on Jul 4, 2023. It is now read-only.

Add clean slony #15285

Closed
wants to merge 6 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions Library/Formula/slony.rb
Original file line number Diff line number Diff line change
@@ -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