This release is a backport of the development version. Many changes
have already been backported previously. Thus it is more a
synchronisation release, though it includes many bugfixes and support
for new models.
- support for new devices: APC Smart-UPS with 6TI firmware; Belkin
Small Enterprise F6C1500-TW-RK; Compaq R3000 XR, R5500 XR; Cyber
Power 550SL, 725SL, 685AVR, 800AVR, 1200AVR, AE550, BC1200 and
many similar models; Eltek; Inform GUARD; Microsol Rhino; Opti-UPS
PowerES 420E; PowerMan RealSmart, BackPro; Powerware PW9315 3-phase;
SOLA 305; Tripp-Lite SMART550USB, SMART2200RMXL2U, OMNI1000LCD,
OMNI900LCD, OMNI650LCD, 1500 LCD, AVR550U; Viewsonic PowerES 420E.
- bcmxcp: added 3-phase support
- megatec: better hardware support, more instant commands
- mge-hid: support more instant commands
- newhidups: fixed APC and Tripp Lite bugs, various memory bugs,
improved report buffering, improved Solaris support, added
'-x explore' option for easy diagnosis of new devices
- solis: shutdown programming, support new cables, Solaris support
- tripplite_usb: updated SMARTPRO support, fixed OL/OB reporting,
better error handling, some memory bugs
- new dummy-ups driver simulator
- added HTML interface for access to CGI scripts
- powerpanel: new driver for CyberPower BC1200 and similar models
the owner of all installed files is a non-root user. This change
affects most packages that require special users or groups by making
them use the specified unprivileged user and group instead.
(1) Add two new variables PKG_GROUPS_VARS and PKG_USERS_VARS to
unprivileged.mk. These two variables are lists of other bmake
variables that define package-specific users and groups. Packages
that have user-settable variables for users and groups, e.g. apache
and APACHE_{USER,GROUP}, courier-mta and COURIER_{USER,GROUP},
etc., should list these variables in PKG_USERS_VARS and PKG_GROUPS_VARS
so that unprivileged.mk can know to set them to ${UNPRIVILEGED_USER}
and ${UNPRIVILEGED_GROUP}.
(2) Modify packages to use PKG_GROUPS_VARS and PKG_USERS_VARS.
Changes since nut-2.0.3:
- The newhidups critical bug (segmentation fault) has been fixed. It has
also received some more care, like buxfixes and new models support and
enhancement for Solaris.
- A bug has been fixed in NUT core to support resuming from suspend-to-disk.
This should also fix other similar issues, like time synchronisation
through the NTP - Network Time Protocol.
- The mge-shut driver now better detects the Low Battery status, support
new models and fixes some wrong status and data. It also fixes some
issue where the UPS wasn't restarting (refer to mge-shut manpage).
- The genericups custom configuration through ups.conf is working again.
- The genericups driver type 22 also support CyberPower 725SL
(and maybe others SL models).
- The new megatec driver, which will replace a bunch of drivers by nut 2.2
(refer to docs/megatec.txt and UPGRADING) has been backported from the
trunk (Development tree). The powermust driver has also received some
attention.
- The new rhino driver was added to support Microsol Rhino UPS hardware
The solis has also been improved for solaris compatibility, and
internal / external shutdown programming. solis can now save external
shutdown programming to ups, and support new cables for solis 3.
- Several fixes and improvements have been made to upsrw, upsset,
cpsups, tripplite_usb and the FAQ.
From UPGRADING:
- users of the following drivers (powermust, blazer, fentonups, mustek,
esupssmart, ippon, sms, masterguard) are encouraged to switch to megatec,
which should replace all these drivers by nut 2.2. For more information,
please refer to doc/megatec.txt
still, upsd should start before upsmon when they are running on the same
machine. The current setup (where upsmon.sh has REQUIRE: upsd) results in
errors like "rcorder: requirement `upsd' in file `upsmon' has no providers."
when you don't copy the upsd script to /etc/rc.d and set upsd=NO in
/etc/rc.conf.
Hence, remove REQUIRE: upsd from upsmon.sh and add BEFORE: upsmon to upsd.sh,
as suggested by jnemeth on tech-userlevel@. Bump PKGREVISION.
backslashes anymore. A single backslash is enough. Changed the
definition in all affected packages. For those that are not caught, an
additional check is placed into bsd.pkginstall.mk.
Numerous changes (see NEWS for full list), including:
* Updated support for various UPS models, including porting various
drivers to the 2.0 tree.
* Call varargs functions with "%s" instead of raw strings from config files.
And always is defined as share/examples/rc.d
which was the default before.
This rc.d scripts are not automatically added to PLISTs now also.
So add to each corresponding PLIST as required.
This was discussed on tech-pkg in late January and late April.
Todo: remove the RCD_SCRIPTS_EXAMPLEDIR uses in MESSAGES and elsewhere
and remove the RCD_SCRIPTS_EXAMPLEDIR itself.
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).
the RCD_SCRIPTS rc.d script(s) to the PLIST.
This GENERATE_PLIST idea is part of Greg A. Woods'
PR #22954.
This helps when the RC_SCRIPTS are installed to
a different ${RCD_SCRIPTS_EXAMPLEDIR}. (Later,
the default RCD_SCRIPTS_EXAMPLEDIR will be changed
to be more clear that they are the examples.)
These patches also remove the etc/rc.d/ scripts from PLISTs
(of packages that use RCD_SCRIPTS). (This also removes
now unused references from openssh* makefiles. Note that
qmail package has not been changed yet.)
I have been doing automatic PLIST registration for RC_SCRIPTS
for over a year. Not all of these packages have been tested,
but many have been tested and used.
Somethings maybe to do:
- a few packages still manually install the rc.d scripts to
hard-coded etc/rc.d. These need to be fixed.
- maybe remove from mk/${OPSYS}.pkg.dist mtree specifications too.
Many changes, including
* various configuation file format changes
* most UPS drivers enhanced
* upsmon/upssched support a lockfile
* chroot jails supported
* various bugfixes
(Refer to http://random.networkupstools.org/source/1.4/new-1.4.1.txt
for more information)
pkg update based on work sent in private email by Daniel Farrugia,
with various fixes by me.
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>.
I *really* dislike how newapc changed from supporting INFO_RUNTIME
(runtime in minutes, which is what the UPS actually reports) to
INFO_BATT_RUNTIME (runtime in seconds, which is UPS result * 60),
because the latter is much less useful as a realistic guess (IMHO),
and because this broke my upslog format and ups monitoring stuff
that used '%VAR runtime'.
(Unfortunately, newapc is written in a way which precludes supporting
multiple results from the same 'UPS status code' (in this case
`j'), so we can't support both results at this time. I decided
that INFO_RUNTIME is more useful, because '81' (minutes) is easier
to "use" than '4860' (seconds))
- change from tcp/ip port 3305 to the IANA assigned 3493
- all old-style drivers have been deprecated:
aeg bestfort bestuferrups engetron ipt-anzen
mgeups multilink mustekups optiups sms
toshiba1500 ups-trust425+625 upseyeux
- newvictron renamed to victronups
- newpowercom renamed to powercom, replacing previous powercom
and ups-trust425+625 as well
- upsd.users(5) has changed formats.
NOTE: you need to update your file for upsd(8) to function
- upsmon can reload its configuration on the fly (with '-c reload')
- upsdrvctl can power off UPS's in an orderly fashion
- new drivers:
- tripplite - Tripp-Lite SmartUPS models
- newvictron - IMV/Victron hardware
- bestferrups801-807 - Best FerrUPS 8.01-8.07 firmware
- genericups type 14 - for Online P-series units
- upsdrvctl now waits up to "maxstartdelay" (default 45) seconds for a
driver to start before it gives up and goes to the next entry
(refer to CHANGES in the distribution, or
http://www.exploits.org/nut/release/new-0.45.4.txt
and
http://www.exploits.org/nut/release/new-0.45.5.txt
for a detailed list)