blob: 2d6c893180faf178124ca2363bf5897c0b901025 (
plain)
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
|
require 'formula'
class BaculaFd < Formula
homepage 'http://www.bacula.org/'
url 'https://downloads.sourceforge.net/project/bacula/bacula/5.2.13/bacula-5.2.13.tar.gz'
sha1 '30b1eb2efb515138807163d046f675eaa29fad1c'
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.
system "./configure", "--prefix=#{prefix}",
"--sbindir=#{bin}",
"--with-working-dir=#{var}/lib/bacula",
"--with-pid-dir=#{HOMEBREW_PREFIX}/var/run",
"--enable-client-only",
"--disable-conio"
system "make"
system "make install"
# Ensure var/run exists:
(var + 'run').mkpath
# Create the working directory:
(var + 'lib/bacula').mkpath
end
end
|