---
name: geomWatch
version: 1.3.0_1
origin: sysutils/geomWatch
comment: Watches for and e-mails admins about GEOM/ZFS state changes
arch: freebsd:9:x86:64
www: http://acm.poly.edu/wiki/GEOM_Watch
maintainer: spawk@acm.poly.edu
prefix: /usr/local
licenselogic: single
flatsize: 124994
desc: |
  geomWatch is a program for monitoring the well-being of GEOM providers and ZFS
  pools. It checks the state of each configured provider and pool at a configured
  interval, and, if it notices that a component has been lost, or encounters a
  problem during the check, it will send an e-mail with details of the matter--
  such as what components were lost and which remain, or, in the event of a
  problem, what the problem was--to an arbitrary number of recipients, so that
  corrective action can be taken (for example, replacing a failed disk).

  WWW: http://acm.poly.edu/wiki/GEOM_Watch

  -Boris Kochergin <spawk@acm.poly.edu>
deps:
  libesmtp: {origin: mail/libesmtp, version: '1.0.6,1'}
categories: [sysutils]
files:
  /usr/local/etc/geomWatch.conf.sample: 4a205d23f75f22633612c06e92636de71150894a0c13dfbb998e82dd95e90fea
  /usr/local/etc/rc.d/geomWatch: ef48646c847b815f5f377212f8476cf54337bd7fc713c3b435205ec1380bb315
  /usr/local/sbin/geomWatch: c4faf362e32c8a0b5116a06c063aa5121b37af6d343a6844008a36bc8af22df6
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/geomWatch.conf ] ; then cp -p /usr/local/etc/geomWatch.conf.sample /usr/local/etc/geomWatch.conf; fi
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/geomWatch.conf.sample /usr/local/etc/geomWatch.conf; then rm -f /usr/local/etc/geomWatch.conf; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |2+

  Before starting geomWatch, you should edit its configuration file,
  /usr/local/etc/geomWatch.conf. Then, add the following line to /etc/rc.conf:

  geomwatch_enable="YES"

  Finally, to start it, run the following command:

  /usr/local/etc/rc.d/geomWatch start

  You can also test your SMTP configuration by running the following command:

  /usr/local/sbin/geomWatch -t

