---
name: nagios-check_bacula
version: 5.2.12
origin: net-mgmt/nagios-check_bacula
comment: Nagios plugin for Bacula
arch: freebsd:9:x86:64
www: http://www.bacula.org/
maintainer: dan@langille.org
prefix: /usr/local
licenselogic: single
flatsize: 14024
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/
deps:
  bacula-client: {origin: sysutils/bacula-client, version: 5.2.12}
  gettext: {origin: devel/gettext, version: 0.18.1.1_1}
  libiconv: {origin: converters/libiconv, version: 1.14_1}
categories: [net-mgmt]
users: [bacula]
groups: [bacula]
files:
  /usr/local/libexec/nagios/check_bacula: 1a5aaeda4c08dedb4a939e62f77abd5ea35038beb109bee2bb5f55bab391b430
directories:
  /usr/local/libexec/nagios/: y
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
