---
name: apcupsd
version: 3.14.10_1
origin: sysutils/apcupsd
comment: Set of programs for controlling APC UPS
arch: freebsd:10:x86:64
www: http://www.apcupsd.com
maintainer: itetcu@FreeBSD.org
prefix: /usr/local
licenselogic: single
flatsize: 1516724
desc: |
  "apcupsd" can be used for controlling all APC UPS models

  It can monitor and log the current power and battery status, perform
  automatic shutdown, and can run in network mode in order to power down
  other hosts on a LAN

  WWW:  http://www.apcupsd.com
categories:
- sysutils
options: {USB: on, TEST_DRV: off, TCP_WRAPPERS: on, SNMP_DRV_OLD: off, SNMP_DRV: off,
  PCNET_DRV: on, GAPCMON: off, DOCS: on, CLIENT_ONLY: off, CGI: off, APCSMART_DRV: on,
  APCDUMB_DRV: on}
files:
  /usr/local/etc/apcupsd/apccontrol: 02e4fd679f9fa888f71b0011e12431f6f6e4ad78ed17b9ab8cbcd6a39f497431
  /usr/local/etc/apcupsd/apcupsd.conf.sample: 40b52a1ed36de36c4ee06e4ecf6e1eb8bd2781e6b19c4310b5366d7f23566257
  /usr/local/etc/apcupsd/changeme: 454a93633bedd0fecf5c8aaf8ab81534f8bce358ca99ef64e86cb16a811faec0
  /usr/local/etc/apcupsd/commfailure: a7f4072599ffd1dc2a1c4bfc5c36e096e5830c7b2b026b2e281ae5931c99d961
  /usr/local/etc/apcupsd/commok: 4f210117ae93400e7b2e2c441293613fdc5456f30d798d1fdcb9444982d7f926
  /usr/local/etc/apcupsd/offbattery: d3143f8b422f6b69f3d5cf65e426a14c605358aca468342dad4aaada2c6e9c37
  /usr/local/etc/apcupsd/onbattery: 2bdf37f02c587ababf9e5f3de9bdefb93d3a1a98dff5d59e2bda234d811cd690
  /usr/local/etc/rc.d/apcupsd: 6934548ae9d74159a0311be77175d3e371fd03b8040bdae06ca819c49712f8ab
  /usr/local/man/man5/apcupsd.conf.5.gz: d3ee95e99aa91c40fc9d2da7ded4be70374b7319a3514ad76c24da60b5f8eb5c
  /usr/local/man/man8/apcaccess.8.gz: 883f9a2b7900ea977a8c762db412d4500198489b49ff93b51523623e701d603f
  /usr/local/man/man8/apccontrol.8.gz: fedd8d401ed6bc1f7d10c50ffd4bb93d282abbd6b2d712e16ec2efcee36cabac
  /usr/local/man/man8/apctest.8.gz: f3b5875f2d0019b7ac52ea6811f82dcc110b3898b9baaf10dcccc834e10f3bb3
  /usr/local/man/man8/apcupsd.8.gz: fb4b19f6acbb67d0bda86c4e9e8192a66bfd0ba6b1e91f33c8c3b8aa6ad7107f
  /usr/local/sbin/apcaccess: 82430a0aaafa9000535aa272e21ab40ecd21e7a123f85bae9e0fe376e3bf4221
  /usr/local/sbin/apctest: a14794348eae3bddc768d8e15d3217fc9a2f0353547ad8b8a153038c2dc7b35d
  /usr/local/sbin/apcupsd: 5b3a36758343610757ffdebbfa887c0609e7fbed4ed9967d838b057b73be5396
  /usr/local/sbin/smtp: 894c2b0770027b4851021c570812c2f82d1dac081cd0a1ad76fe82e6ceaa8f4f
  /usr/local/share/doc/apcupsd/apcupsd.pdf: 458010b24bca0ed803815b77dcc74b69a84dc1f64d6878e5a0935666c95c4810
directories:
  /usr/local/share/doc/apcupsd/: n
  /usr/local/etc/apcupsd/: y
scripts:
  post-install: |
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/apcupsd/apcupsd.conf.sample /usr/local/etc/apcupsd/apcupsd.conf; then rm -f /usr/local/etc/apcupsd/apcupsd.conf; fi
    cd /usr/local
    if [ -d /usr/local/etc/apcupsd ]; then echo "If you are permanently removing this port, you should do a rm -rf /usr/local/etc/apcupsd to remove config files left." | /usr/bin/fmt ; fi
  post-deinstall: |
    cd /usr/local
message: "**********************************************************************\nRead
  the manual\n\n  /usr/local/share/doc/apcupsd/apcupsd.pdf\n\nto do site specific
  configuration assigenments! Especially have a\ndetailed look into the chapter describing
  the shutdown procedure.\n\nSample files are installed in /usr/local/etc/apcupsd.
  These files\nmust be copied and/or configured for a proper working apcupsd.\nYou
  need to modify /usr/local/etc/apcupsd/apcupsd.conf as follows:\n\n  For serial cable:
  DEVICE /dev/cuadX (or /dev/cuaaX for [45.]x) \n  For USB cable: DEVICE (yes, leave
  it blank after DEVICE)\n\nNOTE that for USB cable you must comment out the line\n\n
  \ device         uhid            # \"Human Interface Devices\"\n\nin your kernel
  configuration file and recompile the kernel.\nYour keyboard and mouse will still
  work.\n\nWARNING USB support on FreeBSD is still considered BETA!\n\nAdd apcupsd_enable=YES
  to your /etc/rc.conf[.local] to have apcupsd\nstarting up at boot time.\n\n**********************************************************************\n"
