Bacula version 3.0.2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    version 3.0.2

      View the most recent changes for the bacula port at: bacula.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for bacula.
      The raw portfile for bacula 3.0.2 is located here:
      http://bacula.darwinports.com/dports/sysutils/bacula/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/bacula


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The bacula Portfile 59027 2009-10-08 17:35:26Z macsforever2000 macports.org $

      PortSystem 1.0

      Name: bacula
      Version: 3.0.2
      Revision: 6
      Category: sysutils
      Platform: darwin
      license GPL
      Maintainers: macsforever2000

      Description: network based backup program
      Long Description: "Bacula is a set of computer programs that permit you to manage backup, recovery, and verification of computer data across a network of computers of different kinds."

      Homepage: http://www.bacula.org/
      Master Sites: sourceforge

      Checksums: md5 52f4bc25d8988dffcff429bb5e1ee81b sha1 a397d953a51a88206f7613626265c60bdf77198e rmd160 e21ca4296a439a2ba804cb3b2fc0e2e2996f41b1

      depends_build port:gawk
      depends_lib port:zlib port:openssl port:libiconv port:gettext port:ncurses

      Patch Files: patch-configure.diff patch-base64-typecast.diff

      post-patch {
      reinplace "s| PREFIX |${prefix}|g" ${worksrcpath}/configure
      }

      configure.args --mandir=${prefix}/share/man --docdir=${prefix}/share/doc/bacula --datarootdir=${prefix}/share --with-pid-dir=${prefix}/var/run --with-subsys-dir=${prefix}/var/run/subsys --sysconfdir=${prefix}/etc/${name} --with-libintl-prefix=${prefix} --with-openssl=${prefix} --with-libiconv-prefix=${prefix} --with-readline=${prefix} --with-archivedir=/var/tmp --with-included-gettext=${prefix} --enable-smartalloc --enable-largefile --without-sqlite --without-sqlite3 --without-postgresql --without-mysql --disable-gnome --disable-wx-console --disable-tray-monitor
      configure.cppflags-append -I${prefix}/ncurses
      configure.ldflags ""

      destroot.keepdirs ${destroot}${prefix}/var/run/subsys ${destroot}${prefix}/var/bacula/working

      # Don't overwrite preference files
      post-destroot {
      file rename ${destroot}${prefix}/etc/bacula/bacula-fd.conf ${destroot}${prefix}/etc/bacula/bacula-fd.conf.example
      file rename ${destroot}${prefix}/etc/bacula/bconsole.conf ${destroot}${prefix}/etc/bacula/bconsole.conf.example
      file rename ${destroot}${prefix}/etc/bacula/mtx-changer.conf ${destroot}${prefix}/etc/bacula/mtx-changer.conf.example
      }

      startupitem.create yes
      startupitem.init "BIN=${prefix}/sbin/bacula-fd\nPID=${prefix}/var/run/bacula-fd.*.pid"
      startupitem.start "\[ -x \${BIN} \] && \${BIN} -c ${prefix}/etc/bacula/bacula-fd.conf"
      startupitem.stop "\[ -r \${PID} \] && /bin/kill \$(cat \${PID})"

      platform darwin 10 {
      # This patch can be removed for version 3.0.3.
      patchfiles-append patch-3.0.2-mac-path-len.diff
      }

      Variant: client_only conflicts mysql4 mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client (bacula-fd) only" {
      configure.args-append --enable-client-only
      }

      Variant: mysql4 conflicts client_only mysql5 postgresql83 sqlite2 sqlite3 description "Install bacula client and server with mysql 4 backend" {
      depends_lib-append port:mysql4
      configure.args-append --with-mysql
      configure.args-delete --without-mysql
      }

      Variant: mysql5 conflicts client_only mysql4 postgresql83 sqlite2 sqlite3 description "Install bacula client and server with mysql 5 backend" {
      depends_lib-append path:bin/mysql_config5:mysql5
      configure.args-append --with-mysql
      configure.args-delete --without-mysql
      }

      Variant: postgresql83 conflicts mysql4 mysql5 sqlite2 sqlite3 client_only description "Install bacula client and server with postgresql 8.3 backend" {
      depends_lib-append port:postgresql83
      configure.args-append --with-postgresql
      configure.args-delete --without-postgresql
      configure.env-append PATH=${prefix}/lib/postgresql83/bin:$env(PATH)
      }

      Variant: sqlite2 conflicts client_only sqlite3 mysql4 mysql5 postgresql83 description "Install bacula client and server with sqlite 2 backend" {
      depends_lib-append port:sqlite2
      configure.args-append --with-sqlite=${prefix}
      configure.args-delete --without-sqlite
      }

      Variant: sqlite3 conflicts client_only sqlite2 mysql4 mysql5 postgresql83 description "Install bacula client and server with sqlite 3 backend" {
      depends_lib-append port:sqlite3
      configure.args-append --with-sqlite3=${prefix}
      configure.args-delete --without-sqlite3
      }

      if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset postgresql83] && ![variant_isset sqlite2] && ![variant_isset sqlite3]} {
      default_variants +client_only
      }

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/bacula
      % sudo port install bacula
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching bacula
      ---> Verifying checksum for bacula
      ---> Extracting bacula
      ---> Configuring bacula
      ---> Building bacula with target all
      ---> Staging bacula into destroot
      ---> Installing bacula
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using bacula with these commands:
      %  man bacula
      % apropos bacula
      % which bacula
      % locate bacula

     Where to find more information:

    Darwin Ports



    Lightbox this page.