aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pdsh.rb
blob: 22693cf5b8f4da73c513fba4382a3631f233d744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
require 'formula'

class Pdsh < Formula
  homepage 'https://code.google.com/p/pdsh/'
  url 'http://pdsh.googlecode.com/files/pdsh-2.29.tar.bz2'
  sha1 'a3e44ffba151f023d72df67cd7a7d37b4a80c80e'

  option "without-dshgroups", "Compile without dshgroups which conflicts with genders. The option should be specified to load genders module first instead of dshgroups."

  depends_on 'readline'
  depends_on 'genders' => :optional

  def install
    args = ["--prefix=#{prefix}",
            "--mandir=#{man}",
            "--with-ssh",
            "--without-rsh",
            "--with-nodeupdown",
            "--with-readline",
            "--without-xcpu"]

    args << '--with-genders' if build.with? 'genders'
    args << ((build.include? 'without-dshgroups') ? '--without-dshgroups' : '--with-dshgroups')

    system "./configure", *args
    system "make install"
  end
end