---
name: hsflowd
version: 1.22.2
origin: net/hsflowd
comment: Agent that exports metrics using the sFlow protocol
arch: freebsd:9:x86:64
www: http://host-sflow.sourceforge.net/
maintainer: zi@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 93997
desc: |
  The Host sFlow agent exports physical and virtual server performance
  metrics using the sFlow protocol. The agent provides scalable,
  multi-vendor, multi-OS performance monitoring with minimal impact on
  the systems being monitored.

  WWW: http://host-sflow.sourceforge.net/
categories: [net]
files:
  /usr/local/etc/hsflowd/hsflowd.conf.sample: eeb7c4699b6c965162fa68c1afa10e6e7a5b957ea72cb0007820db6a06b1d2be
  /usr/local/etc/rc.d/hsflowd: 3bcf8368457064d46b680f6e38eca6d98a5d6da2c199cc2aea9ab645a1e120f9
  /usr/local/sbin/hsflowd: 1206cacf79bf638a505eeb2b29164af8547a1d9edaaa8be9e2e375418d3e5ee7
directories:
  /usr/local/etc/hsflowd/: y
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/hsflowd/hsflowd.conf /usr/local/etc/hsflowd.conf.sample; then rm -f /usr/local/etc/hsflowd.conf; fi
    if [ -d etc/hsflowd ]; then echo "==> If you are permanently removing this port, you should do a ``rm -rf etc/hsflowd`` to remove any configuration files."; fi
    cd /usr/local
  post-deinstall: |
    cd /usr/local
message: |
  Please edit /usr/local/etc/hsflowd/hsflowd.conf based on your needs and add the following
  to /etc/rc.conf:

  hsflowd_enable="YES"
