Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Pdsh and genders #14964

Closed
wants to merge 4 commits into from

3 participants

@manboubird
  • update pdsh version to 2.28
  • add pdsh compile option --with-genders
  • create genders fomula
@mistydemeo
Owner

genders should be added as a dependency for pdsh. If it's optional (which I imagine it is since it didn't have it before!), the formula should get a --with-genders option, e.g.

depends_on 'genders' => :optional if build.include? 'with-genders'

...

option 'with-genders', 'Compile with genders support' #(or some other better explanation)
@adamv
Owner

This needs to be reopened as two pull requests, one to add genders and one to add it as an optional dep to pdsh.

@adamv adamv closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 16, 2012
  1. @manboubird

    add genders

    manboubird authored
  2. @manboubird
  3. @manboubird

    add hoempage

    manboubird authored
Commits on Sep 17, 2012
  1. @manboubird
This page is out of date. Refresh to see the latest.
Showing with 37 additions and 6 deletions.
  1. +12 −0 Library/Formula/genders.rb
  2. +25 −6 Library/Formula/pdsh.rb
View
12 Library/Formula/genders.rb
@@ -0,0 +1,12 @@
+require 'formula'
+
+class Genders < Formula
+ homepage 'https://computing.llnl.gov/linux/genders.html'
+ url 'http://downloads.sourceforge.net/project/genders/genders/1.20-1/genders-1.20.tar.gz'
+ sha1 '3a1f3f7897c5443edb4d06bd8093b505078454e8'
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make install"
+ end
+end
View
31 Library/Formula/pdsh.rb
@@ -1,19 +1,38 @@
require 'formula'
class Pdsh < Formula
- url 'http://downloads.sourceforge.net/project/pdsh/pdsh/pdsh-2.18/pdsh-2.18.tar.bz2'
homepage 'https://computing.llnl.gov/linux/pdsh.html'
- md5 'ff5dc11f25ce9c7474e71aafb5d293e8'
+ url 'http://pdsh.googlecode.com/files/pdsh-2.28.tar.bz2'
+ version '2.28'
+ sha1 'd83612e357b00566623e668fb24e93836de89fec'
depends_on 'readline'
-
+ depends_on 'genders' => :optional if ARGV.include? '--with-genders'
+
# don't strip binaries
skip_clean ['bin', 'lib']
+ def options
+ [
+ ["--with-genders", "Compile with genders support."],
+ ["--without-dshgroups", "Compile without dshgroups which conflicts with genders. The option should be specified to load genders module first instead of dshgroups."]
+ ]
+ end
+
def install
- system "./configure", "--prefix=#{prefix}", "--with-ssh", "--without-rsh",
- "--with-dshgroups", "--with-nodeupdown",
- "--with-readline", "--without-xcpu", "--mandir=#{man}"
+ args = ["--prefix=#{prefix}",
+ "--with-ssh",
+ "--without-rsh",
+ "--with-nodeupdown",
+ "--with-readline",
+ "--without-xcpu",
+ "--mandir=#{man}"]
+
+ args << '--with-genders' if ARGV.include? '--with-genders'
+ args << ((ARGV.include? '--without-dshgroups') ? '--without-dshgroups' : '--with-dshgroups')
+
+
+ system "./configure", *args
system "make install"
end
end
Something went wrong with that request. Please try again.