---
name: boxbackup
version: 0.11.1_4
origin: sysutils/boxbackup
comment: Open source, completely automatic on-line backup system for Unix
arch: freebsd:9:x86:64
www: http://www.boxbackup.org/
maintainer: james@netinertia.co.uk
prefix: /usr/local
licenselogic: or
licenses:
- GPLv2
- BSD
flatsize: 5217663
desc: "This is a port of Box Backup, an online backup daemon \n\nThe backup daemon,
  bbackupd, runs on all machines to be backed up. The\nstore server daemon, bbstored
  runs on a central server. Data is sent\nto the store server, which stores all data
  on local filesystems, that\nis, only on local hard drives. Tape or other archive
  media is not\nused.\n\nThe system is designed to be easy to set up and run, and
  cheap to use.\nOnce set up, there should be no need for user or administrative\nintervention,
  apart from usual system maintenance.\n\nWWW: http://www.boxbackup.org/\n"
deps:
  perl: {origin: lang/perl5.14, version: 5.14.4}
categories:
- sysutils
users:
- _bbstored
groups:
- _bbstored
options: {SERVER: on, READLINE: off, CLIENT: on}
files:
  /usr/local/etc/periodic/monthly/999.boxbackup: 479e7b1394cdbd7c9203db5f08a33bf94d94793fbf1edde894e3c27513e589aa
  /usr/local/etc/rc.d/bbackupd: 9b4302826bfb0a9a7739ab11504c0ec2a0d143ad2af2a96d092f14d6ac13c80f
  /usr/local/etc/rc.d/bbstored: 209e4ca207ae4c7a7b90913e9a4dccc4ce08cf3dca436f174d4d2dbbb8f53776
  /usr/local/man/man5/bbackupd.conf.5.gz: 2481625e363f6ee20b8df8807908ece27092de62d96dbe895645110de286f771
  /usr/local/man/man5/bbstored.conf.5.gz: ecc8ea3f1aab846c1a819ab049172bb522c093393f4545acfdcf0504a200a66b
  /usr/local/man/man5/raidfile.conf.5.gz: 5c8f14e5253af75b10eba2102cd6513fe5449cabcfa718789a8d58d94e23881c
  /usr/local/man/man8/bbackupctl.8.gz: fecf87e41f03a73a48727cb3f5d51b80da9305a729cfc1fb04562c05ed723fa0
  /usr/local/man/man8/bbackupd-config.8.gz: 64a7803fcfab1f7d8c9bedc9ade7313fc74449ed629e9c7a74b3c2bfeaff9e17
  /usr/local/man/man8/bbackupd.8.gz: 7cfdc9853fa8477e1ca68d2c427f588555d254e8e2daf725c6a28f3443494b23
  /usr/local/man/man8/bbackupquery.8.gz: 5ceb06b8a098f16ccc3ae18d31d9203bc9390f65d61c6e27d80a2b32178c0a5c
  /usr/local/man/man8/bbstoreaccounts.8.gz: 1afa4cfc5a8cf21e38ba5596709146c91be5b14076d597e4569a24d3cfa29073
  /usr/local/man/man8/bbstored-certs.8.gz: 4e0725f9a1551133a4e1a9d962c209bccb59b19c9dd3ec957c189d9dc59b0418
  /usr/local/man/man8/bbstored-config.8.gz: b8b8b122adf9599f1e0d75ecb57ebfc26d6b6010124391d9c362499c015574dd
  /usr/local/man/man8/bbstored.8.gz: 1676cf958f37b08ecdb83be209354cfff1fcdeab441047d9399e937e12f9e188
  /usr/local/man/man8/raidfile-config.8.gz: afb05a828a4aaafd75b24ba2b3983161e43cf3d2cd1c689c513d25b5a8181e79
  /usr/local/sbin/bbackupctl: 0c600266cba6742ef8c31668989f687e4b65c62e36522222b63d96bb684b28f0
  /usr/local/sbin/bbackupd: 3022df2c80cf68512635f353ac315b91a2f901fe1cf97151fe42f01ea27dfb42
  /usr/local/sbin/bbackupd-config: 668d59d6ffe33cc745adc15db2134230b495b309c0ded8b2da538d7c031bb22c
  /usr/local/sbin/bbackupquery: 9af98440d4035b9c6346bcc455507d64f2835ceaf404bb3917627865f5df4e0c
  /usr/local/sbin/bbstoreaccounts: 6c9a05a21f53e4b182d76687b2ace11d239a50050ea24b9b0f025c6855ec01aa
  /usr/local/sbin/bbstored: dc4676491a8b9eab454cee32338dd3e5d15b77505627960909f9b03a377ed2d9
  /usr/local/sbin/bbstored-certs: fe63c1a1af51355e728f475a58cf06d8d953cd6bea3c242141fd59a0f80b769a
  /usr/local/sbin/bbstored-config: 87a9c8e95b2ee2c70bf524f1dd4bff5104b6b7465305f6270d26af17feb54669
  /usr/local/sbin/raidfile-config: f598498dc332d277fe9cb6eef663b2d2228e8463665012e863690a72beacbe63
  /usr/local/share/licenses/boxbackup-0.11.1_4/BSD: 85e7a53b5e2d3e350e2d084fed2f94b7f63005f8e1168740e1e84aa9fa5d48ce
  /usr/local/share/licenses/boxbackup-0.11.1_4/GPLv2: 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643
  /usr/local/share/licenses/boxbackup-0.11.1_4/LICENSE: fff7d7c71de85c047ed90fbc413341a95b772020d9fba6670b90abd03d41f7c7
  /usr/local/share/licenses/boxbackup-0.11.1_4/catalog.mk: 7adddf02d7f8c0625fc6631c6a4b5371756fc7ea67975d6e2ea66342a093966c
directories:
  /usr/local/share/licenses/boxbackup-0.11.1_4/: n
  /usr/local/share/licenses/: y
  /usr/local/etc/periodic/monthly/: y
  /usr/local/etc/periodic/: y
  /usr/local/etc/boxbackup/bbstored/: y
  /usr/local/etc/boxbackup/bbackupd/: y
  /usr/local/etc/boxbackup/: y
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow _bbstored >/dev/null 2>&1; then  echo "Creating group '_bbstored' with gid '505'.";  /usr/sbin/pw groupadd _bbstored -g 505; else echo "Using existing group '_bbstored'."; fi
    if ! /usr/sbin/pw usershow _bbstored >/dev/null 2>&1; then  echo "Creating user '_bbstored' with uid '505'.";  /usr/sbin/pw useradd _bbstored -u 505 -g 505  -c "Box Backup Store Daemon" -d /nonexistent -s /usr/sbin/nologin;  else echo "Using existing user '_bbstored'."; fi
    mkdir -p -m 0700 /usr/local/etc/boxbackup/bbackupd
    mkdir -p -m 0700 /usr/local/etc/boxbackup/bbstored
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if /usr/sbin/pw usershow _bbstored >/dev/null 2>&1; then  echo "==> You should manually remove the \"_bbstored\" user. "; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
message: "\nTo run bbstored at startup, add bbstored_enable=\"YES\" to /etc/rc.conf\nPlease
  see http://www.boxbackup.org/server.html for server\nconfiguration options\n\nThe
  default location of configuration files changed from\n/usr/local/etc/box to /usr/local/etc/boxbackup,
  if you are upgrading then run \n  mv /usr/local/etc/box /usr/local/etc/boxbackup\n\nTo
  run bbackupd at startup, add bbackupd_enable=\"YES\" to /etc/rc.conf\nPlease see
  http://www.boxbackup.org/client.html for client\nconfiguration options\n\n"
