Up to [cvs.NetBSD.org] / pkgsrc / sysutils / apcupsd
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
*: recursive bump for pcre2 10.49
*: revbump for pcre2 symbol versioning change
*: recursive bump for pcre2 10.48
Avoid gcc14 issues
*: recursive bump for pcre2 Running an old binary against the new pcre doesn't work: /usr/pkg/lib/libpcre2-8.so.0: version PCRE2_10.47 required by /usr/pkg/lib/libglib-2.0.so.0 not defined
*: recursive bump for tiff growing lerc dependency
*: recursive bump for jpeg -> libjpeg-turbo switch
apcupsd: Remove makedepend as a build dependency makedepend is not needed to build apcupsd (tested with NetBSD 9 and 10). Having it listed in USE_TOOLS meant that the xbase set needed to be installed.
*: bump for raqm option in gd & ImageMagick to be on the safe side
*: revebump for new brotli option for freetype2 Addresses PR 57693
recursive revbump for tiff update
*: recursive bump for libimagequant 4.x
*: Recursive revbup from graphics/freetype2
*: recursive bump for tiff shlib major bump
sysutils/apcupsd: update to 3.14.14
Update apcupsd package to 3.14.14.
3.14.14 -- 31 May 2016
BUG FIXES
* win32: Fix missing DLLs when installing only apctray
* Fixes for socket error handling. Resolves apcaccess crash when connection
fails as well as several other theoretical issues.
* MODBUS/USB error handling (COMMLOST) improvements for faulty USB links
* Fix hiddev binding when usbfs is mounted on /dev/bus/usb instead of
/proc/bus/usb. This is necessary for switching between MODBUS/USB and
USB/HID on Linux.
* Update GPLv2 text and FSF address to match current versions from FSF.
* Various fixes for potential issues suggested by Coverity Scan
* MacOS X port support for El Capitan System Integrity Protection (SIP)
aka "rootless"
* Fix shutdown failure on Windows when UPSNAME includes spaces
* Fix building bsd-usb driver
(This was broken when modbus-usb support was added.)
FEATURES
* Add status display for output current as well as apparent power
*: revbump after fontconfig bl3 changes (libuuid removal)
sysutils/apcupsd: remove nonexistent files from SUBST_FILES
Honour LIBUSB_TYPE
sysutils: align variable assignments pkglint -Wall -F --only aligned --only indent -r Manually excluded consolekit and dc-tools since pkglint didn't get the formatting correct.
sysutils/apcupsd: fix location of HTML documentation
*: Add CTF_SUPPORTED/CTF_FILES_SKIP where necessary.
Recursive bumps for fontconfig and libzip dependency changes.
Recursive revbump from graphics/libwebp
Revbump after graphics/gd update
Help configure to find shutdown on NetBSD where PATH might not contain /sbin.
Use OPSYSVARS.
Update apcupsd to 3.14 branch revision r2365
3.14.14 was tagged but not released, 3.14.13 is the last release, hence
apcupsd-3.14.13r2365.
- Remove use of BSD USB driver; all platforms except Linux use generic-usb now
- i18n support removed
3.14.14 -- 30 May 2015
BUG FIXES
* win32: Fix missing DLLs when installing only apctray
* Fixes for socket error handling. Resolves apcaccess crash when connection
fails as well as several other theoretical issues.
* MODBUS/USB error handling (COMMLOST) improvements for faulty USB links
* Fix hiddev binding when usbfs is mounted on /dev/bus/usb instead of
/proc/bus/usb. This is necessary for switching between MODBUS/USB and
USB/HID on Linux.
* Update GPLv2 text and FSF address to match current versions from FSF.
* Various fixes for potential issues suggested by Coverity Scan
3.14.13 -- 02 February 2015
NEW FEATURES
* MODBUS USB support
Previous releases supported MODBUS serial (RS232). This release adds
support for MODBUS over USB. This protocol is preferable to the normal
USB HID driver because it offers access to more UPS data readouts and
controls. The only configuration file change needed versus MODBUS serial
is to change UPSCABLE to usb and use an empty DEVICE setting. See the
MODBUS section of the apcupsd manual for more details.
* Support for Apple Notification Center on Mac OS X (replaces Growl)
* Apple install packages and binaries are signed with an Apple Developer
key for compatibility with Gate Keeper
* Windows USB driver has been updated with additional USB identifiers to
support future APC products.
BUG FIXES
* Use launchd for startup on Mac OS X as the old Startup Items mechanism is
no longer supported in 10.10 and above
* Fix apcaccess on ARM systems where char is unsigned by default
* Fix several potential issues identified by Coverity static analysis
* Numerous other fixes and improvements all over the code, many of them
submitted by users...Thank you!
MISC
* Windows port now builds with the same configure and make system as the
other targets, no need to maintain a special hardcoded Makefile.
* Many cleanups to the Windows port codebase
* Prebuilt binaries for Mac OS X no longer support PowerPC systems or
Mac OS X 10.4 and older
3.14.12 -- 29 March 2014 (Maintenance Release)
NEW FEATURES
* apcaccess and apcupsd status format updates to ease parsing by scripts
* UPS name is included in subject line of emails in default scripts
* Default event scripts pull SYSADMIN and APCUPSD_MAIL definitions from a
common config file so they can easily be configured in one place
BUG FIXES
* Fix issue with certain Back-UPS USB models repeatedly cycling power on/off
after killpower is issued
* Fix display of battery level during MODBUS calibration
* Fix apctest EEPROM setting on various models
* Close and reopen serial port during extended COMMLOST in apcsmart driver
(helps recover connection when USB serial port dongles are reconnected)
* Avoid probing non-APC USB devices as it can cause lockups
* Fix issue with service failing to start on Windows during boot with USB UPS
* Fix bogus lock file error when config file error forces early termination
* Fix MODBUS NOMOUTV reading for voltages other than 120VAC
* Fix LOADPCT (CI_LOAD) on MODBUS driver
* Fix issue with net driver not reporting MODEL value
3.14.11 -- 31 January 2014 (Maintenance Release)
NEW FEATURES
* MODBUS protocol support
Over the summer, APC publicly released documentation[1] on a new UPS
control and monitoring protocol, loosely referred to as MODBUS (after the
historic industrial control protocol it is based on). The new protocol
operates over RS232 serial lines as well as USB connections and is intended
to supplement APC's proprietary Microlink protocol. Microlink is not going
away, but APC has realized that third parties require access to UPS status
and control information. Rather than publicly open Microlink, they have
created another protocol to operate along side it.
Many existing Microlink UPSes can be upgraded to support MODBUS via a
firmware update. See [2]. Certain older models are not upgradeable. APC
support will be your best contact for determining if your UPS supports a
MODBUS upgrade the information linked below does not make it clear.
For now, apcupsd supports MODBUS over RS232 serial only. It DOES NOT yet
support MODBUS over USB. See the apcupsd manual[3] for information on
setting up apcupsd.conf for MODBUS UPSes.
[1] http://www.apc.com/whitepaper/?an=176
[2] http://www.schneider-electric.us/support/index?page=content&country=ITB&lang=EN&id=FA164737
[3] http://www.apcupsd.com/manual/manual.html
* Windows USB driver is now digitally signed thanks to Jernej Simoncic
<jernej's-sflist@eternallybored.org>
3.14.10 -- 13 September 2011 (Maintenance Release)
BUG FIXES
* Fix missing status and spurrious incorrect status on newer BackUPS CS
models using USB interface.
* USB compatibility fixes for Mac OS X Lion
* USB driver support for newer Microlink models on Mac OS X Lion and Windows
* Ignore transitions to battery due to calibration (possible if user
initiates calibration, then exits apctest and starts apcupsd before
calibration completes.
* Fix truncation of long UPS model names such as "Smart-UPS RT 5000 XL"
* Fix MODEL vs. APCMODEL confusion. Remove APCMODEL and rename old MODEL
aka 'mode' to DRIVER.
Recursive revbump from multimedia/libvpx
Bump all packages that depend on curses.bui* or terminfo.bui* since they might incur ncurses dependencies on some platforms, and ncurses just bumped its shlib. Some packages were bumped twice now, sorry for that.
Recursive revbump from pkgsrc/multimedia/libvpx.
Package requires libusb. Patch from Sebastian Wiedenroth.
recursive bump from graphics/gd shlib major bump.
Try to fix the fallout caused by the fix for PR pkg/47882. Part 3: Recursively bump package revisions again after the "freetype2" and "fontconfig" handling was fixed.
Bump freetype2 and fontconfig dependencies to current pkgsrc versions, to address issues with NetBSD-6(and earlier)'s fontconfig not being new enough for pango. While doing that, also bump freetype2 dependency to current pkgsrc version. Suggested by tron in PR 47882
Link C++ code with the C++ compiler.
Recursive bump for png-1.6.
Revbump after graphics/jpeg and textproc/icu
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.
Proofread apccontrol's messages. Raise syslog severity for 'emergency' message to 'crit'.
Fix build on OpenSolaris, from MASUDA Hideo in PR pkg/46043
Actually install the manual (manual.html), but don't install WML-formatted docs.
Recursive bump for graphics/freetype2 buildlink addition.
PR/38104 - remove conflict with nut: rename upsimage.cgi to apcupsimage.cgi OK by maintainer.
Pullup ticket #3494 - requested by bouyer sysutils/apcupsd: Dragonfly fix Revisions pulled up: - sysutils/apcupsd/Makefile 1.63 ------------------------------------------------------------------- Module Name: pkgsrc Committed By: bouyer Date: Sun Aug 7 17:27:24 UTC 2011 Modified Files: pkgsrc/sysutils/apcupsd: Makefile Log Message: Apply patch from PR pkg/45171, fixing rc.d script on DragonFly. To generate a diff of this commit: cvs rdiff -u -r1.62 -r1.63 pkgsrc/sysutils/apcupsd/Makefile
Apply patch from PR pkg/45171, fixing rc.d script on DragonFly.
Pullup ticket #3493 - requested by bouyer
sysutils/apcupsd: build fix
Revisions pulled up:
- sysutils/apcupsd/Makefile 1.62
- sysutils/apcupsd/PLIST 1.13
- sysutils/apcupsd/distinfo 1.15
- sysutils/apcupsd/options.mk 1.3
- sysutils/apcupsd/patches/patch-aa deleted
- sysutils/apcupsd/patches/patch-ae 1.7
- sysutils/apcupsd/patches/patch-af 1.7
- sysutils/apcupsd/patches/patch-ag 1.5
- sysutils/apcupsd/patches/patch-ai 1.5
- sysutils/apcupsd/patches/patch-aj 1.8
- sysutils/apcupsd/patches/patch-al 1.5
- sysutils/apcupsd/patches/patch-an 1.6
- sysutils/apcupsd/patches/patch-ao 1.7
---
Module Name: pkgsrc
Committed By: bouyer
Date: Mon Aug 1 14:54:51 UTC 2011
Modified Files:
pkgsrc/sysutils/apcupsd: Makefile PLIST distinfo options.mk
pkgsrc/sysutils/apcupsd/patches: patch-ae patch-af patch-ag patch-ai
patch-aj patch-al patch-an patch-ao
Removed Files:
pkgsrc/sysutils/apcupsd/patches: patch-aa
Log Message:
Update to 3.14.9.
Dragonfly users, please test that is still builds !
pkgsrc change: as snmp support doesn't depend on net-snmp
anymore, remove snmp option and always build snmp support.
cgi option now depend on graphics/gd/
User-visible changes sinces 3.14.3:
2010-08-30 14:18 adk0212
* src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp:
Add support for MGE SNMP MIB. Contributed by Lars Täer
<taeuber@bbaw.de>
2010-07-30 18:04 adk0212
* src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h,
rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h:
Add support for RFC1628 SNMP MIB. Refactor APC MIB and create
MibStrategy struct for associating MIB/CI mapping with
corresponding processing function. RFC1628 strategy is coded per
the MIB but untested.
2010-01-10 10:29 adk0212
* include/defines.h, src/apctest.c, src/drivers/usb/usb.c:
Add apctest support for reading/setting self-test interval on USB.
Also show current setting in UPS status. Contributed by James
Belleau <jpbelleau@gmail.com>
2009-10-25 11:03 adk0212
* configure, autoconf/config.h.in, autoconf/configure.in,
autoconf/variables.mak.in, include/struct.h,
platforms/etc/apcupsd.conf.in, src/drivers/Makefile,
src/drivers/drivers.c, src/drivers/snmplite/Makefile,
src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h,
src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp,
src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp,
src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c,
src/lib/apcstatus.c:
Add SNMP Lite driver which does not depend on net-snmp library.
This makes it more portable and eliminates need to move libsnmp.so
to /lib in order to do a killpower on systems where /usr is
unmounted.
2009-09-01 20:30 adk0212
* src/apctest.c:
Implement battery calibration in apctest for USB models. Thanks to
James Belleau <james@belleau.net> for the original implementation
which has been modified somewhat in this commit.
2009-05-02 10:30 adk0212
* src/action.c:
Change log level of UPS self-test messages to WARNING from ALERT.
Given that self-test messages are routine, they do not belong at
LOG_ALERT. Contributed by Dave Ewart <davee@ceu.ox.ac.uk>.
2009-04-25 10:58 adk0212
* src/lib/apcconfig.c:
Remove EVENTFILE, EVENTFILEMAX config directives. These were
replaced by the plural versions that are in use today (EVENTSFILE,
EVENTSFILEMAX) almost 10 years ago. It's time to kill the old
names. (h/t Trevor Roydhouse <trev@sentry.org>)
2009-03-02 17:48 adk0212
* doc/apcupsd.man, include/drivers.h, include/extern.h,
src/action.c, src/apctest.c, src/apcupsd.c, src/device.c,
src/options.c, src/drivers/drivers.c,
src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c,
src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c,
src/drivers/usb/usb.h, src/lib/apclock.c:
Add support for turning the UPS off completely. This complements
existing hibernate (aka killpower) functionality. Turn-off is
implemented for apcsmart and USB drivers, subject to support for
the relevant commands in the UPS itself. Contributed by Keith
Campbell <campbell@econnectix.com>.
2008-06-29 11:12 adk0212
* src/action.c:
Fix bug in LOWBATT glitch handling. We must examine LOWBATT for
changes every time thru the status loop, not just during the
OnBattery state. Otherwise we can miss the initial LOWBATT
assertion, which defeats the glitch rejection logic.
2008-05-06 20:16 skoona
* src/gapcmon/gapcmon.c:
Corrected the use of NOMPOWER and the calc of current usage amount
2008-05-04 11:13 adk0212
* src/drivers/usb/usb.c:
Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes
(RS 500) report decivolts instead of volts. Reported by Kirill S.
Bychkov <yason@linklevel.net>.
2008-01-27 12:00 adk0212
* include/struct.h, platforms/etc/apcupsd.conf.in,
platforms/mingw/apcupsd.conf.in, src/device.c,
src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c,
src/lib/apcconfig.c:
Add POLLTIME directive to control UPS polling interval. NETTIME is
accepted as a synonym for compatibility with old config files.
Update to 3.14.9.
Dragonfly users, please test that is still builds !
pkgsrc change: as snmp support doesn't depend on net-snmp
anymore, remove snmp option and always build snmp support.
cgi option now depend on graphics/gd/
User-visible changes sinces 3.14.3:
2010-08-30 14:18 adk0212
* src/drivers/snmplite/: mge-mib.cpp, mge-oids.h, mibs.cpp:
Add support for MGE SNMP MIB. Contributed by Lars Täer
<taeuber@bbaw.de>
2010-07-30 18:04 adk0212
* src/drivers/snmplite/: apc-mib.cpp, apc-oids.h, mib.cpp, oids.h,
rfc1628-mib.cpp, rfc1628-oids.h, snmplite.cpp, snmplite.h:
Add support for RFC1628 SNMP MIB. Refactor APC MIB and create
MibStrategy struct for associating MIB/CI mapping with
corresponding processing function. RFC1628 strategy is coded per
the MIB but untested.
2010-01-10 10:29 adk0212
* include/defines.h, src/apctest.c, src/drivers/usb/usb.c:
Add apctest support for reading/setting self-test interval on USB.
Also show current setting in UPS status. Contributed by James
Belleau <jpbelleau@gmail.com>
2009-10-25 11:03 adk0212
* configure, autoconf/config.h.in, autoconf/configure.in,
autoconf/variables.mak.in, include/struct.h,
platforms/etc/apcupsd.conf.in, src/drivers/Makefile,
src/drivers/drivers.c, src/drivers/snmplite/Makefile,
src/drivers/snmplite/asn.cpp, src/drivers/snmplite/asn.h,
src/drivers/snmplite/mib.cpp, src/drivers/snmplite/snmp.cpp,
src/drivers/snmplite/snmp.h, src/drivers/snmplite/snmplite.cpp,
src/drivers/snmplite/snmplite.h, src/lib/apcconfig.c,
src/lib/apcstatus.c:
Add SNMP Lite driver which does not depend on net-snmp library.
This makes it more portable and eliminates need to move libsnmp.so
to /lib in order to do a killpower on systems where /usr is
unmounted.
2009-09-01 20:30 adk0212
* src/apctest.c:
Implement battery calibration in apctest for USB models. Thanks to
James Belleau <james@belleau.net> for the original implementation
which has been modified somewhat in this commit.
2009-05-02 10:30 adk0212
* src/action.c:
Change log level of UPS self-test messages to WARNING from ALERT.
Given that self-test messages are routine, they do not belong at
LOG_ALERT. Contributed by Dave Ewart <davee@ceu.ox.ac.uk>.
2009-04-25 10:58 adk0212
* src/lib/apcconfig.c:
Remove EVENTFILE, EVENTFILEMAX config directives. These were
replaced by the plural versions that are in use today (EVENTSFILE,
EVENTSFILEMAX) almost 10 years ago. It's time to kill the old
names. (h/t Trevor Roydhouse <trev@sentry.org>)
2009-03-02 17:48 adk0212
* doc/apcupsd.man, include/drivers.h, include/extern.h,
src/action.c, src/apctest.c, src/apcupsd.c, src/device.c,
src/options.c, src/drivers/drivers.c,
src/drivers/apcsmart/apcsmart.h, src/drivers/apcsmart/smart.c,
src/drivers/apcsmart/smartoper.c, src/drivers/usb/usb.c,
src/drivers/usb/usb.h, src/lib/apclock.c:
Add support for turning the UPS off completely. This complements
existing hibernate (aka killpower) functionality. Turn-off is
implemented for apcsmart and USB drivers, subject to support for
the relevant commands in the UPS itself. Contributed by Keith
Campbell <campbell@econnectix.com>.
2008-06-29 11:12 adk0212
* src/action.c:
Fix bug in LOWBATT glitch handling. We must examine LOWBATT for
changes every time thru the status loop, not just during the
OnBattery state. Otherwise we can miss the initial LOWBATT
assertion, which defeats the glitch rejection logic.
2008-05-06 20:16 skoona
* src/gapcmon/gapcmon.c:
Corrected the use of NOMPOWER and the calc of current usage amount
2008-05-04 11:13 adk0212
* src/drivers/usb/usb.c:
Add a heuristic to fix up incorrect NOMINV or NOMOUTV. Some UPSes
(RS 500) report decivolts instead of volts. Reported by Kirill S.
Bychkov <yason@linklevel.net>.
2008-01-27 12:00 adk0212
* include/struct.h, platforms/etc/apcupsd.conf.in,
platforms/mingw/apcupsd.conf.in, src/device.c,
src/drivers/net/net.c, src/drivers/snmp/drv_powernet.c,
src/lib/apcconfig.c:
Add POLLTIME directive to control UPS polling interval. NETTIME is
accepted as a synonym for compatibility with old config files.
recursive bump from gettext-lib shlib bump.
Really use root for the config files. Bump revision.
pkg/40112: don't hardcode "netbsd" in RCD_SCRIPT_SRC.apcupsd bump PKGREVISION
Add DESTDIR support.
Update to 2.14.3:
3.14.3 -- 20 January 2008 (Maintenance Release)
NEW FEATURES
* A HAL policy file is automatically installed on Linux systems to disable
the hald-addon-hid-ups module which conflicts with apcupsd's control of
USB UPSes. The file is automatically removed when apcupsd is
uninstalled.
BUG FIXES
* Add support for Nominal Power (aka Configured Active Power) reading.
Credit to Lars Randers <lars@nstec.dk> for most of the code.
* Add units to NOMINV, NOMOUTV, and NOMBATTV stats.
* Eliminate "warning: deprecated conversion from string constant to
'char*'" warnings emitted from gcc-4.2.1 (earlier versions with
-Wwrite-strings). Contributed by Steve Yarmie <tribhuvanji@gmail.com>.
* Fix killpower and eeprom settings bug on USB modules introduced when
INPUT reports were prioritized over FEATURE reports.
* Fix bugs that could cause NIS-net driver to get stuck waiting for
comms to be restored instead of shutting down.
3.14.2 -- 15 September 2007 (Maintenance Release)
NEW FEATURES
* Tray icon support on Vista. Vista does not allow background services
to interact with the user's desktop, so winapcupsd's built-in tray
icon did not work.
* Tray icon is now a standalone application "apctray" which is capable of
monitoring multiple Apcupsd instances via Apcupsd's NIS. Any Apcupsd
running NIS can be monitored. By default the icon monitors a single
apcupsd at 127.0.0.1:3551. See command line options below for adding
additional monitors.
* Tray icon can be installed individually (disable other packages in the
installer) for users who want to use the icon only.
* Apctray command line options:
apctray.exe
- No parameters: Start any instances listed in registry. If no
instances in reg, start a default instance monitoring the local
machine (127.0.0.1:3551).
apctray.exe /host foo /port 3551 /add
- Add a monitor for the given host and port.
apctray.exe /host foo /port 3551 /del
- Remove the given monitor.
apctray.exe /del
- Remove all monitors.
apctray.exe /install
- Configure apctray to start automatically.
apctray.exe /remove
- Do not start automatically.
apctray.exe /kill
- Shut down apctray
BUG FIXES
* The win32 portions of winapcupsd have been almost entirely rewritten.
The code is cleaner (mostly) and lots of unused baggage has been
removed.
* USB fix for BackUPS LCD series. This fix carries a risk of breaking
other
models, but test results are positive so far.
* Fix linux-usb device detection bug when multiple hiddev nodes are
present. Fixes Fedora Bugzilla #245864:
<https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=245864>
* Fix SNMP port selection when using SNMP driver
* Add workaround for broken BackUPS Pro model that returns certain
reports encoded in ASCII. Based on a patch from David Fries
<David@Fries.net>.
* apcsmart: Wait 20 seconds before declaring COMMLOST. This is necessary
when using a smart serial cable on an UPS with an SNMP monitoring card
installed. The SNMP card appears to disrupt serial comms for several
seconds when interesting events are in progress.
* Documentation updates: Fix up udev info for modern Linux distros.
Update Windows section for apctray.
* Don't leak unnecessary descriptors to child when execing apccontrol.
* Fix bug with multi-threaded net_open() calls. net_open() was using
a global buffer for the destination address. Yikes! Bug manifestied
itself in apctray with multiple monitors occasionally (and
timing-dependently) pointing to the wrong UPS.
* Correct multimon.conf humidity monitoring. Problem fixed by
Patrick Frei. Reference:
https://bugzilla.novell.com/show_bug.cgi?id=199834
* Fix race between attach_ups() and detach_ups() which could result
in the UPSINFO structure being freed prematurely. Thanks to James
Abbott <j.abbott@imperial.ac.uk> for running many tests to help me
find this bug.
* Remove dependency on libc++ (again). Must use gcc as linker when
using libsupc++ since g++ automatically links against full libc++.
Don't need to bump PKGREVISION as by default, options as on (i.e. same as before)
Add cgi and snmp options (on by default)
Remove trailing spaces.
Fix path in RCD_SCRIPT_SRC, and let RCD_SCRIPT install it in share/example/rc.d/. Based on patch from MASUDA Hideo in pkg/36970, and advise from Joerg Sonnenber.
Properly handle config files in $PREFIX/etc. Not sure how this worked with the previous version of the package ... Pointed out by Bernd Ernesti.
Use a more up-to-date config file as example Add rc.d keywords to the startup script both suggested by Bernd Ernesti.
Update to 3.14.1, based on patches sent in PR pkg/35594 and pkg/36246.
As a side effect this should make apcupsd build on netbsd-4 and current.
pkgsrc changes: cgi and snmp are now enabled by default.
Relevant changes since 3.12.4:
Unreliable MASTER/SLAVE networking mode is removed
PowerChute Network Shutdown driver (protocol available in the AP9617 family
of smart slot modules)
New configuration directives to set paths at runtime
Prepare for switching to NO_MTREE=yes.
Allow this to build on DragonFly. Complete untested, feedback is welcome. If it is provided, it might be worth to fix the distribution name :-)
Enable USB by default, it works fine once uhidev is disabled in kernel and doesn't hurt serial connections. Bump pkgrevision.
Change 'USE_LANGUAGES+= c++' to 'USE_LANGUAGES= c c++'. It seems that 'c' isn't in USE_LANGUAGES by default, and this cause the configure script to fail (I still don't know why it works for me). Pointed out by Martti Kuparinen in private mail, and Robert Elz in PR pkg/35064.
Update to 3.12.4. Summary of changes since 3.8.6: * Support for USB UPSe (not enabled in pkgsrc) * new networking driver (net) that uses the NIS interface rather than the older master/slave networking * The apctest program has been enhanced to do EEPROM programming in a much more interactive way than the prior versions. * Added a ONBATTERYDELAY config, time to switch to onbattery state after a power failure. New event "offbattery", which is the same as mainsback but only sent if we got to state onbattery * new snmp driver, with trap support. * Battery disconnect and reconnect events
The Apcupsd homepage has moved to http://www.apcupsd.org.
BUILD_USE_MSGFMT and USE_MSGFMT_PLURALS are obsolete. Replace with USE_TOOLS+=msgfmt.
Recursive revision bump / recommended bump for gettext ABI change.
Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk automatically detects whether we want the pkginstall machinery to be used by the package Makefile.
Ran "pkglint --autofix", which corrected some of the quoting issues in CONFIGURE_ARGS.
Fixed pkglint warnings. The warnings are mostly quoting issues, for
example MAKE_ENV+=FOO=${BAR} is changed to MAKE_ENV+=FOO=${BAR:Q}. Some
other changes are outlined in
http://mail-index.netbsd.org/tech-pkg/2005/12/02/0034.html
Merge CONF_FILES/SUPPORT_FILES and CONF_FILES_PERMS/SUPPORT_FILES_PERMS
as the INSTALL and DEINSTALL scripts no longer distinguish between
the two types of files. Drop SUPPORT_FILES{,_PERMS} and modify the
packages in pkgsrc accordingly.
Change the CONFIGURE_ENV to use the variables users are supposed to set, rather than the autoconf cache variables.
Prevent paths to the build directories from being included in the package. Bump PKGREVISION.
Remove USE_GNU_TOOLS and replace with the correct USE_TOOLS definitions: USE_GNU_TOOLS -> USE_TOOLS awk -> gawk m4 -> gm4 make -> gmake sed -> gsed yacc -> bison
Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used.
Use VARBASE.
The default location of the pkgsrc-installed rc.d scripts is now under share/examples/rc.d. The variable name already was named RCD_SCRIPTS_EXAMPLEDIR. This is from ideas from Greg Woods and others. Also bumped PKGREVISION for all packages using RCD_SCRIPTS mechanism (as requested by wiz).
Kill manual use of RCD_SCRIPTS_EXAMPLEDIR, set RCD_SCRIPT_SRC.apcupsd to the appropriate path instead.
RCD_SCRIPTS_EXAMPLEDIR was just changed to be a relative directory
under ${PREFIX} instead of being an absolute path.
So fix the references using RCD_SCRIPTS_EXAMPLEDIR to be
${PREFIX}/${RCD_SCRIPTS_EXAMPLEDIR}.
This should have no changes to use before.
Please note that the MESSAGE files in most cases are wrong in the
first place. We have automated mechanisms and could have an automated
message for explaining rc.d script usage. (This is something to do!)
Libtool fix for PR pkg/26633, and other issues. Update libtool to 1.5.10 in the process. (More information on tech-pkg.) Bump PKGREVISION and BUILDLINK_DEPENDS of all packages using libtool and installing .la files. Bump PKGREVISION (only) of all packages depending directly on the above via a buildlink3 include.
The RCD_SCRIPTS mechanism expects the rc.d script to be installed to
${RCD_SCRIPTS_EXAMPLEDIR} instead of ${PREFIX}/etc/rc.d. (Okay'd by bouyer@.)
Convert to buildlink3.
replace deprecated USE_GMAKE with USE_GNU_TOOLS+=make.
Back out last change related to moving ncurses/buildlink2.mk to curses.buildlink2.mk. This was wrong because we _really_ do want to express that we want _n_curses when we include the buildlink2.mk file. We should have a better way to say that the NetBSD curses doesn't quite work well enough. In fact, it's far better to depend on ncurses by default, and exceptionally note when it's okay to use NetBSD curses for specific packages. We will look into this again in the future.
move ncurses/buildlink2.mk to mk/curses.buildlink2.mk, as it provides support for base system curses/ncurses as well as ncurses itself. suggested by wiz.
s/netbsd.org/NetBSD.org/
PKGREVISION bump for libiconv update.
Pull up revision 1.6 (requested by bouyer in ticket #1235): Update to 3.8.6. Changelog: Fixed root exploit of slave machines If you use the network features of apcupsd, you probably want to upgrade.
Update to 3.8.6 Changelog: Fixed root exploit of slave machines If you use the network features of apcupsd, you probably want to upgrade.
Instead of including bsd.pkg.install.mk directly in a package Makefile, have it be automatically included by bsd.pkg.mk if USE_PKGINSTALL is set to "YES". This enforces the requirement that bsd.pkg.install.mk be included at the end of a package Makefile. Idea suggested by Julio M. Merino Vidal <jmmv at menta.net>.
Whitespace fix
Update to 3.8.5. Summary of changes since 3.6.2: . New network interface to publish to clients the UPS status . New master/server network code that is more fault tolerant . Internationalization . Use GNU getopt . Logging on syslog . Events logged in a file like APC's PowerChute . Sync code removed: now only async processes are used . Updated documentation (HTTP version) . Bug fixes and enhancements: too many to tell them all . no more powersc script, is has been remplaced with apccontrol . In master/slave configurations, all masters and slaves must be updated at the same time. Version 3.8.0 is not compatible with versions prior to 3.8.0-pre4. . Support for the Back-UPS Office series of UPSes . Fixed dumb UPSes working with the Custom Simple cable. . Correction of a buffer overflow on certain newer UPSes. . More fault tolerant on startup in master/slave configuration. . Additional STATUS variables (number of times on battery, amount of time on batteries, time/date of last transfer to batteries, apcupsd start time/date). . apctest program for testing serial ports. . Automatic notification of certain events by email. . Detects Self Test and reports it as such rather than a Power Failure. . For SmartUPSes, apcupsd does a much better job of adapting to the actual features of the UPS and is more efficient. . Add Battery Runtime Calibration to apctest . UPSNAME now sets upsname if given. Otherwise, apcupsd attempts to get name from UPS, if not found, uses hostname, finally "default". . Added Ambient Temperature and Humidity to multimon (Carl Erhorn) A number of the configuration statements have changed since versions 3.6.2. You should either take the new apcupsd.conf file and modify it, or update your existing file. In general, we recommend starting with the new file. If you have used a prior version of apcupsd, the CONTROL script file (/sbin/powersc) has now been replaced by $SYSCONFDIR/apcupsd/apccontrol. Consequently, the CONTROL configuration statement is obsolete. The following configuration statements have been replaced by scripts called from SYSCONDFIR/apcupsd/apccontrol, and thus are obsolete: BATTCMD, LIMITCMN, LOADCMD, PWRCMD, REBOOTCMD, REMOTECMD, RETCMD, and TIMECMD. If you use the master/slave networking code, please be aware that the
buildlink1 -> buildlink2.
get rid of autoconf build dependency by patching configure
Remove commented USE_LIBINTL definitions ... we already use the gettext-lib/buildlink.mk file.
Mechanical changes to 375 files to change dependency patterns of the form foo-* to foo-[0-9]*. This is to cause the dependencies to match only the packages whose base package name is "foo", and not those named "foo-bar". A concrete example is p5-Net-* matching p5-Net-DNS as well as p5-Net. Also change dependency examples in Packages.txt to reflect this.
http support also needs threads, so disable http for now as well
Use wildcard dependence on "autoconf" package.
Use gettext-lib buildlink.mk instead of USE_LIBINTL. Fixes problem noted in recent bulk build.
CPPFLAGS is now passed to MAKE_ENV and CONFIGURE_ENV by bsd.pkg.mk, so adapt by moving CPPFLAGS settings to top-level, and removing explicit inclusion of CPPFLAGS into MAKE_ENV and CONFIGURE_ENV.
Move BUILD_USES_MSGFMT in DEPENDS block, mostly by removing empty lines.
Change BUILD_DEPENDS semantics: first component is now a package name+version/pattern, no more executable/patchname/whatnot. While there, introduce BUILD_USES_MSGFMT as shorthand to pull in devel/gettext unless /usr/bin/msgfmt exists (i.e. on post-1.5 -current). Patch by Alistair Crooks <agc@netbsd.org>
Update to new COMMENT style: COMMENT var in Makefile instead of pkg/COMMENT.
Make that "autoreconf" -- there is no "autoremake".
Use full pathname "${LOCALBASE}/bin/auto..." in dependences and make
targets. This includes a fix for PR pkg/12125 by Tomasz Luchowski.
set CPFLAGS (no thats not a typo) in CONFIGURE_ENV to make sure libintl.h is found.
USE_LIBINTL and BUILD_DEPENDS instead of DEPENDS on gettext; fix PLIST. Update HOMEPAGE and MASTER_SITE.
Update apcupsd to 3.6.2. Package provided by Greg Woods <woods@weird.com> in pkg/10552. Changes from version 3.5.8: Network is fully functional under non-threaded compile. Possible fix for "pipe_master_status" calls on slaves. Added 940-1524C smart signal cable support. Added internationalization support. There is _only_ the support but no current code is written for the intl package. It can be compiled in, but intl strings have still to be translated (to be done in the future). Added new configuration options to reduce init time of daemon. powersc CONFIG powersc NAME powersc BATTERY Fixes a FIFO error
apcupsd, a daemon to manage and monitor APC UPSes.
Initial revision