2010-08-19 21:24:04 +00:00
require 'formula'
2011-03-10 05:11:03 +00:00
class Pdsh < Formula
2013-03-26 03:34:39 +00:00
homepage 'https://code.google.com/p/pdsh/'
2013-11-11 03:08:32 +00:00
url 'https://code.google.com/p/pdsh/' , :tag = > 'pdsh-2.31' , :using = > :git
sha1 '03f1f82761162e5f0d382f4e586aae9fb0ef7ef9'
head 'https://code.google.com/p/pdsh/' , :using = > :git
2012-11-25 11:34:59 +00:00
2013-11-10 06:57:51 +00:00
conflicts_with 'clusterit' , :because = > 'both install `dshbak`'
2012-11-25 11:34:59 +00:00
option " without-dshgroups " , " Compile without dshgroups which conflicts with genders. The option should be specified to load genders module first instead of dshgroups. "
2010-08-19 21:24:04 +00:00
2012-11-11 03:12:26 +00:00
depends_on 'readline'
2013-01-27 02:47:59 +00:00
depends_on 'genders' = > :optional
2010-08-19 21:24:04 +00:00
def install
2012-11-25 11:34:59 +00:00
args = [ " --prefix= #{ prefix } " ,
" --mandir= #{ man } " ,
" --with-ssh " ,
" --without-rsh " ,
" --with-nodeupdown " ,
" --with-readline " ,
" --without-xcpu " ]
2013-01-27 02:47:59 +00:00
args << '--with-genders' if build . with? 'genders'
2012-11-25 11:34:59 +00:00
args << ( ( build . include? 'without-dshgroups' ) ? '--without-dshgroups' : '--with-dshgroups' )
system " ./configure " , * args
2010-08-19 21:24:04 +00:00
system " make install "
end
2013-11-11 03:08:32 +00:00
test do
system " #{ bin } /pdsh " , " -V "
end
2010-08-19 21:24:04 +00:00
end