Created
January 27, 2015 15:00
-
-
Save derFunk/93702c335a18e53e5f6a to your computer and use it in GitHub Desktop.
OSX brew formula for Bacula 5.2.6 to be compatible with current Debian Wheezy Bacula package.
This file contains hidden or 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 BaculaFd < Formula | |
homepage 'http://www.bacula.org/' | |
# you may exchange this download url to match the correct bacula source code, if Debian once updates it's own package | |
url 'http://downloads.sourceforge.net/project/bacula/z-older-releases/5.2.6/bacula-5.2.6.tar.gz' | |
def install | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment