Boxbackup version 0.11rc2 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    boxbackup  most recent diff


    version 0.11rc2

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


      The boxbackup Portfile 46112 2009-01-29 20:13:19Z ecronin macports.org $

      PortSystem 1.0

      Name: boxbackup
      Version: 0.11rc2
      Category: sysutils net
      Maintainers: ecronin
      Description: completely automatic on-line backup system.
      Long Description: The backup daemon, bbackupd, runs on all machines to be backed up. The store server daemon, bbstored runs on a central server. Data is sent to the store server, which stores all data on local filesystems, that is, only on local hard drives. Tape or other archive media is not used. The system is designed to be easy to set up and run, and cheap to use. Once set up, there should be no need for user or administrative intervention, apart from usual system maintenance.
      Homepage: http://www.boxbackup.org/
      Platform: darwin
      Master Sites: ${homepage}svn/box/packages/
      extract.suffix .tgz
      Checksums: md5 68052f963a944c717a50bd65a54375ff sha1 9ba640b1c1f2531214a54273396f8cf932d17782 rmd160 5118667aa083898c193b098fe4c876abc6cd4e7c

      depends_lib path:bin/perl:perl5 port:openssl port:readline port:openssl

      ##### TEMPORARY FIX; REMOVE FOR >= 0.11rc3
      post-patch {
      reinplace "s|sysconfdir='/etc'||g" ${worksrcpath}/configure
      reinplace "s|localstatedir='/var/run'||g" ${worksrcpath}/configure
      }

      configure.args --sysconfdir=${prefix}/etc --localstatedir=${prefix}/var/bbackupd --enable-gnu-readline

      destroot.target install-backup-client
      destroot.keepdirs ${destroot}${prefix}/etc/box/bbackupd ${destroot}${prefix}/var/bbackupd

      post-destroot {
      xinstall -d -m 0700 ${destroot}${prefix}/etc/box/bbackupd
      xinstall -d -m 0755 ${destroot}${prefix}/var/bbackupd

      # Install the documentation
      ### Broken in 0.11rc2
      # xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
      # foreach docname {accounts bbackupctl client license nonroot restore retrieve server serverfix space trouble} {
      # xinstall -m 0644 ${filespath}/${docname}.html # ${destroot}${prefix}/share/doc/${name}/${docname}.html
      # reinplace "s|/usr/local|${prefix}|g" # ${destroot}${prefix}/share/doc/${name}/${docname}.html
      # reinplace "s|/var/run|${prefix}/var/run|g" # ${destroot}${prefix}/share/doc/${name}/${docname}.html
      # reinplace "s|/var/bbackupd|${prefix}/var/bbackupd|g" # ${destroot}${prefix}/share/doc/${name}/${docname}.html
      # reinplace "s|/etc/box|${prefix}/etc/box|g" # ${destroot}${prefix}/share/doc/${name}/${docname}.html
      # }
      }

      Variant: bdb description {Use Berkeley Data Base to cache bbackupd state} {
      depends_lib-append port:db44

      configure.args-append --with-bdb-headers=${prefix}/include/db44 --with-bdb-lib=${prefix}/lib/db44
      }

      Variant: server description {Install bbstored server} {
      pre-destroot {
      addgroup bbstored
      set gid [existsgroup bbstored]
      adduser bbstored gid=${gid} realname=BoxBackup\ Server home=${prefix}/etc/box/bbstored
      }
      destroot.target-append install-backup-server
      destroot.keepdirs-append ${destroot}${prefix}/etc/box/bbstored
      post-destroot {
      xinstall -o bbstored -g bbstored -d -m 0770 ${destroot}${prefix}/etc/box/bbstored
      }

      pre-install {
      addgroup bbstored
      set gid [existsgroup bbstored]
      adduser bbstored gid=${gid} realname=BoxBackup\ Server home=${prefix}/etc/box/bbstored
      }
      }

      post-activate {
      if {[variant_isset server]} {
      if {![file exists ${prefix}/etc/box/raidfile.conf]} {
      ui_warn "${prefix}/etc/box/raidfile.conf is missing!"
      ui_msg "You need to run 'raidfile-config' to create it."
      ui_msg "See the documentation on server setup for details:"
      #ui_msg " file://${prefix}/share/doc/boxbackup/server.html"
      ui_msg " http://www.boxbackup.org/server.html"
      }
      if {![file exists ${prefix}/etc/box/bbstored.conf]} {
      ui_warn "${prefix}/etc/box/bbstored.conf is missing!"
      ui_msg "You need to run 'bbstored-config' to create it."
      ui_msg "See the documentation on server setup for details:"
      #ui_msg " file://${prefix}/share/doc/boxbackup/server.html"
      ui_msg " http://www.boxbackup.org/server.html"
      }
      }
      if {![file exists ${prefix}/etc/box/bbackupd.conf]} {
      ui_warn "${prefix}/etc/box/bbackupd.conf is missing!"
      ui_msg "You need to run 'bbackupd-config' to create it."
      ui_msg "See the documentation on client setup for details:"
      #ui_msg " file://${prefix}/share/doc/boxbackup/client.html"
      ui_msg " http://www.boxbackup.org/client.html"
      }
      }

      test.run yes

      platform darwin {
      startupitem.create yes
      startupitem.name BoxBackup
      startupitem.start "cd ${prefix}/etc/box"
      if {[variant_isset server]} {
      startupitem.start-append "\[ -f \"${prefix}/etc/box/bbstored.conf\" \] \\"
      startupitem.start-append "\t&& \[ -f \"${prefix}/etc/box/raidfile.conf\" \] \\"
      startupitem.start-append "\t&& ${prefix}/bin/bbstored"
      }
      startupitem.start-append "\[ -f \"${prefix}/etc/box/bbackupd.conf\" \] \\"
      startupitem.start-append "\t&& ${prefix}/bin/bbackupd"
      startupitem.stop "/usr/bin/killall -SIGUSR1 bbackupd"
      if {[variant_isset server]} {
      startupitem.stop-append "/usr/bin/killall -SIGUSR1 bbstored"
      }
      }


    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/boxbackup
      % sudo port install boxbackup
      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 boxbackup
      ---> Verifying checksum for boxbackup
      ---> Extracting boxbackup
      ---> Configuring boxbackup
      ---> Building boxbackup with target all
      ---> Staging boxbackup into destroot
      ---> Installing boxbackup
    - 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 boxbackup with these commands:
      %  man boxbackup
      % apropos boxbackup
      % which boxbackup
      % locate boxbackup

     Where to find more information:

    Darwin Ports



    Lightbox this page.