Last active
July 13, 2016 11:02
-
-
Save xyb/3de2232e6c9550b43d947b83085c279d to your computer and use it in GitHub Desktop.
Install moosefs on mac osx using homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "formula" | |
class Moosefs < Formula | |
desc "a fault tolerant network distributed file system for petabyte range storage" | |
homepage "http://moosefs.org/" | |
url "http://ppa.moosefs.com/src/moosefs-3.0.79-1.tar.gz" | |
sha256 "f2ddce542c1b2e918060e23e953e220c4a23be982e2bdf214a783f8bac2fb87e" | |
depends_on "pkg-config" => :build | |
depends_on "autoconf" => :build | |
depends_on "automake" => :build | |
depends_on :osxfuse | |
def install | |
system "./configure", "--disable-debug", | |
"--disable-dependency-tracking", | |
"--disable-silent-rules", | |
"--prefix=#{prefix}", | |
"--sysconfdir=#{HOMEBREW_PREFIX}/etc" | |
system "make", "install" | |
bin.install Dir["bin/*"] | |
sbin.install Dir["sbin/*"] | |
man1.install Dir["share/man/man1/*"] | |
man5.install Dir["share/man/man5/*"] | |
man8.install Dir["share/man/man8/*"] | |
end | |
test do | |
system "#{sbin}/mfschunkserver -v" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment