2013-10-02 02:39:14 +00:00
|
|
|
class BaculaFd < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Network backup solution"
|
2015-08-03 12:55:31 +00:00
|
|
|
homepage "http://www.bacula.org/"
|
|
|
|
url "https://downloads.sourceforge.net/project/bacula/bacula/7.0.5/bacula-7.0.5.tar.gz"
|
|
|
|
sha256 "1457849eb33011b43371801b62ffa13d29bebe51be8d5a36da563b87bb094a49"
|
2014-12-01 15:37:47 +00:00
|
|
|
|
2014-12-01 17:26:55 +00:00
|
|
|
bottle do
|
|
|
|
sha1 "aa312ee016437c22b7e4955c67defa51c7703540" => :yosemite
|
|
|
|
sha1 "400280627f03404732bf3db7a5612bfab5fe3876" => :mavericks
|
|
|
|
sha1 "9ac0bc82522ce93b349a71d2f0cfeac4d6501545" => :mountain_lion
|
|
|
|
end
|
|
|
|
|
2015-08-03 12:55:31 +00:00
|
|
|
depends_on "readline"
|
|
|
|
depends_on "openssl"
|
2013-10-02 02:39:14 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
# * sets --disable-conio in order to force the use of readline
|
|
|
|
# (conio support not tested)
|
|
|
|
# * working directory in /var/lib/bacula, reasonable place that
|
|
|
|
# matches Debian's location.
|
2014-12-01 15:37:47 +00:00
|
|
|
readline = Formula["readline"].opt_prefix
|
2013-10-02 02:39:14 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}",
|
|
|
|
"--sbindir=#{bin}",
|
|
|
|
"--with-working-dir=#{var}/lib/bacula",
|
|
|
|
"--with-pid-dir=#{HOMEBREW_PREFIX}/var/run",
|
|
|
|
"--enable-client-only",
|
2014-12-01 15:37:47 +00:00
|
|
|
"--disable-conio",
|
|
|
|
"--with-readline=#{readline}"
|
|
|
|
|
2013-10-02 02:39:14 +00:00
|
|
|
system "make"
|
2015-08-03 12:55:31 +00:00
|
|
|
system "make", "install"
|
2013-10-02 02:39:14 +00:00
|
|
|
|
|
|
|
# Ensure var/run exists:
|
2015-08-03 12:55:31 +00:00
|
|
|
(var + "run").mkpath
|
2013-10-02 02:39:14 +00:00
|
|
|
|
|
|
|
# Create the working directory:
|
2015-08-03 12:55:31 +00:00
|
|
|
(var + "lib/bacula").mkpath
|
2013-10-02 02:39:14 +00:00
|
|
|
end
|
|
|
|
end
|