"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
===> The following configuration options are available for apcupsd-3.14.14_6:
APCDUMB_DRV=on: Dumb UPS driver support
APCSMART_DRV=on: APC SmartUPS serial driver support
CGI=off: Build CGI programs to show status
CLIENT_ONLY=off: Only NIS client (no network server or drivers)
GAPCMON=off: Build GTK GUI front-end
MODBUS=on: MODBUS driver support
MODBUS_USB=on: MODBUS USB driver support
PCNET_COMMLOST=on: Experimental patch for faulty PCNET timeouts
PCNET_DRV=on: PowerChute Network Shutdown driver support
SHUTDOWN_POWEROFF=off: Shutdown behavior with Halt and Power off
SNMP_DRV=on: SNMP driver support
SNMP_DRV_OLD=off: Old SNMP driver support
TCP_WRAPPERS=on: TCP wrapper support
TEST_DRV=off: Test driver support
USB_DRV=on: USB driver support
USB_REPORTING=off: Experimental patch for faulty USB reporting
===> Use 'make config' to modify these settings
Read the manual: http://www.apcupsd.org/manual/manual.html
http://www.apcupsd.org/manual/manual.pdf
Sample files and scripts are installed in /usr/local/etc/apcupsd.
You need to modify /usr/local/etc/apcupsd/apcupsd.conf as follows:
For serial cable: DEVICE /dev/cuadX (or /dev/cuaaX for [45.]x)
For USB cable: DEVICE (yes, leave it blank after DEVICE)
NOTE that for USB cable you need uhid support.
Add apcupsd_enable=YES to your /etc/rc.conf[.local] to have apcupsd
starting up at boot time.
For default, apcupsd starts with `--kill-on-powerfail` parameter.
Please, read its man page, and if this is not the intended behavior you want,
change it accordingly.
If connected via USB and apcaccess reports incomplete data consider enabling
the USB_REPORTING options via 'make config'. This contains an experimental
patch that may fix some USB attach APC UPS. PR #249041
In some systems where the shutdown can take a while (like in bhyve environment),
you may want to change this behavior as follows:
Set apcupsd_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/apcupsd --hibernate
or
test -f /var/run/powerfail && /usr/local/sbin/apcupsd --power-off
gnome.mk: rename gdkpixbuf2 to gdkpixbuf to prepare for port move
The GTK 1-based gdk-pixbuf has not existed for some time.
No functional or package changes.
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
sysutils: remove 'Created by' lines
A big Thank You to the original contributors of these ports:
* <jsmith@resonatingmedia.com>
* Aaron Dalton <aaron@FreeBSD.org>
* Aaron Landwehr <aaron@snaphat.com>
* Adam Weinberger <adamw@FreeBSD.org>
* Adrian Chadd
* Adrian Chadd <adrian@FreeBSD.org>
* Akinori MUSHA aka knu <knu@idaemons.org>
* Alan Eldridge <alane@FreeBSD.org>
* Alan Eldridge <alane@geeksrus.net>
* Aldis Berjoza <aldis@bsdroot.lv>
* Alex Deiter <alex.deiter@gmail.com>
(Only the first 15 lines of the commit message are shown above )
sysutils/apcupsd: Add patch to fix APC BE600M1 reporting
Patch not enabled as default (initially), so we can have more users testing it.
PR: 249041
Submitted by: Derek Schrock <dereks@lifeofadishwasher.com>
Differential Revision: https://reviews.freebsd.org/D26259
sysutils/apcupsd: Port improvements
- Remove DOCS option, not used.
- Remove files/apcupsd.conf.net-slave.sample, not used.
- Improve GAPCMON option. (qa warning)
This doesn't change the way apcupsd works.
Changes obtained in sysutils/appctrl.
sysutils/apcupsd: Improve pkg-message
In some systems where the shutdown can take a while (like in bhyve
environment), users may want to change the default shutdown behavior.
PR: 237600
Reported by: Victor Sudakov <vas@mpeks.tomsk.su>
sysutils/apcupsd: Several improvements
Add support for running multiple instances of apcupsd[1]
Add an option to use `shutdown -p` rather than `shutdown -h`[2]
Set as @sample several scripts that can be customized[3]
Add an option for build with MODBUS USB driver support (Enabled by default)[4]
Set LICENSE_FILE [5]
Sort OPTIONS and make a small adjustment in pkg-message
Take maintainer'ship
PR: 180336 [1]
PR: 187924 [2][3]
PR: 215809 [4]
PR: 220002 [5]
Submitted by: leres@ee.lbl.gov [1]
Submitted by: tdb [3]
Submitted by: ipluta@wp.pl [4]
Submitted by: takefu@airport.fm [5]
Approved by: garga (mentor)
Differential Revision: https://reviews.freebsd.org/D11224
- Enable SNMP driver by default due to popular demand [1]
- Rename option USB -> USB_DRV for consistency with other drivers and
provide better option names while I'm here
- Remove hand-rolled `post-install' target now that @sample files are
installed properly
- Reorder some knobs and drop CPPFLAGS/LIBS now that those seem to
be detected correctly
PR: 215153 [1]
Add pkgconf build dependency when GAPCMON option is enabled
While here:
Fix a typo in CGI_DESC
PR: 211011
Submitted by: Martin S. Weber <freebsd-bugzilla@ayaken.net>
Approved by: maintainer timeout
- Remove broken code from configure, fixing build on 9.x
This code is related to gcc 3 and is now useless; as a side effect, it sets LD
to CC while it should be CXX, breaking the build:
ModbusComm.cpp:(.text+0x5f4): undefined reference to `operator new[](unsigned
int)'
Submitted by: pkg-fallout
Approved by: portmgr blanket
Actually fix build as a user
While here remove LIBS from CONFIGURE_ENV it was no-op since LIBS+= has been
added (and not needed anymore)
Reported by: amdmi3
- Update to 3.14.13
- Add license (GPLv2)
- Fix a typo which will cause wrong CONFLICT relationship when GAPCMON is
selected.
PR: ports/198408
Submitted by: Danilo G. Baio (dbaio bsd com br)
Approved by: maintainer timeout (20 days)
- Don't install documentation PDF file, it changes more frequently that I mange
to chase it
- bump PORTREVISION for above plist change
-
PR: 191552
Submitted by: "quickfox"
MFH: 2 weeks
Support LIBS like LDFLAGS.
- Add LIBS="${LIBS}" to MAKE_ENV and CONFIGURE_ENV.
- Add an option helper for LIBS.
- Adjust all ports that already use LIBS. Also remove references to
PTHREAD_CFLAGS and PTHREAD_LIBS while here.
- Some ports did not support having a LIBS environment variable and
required additional patches.
Somewhat simplified a linker command line looks like:
${CC} ${src_LDFLAGS} ${LDFLAGS} ${src_LIBS} ${LIBS}
where src_LDFLAGS and src_LIBS are controlled by upstream and LDFLAGS and
LIBS can be controlled by us. If possible -L and -l flags need to be
(Only the first 15 lines of the commit message are shown above )
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable
when it's not, to prepare for the demise of set_rcvar().
In cases where I had to hand-edit unusual instances also
modify formatting slightly to be more uniform (and in
some cases, correct). This includes adding some $FreeBSD$
tags, and most importantly moving rcvar= to right after
name= so it's clear that one is derived from the other.
Remove more tags from pkg-descr files fo the form:
- Name
em@i.l
or variations thereof. While I'm here also fix some whitespace and other
formatting errors, including moving WWW: to the last line in the file.
- Add LDFLAGS to CONFIGURE_ENV and MAKE_ENV (as it was done with LDFLAGS)
- Fix all ports that add {CPP,LD}FLAGS to *_ENV to modify flags instead
PR: 157936
Submitted by: myself
Exp-runs by: pav
Approved by: pav
- Update to 3.14.8
- Among other things, the SNMP driver that does not require libsnmp.so
- Adjust pkg-message to point to the right manual [1]
Full list of changes:
http://apcupsd.cvs.sourceforge.net/viewvc/*checkout*/apcupsd/apcupsd/ReleaseNotes?pathrev=Release-3_14_8
Submitted by: Scott Bennett <bennett@cs.niu.edu> [1]
Tested by: Ulrich Drolshagen <u.drolshagen@t-online.de>, imp@inbox.ru,
Warren Block <wblock@wonkity.com>, mack@
Despite portlint, CONFIGURE_ENV ain't added in by bsd.port.mk. Restore the old
way.
This fixes the failure to find gd.h thus enabling building WITH_CGI. [1]
The strange thing is that it doen't fail w/o CONIFGURE_ENV on tindys, only on
any other machine.
Reported by: Robert Huff, Simon Wright [1]
Update to 3.14.5:
* docs: Document the /refresh switch for apctray.
* apctest: Do not create pid file. There is little reason for it
since apctest is a command-line tool, not a daemon. Plus nothing
ever deletes the file so it interferes with apcupsd operation.
* gapcmon: Network connect timeout fix.
* Fix a few unsafe uses of sprintf and strcat.
* gapcmon: Iconify fixes for KDE
* Fix LOWBATT glitch handling bug that could cause us to act on a
LOWBATT signal immediately instead of waiting for the debounce time.
* Support shutting down apcupsd instances running in other sessions
(such as terminal services or remote desktop sessions).
* docs: PCNET minimum password length is 15 chars, default username
is 'apc', no known way to change the username.
* Makefile: Fix dependency build errors on Darwin and other platforms.
('echo -n' is not portable; use 'tr' to strip newline instead)
Tested by: beech@
- conflict with sysutils/gapcmon when WITH_GAPCMON is on since this installs
the bundled gapcmon in the same place
- bump PORTREVISION
This is a temporary fix as his suggestion from the PR to depend on
sysutils/gapcmon is good but need further tests.
PR: ports/126932
Submitted by: Jason E. Hale (sysutils/gapcmon maintainer)
Update to 3.14.4.
Notable changes are:
- it now builds using gmake
- NLS and POWERFLUTE are removed
- POLLTIME directive to control UPS polling interval. This directive
specifies the number of seconds to delay between polling the UPS for
status. Previously, NETTIME allowed this to be adjusted for network
connections only (snmp, pcnet, nis-net). POLLTIME configures the delay
for all connection types. NETTIME is accepted as a synonym for
compatibility with old config files.
- you can now use the graphical client via GAPCMON OPTION
- it won't build on anything pre 6.3R
Tested by: Stefan Lambrev <stefan.lambrev@moneybookers.com>
Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).
PR: ports/124340
Submitted by: edwin@
Approved by: portmgr (pav)
- Patch powerflute to include the "correct" ncurses header when devel/ncurses*
is
installed.
- bup PORTREVISION for for this.
Reported by: Robert Jameson
Reviewed by: rafan@
- update to 3.14.3
- more OPTIONS to let the user choose what he needs to have compiled
- don't allow drivers to be compiled if user wants only the client
- chase netsnmp shared lib version
- provide internationalization support
- provide backup location on my server for the pdf manual and don't IGNORE the
file in distinfo anymore
- patch apcaccess to be able to fetch the host:port from the config file [1]
- add patch to allow usb driver to compile [2]
PR: ports/121141 [1]
Submitted by: Adrian Penisoara [1], Stefan Lambrev [2]
- Update to 3.14.2
- Now the port build depends on devel/makedepend
- Utilize ETCDIR for Makefile and pkg-plist
- Move pkg-message to FILESDIR
- No need to use USE_GETTEXT=yes, because port doesn't install any mo files
and --enable-nls option doesn't help. With --with-included-gettext apcupsd
doesn't build.
PR: ports/116774
Submitted by: Alexander Logvinov
- Set --mandir and --infodir in CONFIGURE_ARGS if the configure script
supports them. This is determined by running ``configure --help'' in
do-configure target and set the shell variable _LATE_CONFIGURE_ARGS
which is then passed to CONFIGURE_ARGS.
- Remove --mandir and --infodir in ports' Makefile where applicable
Few ports use REINPLACE_CMD to achieve the same effect, remove them too.
- Correct some manual pages location from PREFIX/man to MANPREFIX/man
- Define INFO_PATH where necessary
- Document that .info files are installed in a subdirectory relative to
PREFIX/INFO_PATH and slightly change add-plist-info to use INFO_PATH and
subdirectory detection.
PR: ports/111470
Approved by: portmgr
Discussed with: stas (Mk/*), gerald (info related stuffs)
Tested by: pointyhat exp run
- Update to 3.14.1
- try to checksum the pdf manual again, since there's a new version for the
3.14.x series
PR: ports/113211
Submitted by: Alexander Logvinov
Update to 3.14.0
- MASTER/SLAVE networking mode removed (use NIS instead, see manual)
- PowerChute Network Shutdown driver
- New configuration directives to set paths at runtime
Note: GAPCMON GUI monitoring tool is not yet builded in this port, but it will.
PR: ports/111253
Submitted by: Jui-Nan Lin <jnlin@csie.nctu.edu.tw>
Poked by: infofarmer@
Update to 3.12.4:
This is a bug fix release which includes fixes for SNMP crash in the face of
network errors. Also status and data logging interval was often off by one
period. NIS port now properly defaults to 3551 or value provided by configure,
not hard-coded 7000.
- remove w/o PTHREADS OPTION since it's not supported upstream anymore. [1]
- remove pre-4.x support
- change MAINIANER addres to my @FreeBSD.org one
- bump PORTREVISION
PR: ports/101342 [1]
Submitted by: Shane Bell [1]
o) Add switch for SNMP support (ports/82765)
o) Add patch for propper power off of ups device with USB
driver on FBSD-5 ("Mike Tancsa" <mike@sentex.net>)
PR: ports/82765
Submitted by: Benjamin Constant <bconstant@be.tiauto.com>, "Mike Tancsa"
<mike@sentex.net>
o) This release will fix the BSD USB lockup bug that many users
have experienced. (I can't check this due to lack of an USP apcups device)
Perhaps this fixes PR ports/80233.
Update from 3.10.13 -> 3.10.15
- Fix for lost config files during "portupgrade apcupsd"
(PR ports/67251)
- Mandrake 10 USB users, please note, you must either use devfs
to access the USB or reconfigure your kernel and turn
CONFIG_USB_DYNAMIC_MINORS off.
- The NIS slave server code (net driver) should be much more
efficient and robust than previous versions.
- The code as a whole is much more resistant to buffer overflows
since most all string copies are now protected.
PR: 67251
Submitted by: Rob <robbyrnes@fastmail.com.au>
o) Integrate a fix to work around an OpenBSD/FreeBSD pthread bug
(set/unset of O_NONBLOCK, hope, someone will fix this bug soon).
Submitted by: Gary Bajaj <b04@interbaun.com>, Adam Kropelin