Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Add slony formula #15201

Closed
wants to merge 7 commits into from

2 participants

@allenhuang

This is a fix of pre pull request #15178 slony formula

@adamv

Needs a depends_on PostgresqlInstalled.new for the requirement to be picked up.

@adamv
Owner

Please make pull requests from a separate, non-master branch, and then git push -f to update the pull request in place, rather than making new ones.

@allenhuang

@adamv Is this time good to go? :P

@adamv
Owner

An, no, see there is more than one commit there. I can cherry-pick the single slony one, but pull requests really ought to be made from a non-master branch to prevent this sort of thing.

@allenhuang

Ooops... seems I messed around with it. I've learned from that.
So how can I correct it or you can help me out?

@allenhuang allenhuang referenced this pull request
Closed

Add clean slony #15285

@adamv adamv closed this pull request from a commit
Allen Huang slony 2.1.2
Closes #15285.
Closes #15201.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2f47996
@adamv adamv closed this in 2f47996
@allenhuang allenhuang referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@allenhuang allenhuang referenced this pull request from a commit in allenhuang/homebrew
Allen Huang slony 2.1.2
Closes #15285.
Closes #15201.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
0abd4f5
@theirix theirix referenced this pull request from a commit
Commit has since been removed from the repository and is no longer available.
@snakeyroc3 snakeyroc3 referenced this pull request from a commit in snakeyroc3/homebrew
Allen Huang slony 2.1.2
Closes #15285.
Closes #15201.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
9d15814
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 28, 2012
  1. Add slony1 formula

    Allen Huang authored
    Add slony1 formula for homebrew
Commits on Sep 30, 2012
  1. @allenhuang

    Add slony formula

    allenhuang authored
  2. @allenhuang
Commits on Oct 1, 2012
  1. @allenhuang
  2. @allenhuang

    Add slony formula

    allenhuang authored
  3. @allenhuang

    Add depends_on PostgresqlInstalled.new

    allenhuang authored
    Add depends_on PostgresqlInstalled.new to fix slony formula
  4. @allenhuang

    Merge branch 'add_slony' of https://github.com/allenhuang/homebrew in…

    allenhuang authored
    …to add_slony
    
    Conflicts:
    	Library/Formula/slony.rb
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.