forked from digitalresistor/homebrew-mine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ceph.rb
56 lines (51 loc) · 2.12 KB
/
ceph.rb
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
class Ceph < Formula
desc "Ceph is a scaleable distributed file system. Client tools/libraries only."
homepage "http://ceph.com/"
head "https://github.com/ceph/ceph.git", :revision => "391cfb9f484645e2c01840903e009fea0fdbcdd3"
depends_on "libtool" => :build
depends_on "automake" => :build
depends_on "autoconf" => :build
depends_on "pkg-config" => :build
depends_on "openssl"
depends_on "snappy"
depends_on "cryptopp"
depends_on "boost"
depends_on "leveldb"
def install
# Fixup install location of ceph-detect-init
inreplace "src/ceph-detect-init/Makefile.am", "python setup.py install $$root $$options", "python setup.py install --prefix #{lib}/python2.7/site-packages --single-version-externally-managed --record=installed.txt"
system "./autogen.sh"
ENV.append "CPPFLAGS", "-DGTEST_USE_OWN_TR1_TUPLE=1"
system "./configure", "--with-rados",
"--with-radosstriper",
"--enable-client",
"--disable-server",
"--without-tcmalloc",
"--without-fuse",
"--without-libaio",
"--without-libxfs",
"--without-rbd",
"--without-cephfs",
"--without-radosgw",
"--without-selinux",
"--without-mon",
"--without-mds",
"--without-debug",
"--without-libatomic-ops",
"--disable-coverage",
"--disable-pgrefdebugging",
"--disable-cephfs-java",
"--disable-xio",
"--disable-valgrind",
"--without-libzfs",
"--without-lttng",
"--without-babeltrace",
"--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
system "#{bin}/rados", "--help"
system "#{bin}/librados-config --version"
end
end