---
name: bacula-client-static
version: 5.2.12
origin: sysutils/bacula-client-static
comment: Network backup solution (static client)
arch: freebsd:9:x86:64
www: http://www.bacula.org/
maintainer: dan@langille.org
prefix: /usr/local
licenselogic: single
flatsize: 4908976
desc: |
  Bacula is a set of computer programs that permit you (or the system
  administrator) to manage backup, recovery, and verification of
  computer data across a network of computers of different kinds.
  In technical terms, it is a network Client/Server based backup program.
  Bacula is relatively easy to use and efficient, while offering many
  advanced storage management features that make it easy to find and
  recover lost or damaged files. Due to its modular design, Bacula is
  scalable from small single computer systems to systems consisting of
  hundreds of computers located over a large network.

  WWW: http://www.bacula.org/
categories: [sysutils]
users: [bacula]
groups: [bacula]
options: {NLS: on, OPENSSL: on}
files:
  /usr/local/sbin/bacula-fd-static: 0a103acbf75cc17b1173dc100d5aa73b3cfa5569cb8b567ebdd286e98f05ac7b
  /usr/local/sbin/bconsole-static: 9bdf27244f87150ecb34e5d6b235a38fa40b99b43edd7129a1fee1ae0fda7935
scripts:
  post-install: |
    echo "===> Creating users and/or groups."
    if ! /usr/sbin/pw groupshow bacula >/dev/null 2>&1; then  echo "Creating group 'bacula' with gid '910'.";  /usr/sbin/pw groupadd bacula -g 910; else echo "Using existing group 'bacula'."; fi
    if ! /usr/sbin/pw usershow bacula >/dev/null 2>&1; then  echo "Creating user 'bacula' with uid '910'.";  /usr/sbin/pw useradd bacula -u 910 -g 910  -c "Bacula Daemon" -d /var/db/bacula -s /usr/sbin/nologin;  else echo "Using existing user 'bacula'."; fi
    install -d -g 910 -o 910 /var/db/bacula
    /sbin/ldconfig -m /usr/local/lib
  pre-deinstall: |
    /sbin/ldconfig -R
    if /usr/sbin/pw usershow bacula >/dev/null 2>&1; then  echo "==> You should manually remove the \"bacula\" user. "; fi
