BSD Ports

sysutils/apcctrl 0.8.21_2 FreeBSD

Fork of apcupsd 3.14.x with support for Brazilian APC nobreaks

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
GPLv2
Categories
sysutils
Package size
112.4 KiB, 364.8 KiB installed

Description

ApcCtrl is an unofficial branch from apcupsd 3.14.x. It can be used for controlling Brazilian APC UPS models (herited from Microsol).

Models supported or in tests:

  • BACK-UPS BR 1200VA (BZ1200BI-BR)
  • BACK-UPS BR 1500VA (BZ1500PBI-BR)
  • BACK-UPS BR 2200VA (BZ2200BI-BR and BZ2200I-BR)
  • SMART-UPS BR 1000VA (SUA1000BI-BR and SOLIS1000BI)
  • SMART-UPS BR 1500VA (SUA1500BI-BR and SOLIS1500BI)
  • SMART-UPS BR 2000VA (SUA2000BI-BR)
  • SMART-UPS BR 3000VA (SUA3000BI-BR)
  • STAY 800 (PS800)
  • STAY 700 (PS700)

In the other systems

SystemPortVersion
FreeBSDsysutils/apcctrl0.8.21_2
DragonFlysysutils/apcctrl0.8.21_2

Install

Binary package:

pkg install apcctrl

From the ports tree:

cd /usr/ports/sysutils/apcctrl/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	apcctrl>0:sysutils/apcctrl

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest0.8.21_20.8.21_20.8.21_10.8.21_20.8.21_2
FreeBSD:14:quarterly0.8.21_20.8.21_2n/a0.8.21_20.8.21_2
FreeBSD:15:latest0.8.21_20.8.21_2n/a0.8.21_20.8.21_2
FreeBSD:15:quarterly0.8.21_20.8.21_2n/an/an/a
FreeBSD:16:latest0.8.21_20.8.21_2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

The Makefile names none itself; they come from USES and USE_*.

The full lists below include those, and their dependencies in turn.

Build dependencies 3

No port depends on this one.

Configuration

Options name: sysutils_apcctrl

OptionDefaultDescription
APCDUMB_DRVoffDumb UPS driver support
APCSMART_DRVoffAPC SmartUPS serial driver support
BRAZIL_DRVonBrazilian APC-Microsol support
CGIoffBuild CGI programs to show status
GAPCMONoffBuild GTK GUI front-end
MODBUSoffMODBUS driver support
MODBUS_USBoffMODBUS USB driver support
PCNET_DRVoffPowerChute Network Shutdown driver support
SHUTDOWN_POWEROFFoffShutdown behavior with Halt and Power off
SNMP_DRVoffSNMP driver support
SNMP_DRV_OLDoffOld SNMP driver support
TCP_WRAPPERSoff${LIBWRAP_DESC}
TEST_DRVoffTest driver support
USB_DRVoffUSB driver support
USES
gmake
Service scripts
apcctrl
Conflicts with
apcupsd

Message after installing

Sample files and scripts are installed in /usr/local/etc/apcctrl.

Some examples of devices:
 /dev/ttyU0    /dev/ttyUSB.nobreak
 /dev/ttyUSB0  /dev/ttyUSB1  /dev/ttyUSB2
 /dev/ttyACM0  /dev/ttyACM1  /dev/ttyACM2

Add apcctrl_enable=YES to your /etc/rc.conf[.local] to have apcctrl
starting up at boot time.

For default, apcctrl starts with `--kill-on-powerfail` parameter.
Please, read its man page, and if this is not the intended behavior you want,
change it accordingly.

In some systems where the shutdown can take a while (like in bhyve environment),
you may want to change this behavior as follows:

Set apcctrl_flags="--term-on-powerfail" on your /etc/rc.conf[.local].

Add this to /etc/rc.shutdown, after the "Insert other shutdown procedures here"
line:
  test -f /var/run/powerfail && /usr/local/sbin/apcctrl --hibernate
  or
  test -f /var/run/powerfail && /usr/local/sbin/apcctrl --power-off

Files

Manual pages 5
  • apcaccess(8)
  • apccontrol(8)
  • apcctrl(8)
  • apcctrl.conf(5)
  • apctest(8)
pkg-plist 30
  • sbin/apcctrl
  • sbin/apcaccess
  • sbin/apctest
  • @sample etc/apcctrl/apcctrl.conf.sample
  • etc/apcctrl/apccontrol
  • @sample etc/apcctrl/changeme.sample
  • @sample etc/apcctrl/commfailure.sample
  • @sample etc/apcctrl/commok.sample
  • @sample etc/apcctrl/onbattery.sample
  • @sample etc/apcctrl/offbattery.sample
  • @sample etc/apcctrl/apcctrl.css.sample
  • @sample etc/apcctrl/hosts.conf.sample
  • @sample etc/apcctrl/multimon.conf.sample
  • etc/apcctrl/cgi/multimon.cgi
  • etc/apcctrl/cgi/upsfstats.cgi
  • etc/apcctrl/cgi/upsimage.cgi
  • etc/apcctrl/cgi/upsstats.cgi
  • bin/gapcmon
  • share/applications/gapcmon.desktop
  • share/pixmaps/apcctrl.png
  • share/pixmaps/charging.png
  • share/pixmaps/gapc_prefs.png
  • share/pixmaps/onbatt.png
  • share/pixmaps/online.png
  • share/pixmaps/unplugged.png
  • share/man/man5/apcctrl.conf.5.gz
  • share/man/man8/apcaccess.8.gz
  • share/man/man8/apccontrol.8.gz
  • share/man/man8/apctest.8.gz
  • share/man/man8/apcctrl.8.gz
distinfo 1
FileSizeSHA256
apcctrl-0.8.21.tar.gz3.531048e+06ad3bc43de922f25e98db6e97390034600d094b257458b25ee8677b1c63b0f1bf
Master sites 1
  • SF/apcctrl

Commit history 0

No commits in the history this site was built from.