This is a developing project to monitor a large assortment of UPS hardware.
Network communications are used so that multiple systems can monitor a
single physical UPS and shut down together if necessary without any
special "sharing hardware" on the UPS itself. CGI scripts are provided
to monitor UPS status via a WEB browser.
===> The following configuration options are available for nut-2.8.5_1:
AVAHI=on: Zeroconf support via Avahi
BASH=on: Install programmable completions for Bash
CGI=on: Web CGI interface
DEV=off: Install developer tools
DOCS=on: Build and/or install documentation
FREEIPMI=on: freeipmi support
IPMIPSU=off: Use nut-ipmipsu support (experimental)
MANPAGES=on: Build and/or install manual pages
MODBUS=on: Modbus support
NEON=on: NEON XML/HTTP support
PDU=on: Powerman PDU support
SERIAL=on: SERIAL support
SNMP=on: SNMP network protocol support
USB=on: USB support
====> SSL protocol support: you have to select exactly one of them
SSL_OFF=off: No SSL support
OPENSSL=on: SSL/TLS support via OpenSSL
NSS=off: SSL/TLS support via NSS
===> Use 'make config' to modify these settings
Reason:
The nut file ownership fixups due to the UID/GID change from uucp/uucp
to nut/nut may not be desireable for all users. Some users with custom
file ownership may wish ownership to remain untouched. This revision
to the nut family of ports/packages allows users to optionally disable
automatic fixup of nut file ownership.
Affects: users of sysutils/nut and sysutils/nut-devel
Author: cy@freebsd.org
Reason:
As of PR/268960 Network UPS Tools will now run under its own UID and GID
instead of uucp. Users who wish to continue using the uucp user and
group may add NUT_USER=uucp and NUT_GROUP=uucp to their make.conf.
After upgrading sysutils/nut or sysutils/nut-devel with this patch,
restart devd. Then restart nut. This will fix up the permissions of
UPS USB devices and allow nut to start normally.
Eradicate USE_GNOME=pkgconfig
While here:
- Trim headers
- Convert USE_GMAKE to USES=gmake
- Convert USE_GNOME=gnomehack to USES=pathfix
- Convert USE_PERL5 to USES=perl5
In preparation of removing devel/libusb (expires 2013-04-30), remove it
from these ports.
Other changes:
- convert Makefile header
- convert to optionsNG
- remove indefinite article from comment
- drop support for FreeBSD < 8.0
- pet portlint (leave library ABI versions in LIB_DEPENDS)
- net-mgmt/spectools: change option name from GTK to GTK2 to use default
description from bsd.options.desc.mk
Approved by: portmgr (bapt)
- fix plist [1]
- bump PORTREVISION for plist change
[1] for some cases, as the config still seems to need patching not to autopick
depends
Reported by: Dewayne" <dewayne.geraghty@heuristicsystems.com.au>
Feature safe: yes
Update to 2.6.5.
XXX: for some of the OPTIONS, if the DEPENDS is installed, nut picks it up,
and the recorded dependencies and PLIST are wrong. Needs fixing.
PR: 171285
Submitted by: William Grzybowski
Feature safe: yes
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.
- Makes neon29 our default neon library. The neon 0.27.x to 0.29.x are API and
ABI backwards compatible. It is unnecessary to have more than one same
libraries (ie: neon28 and neon29) as it creates issue in our ports tree such
as CONFLICTS and made our Makefile complicate.
- Remove www/neonpp and www/neon28.
- Add USE_GNOME=ltverhack; it corrects the shared library version by change
from libneon.so.29 to libneon.so.27. It won't get bump again with no reason
unless ABI changes.
- Bump the PORTREVISION on all ports and chase the shared library change.
- Add info in the UPDATING for how to rebuild on all ports that depend on
neon.
PR: ports/148295
Approved by: lev (maintainer timeout, no respone for months),
portmgr
Tested by: pointyhat-exp by pav
- Chase libusb20 rename in r189585.
- Mark sane-backends broken on current due to changes
in USB stack.
Reviewed by: thompsa (old version), miwi
Tested by: miwi
- Update to 2.2.2
- Add new OPTIONS
- Other minor changes
- Depend on pkgconfig
PR: ports/124451
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de> (maintainer)
Reviewed by: mm
- Remove the DESTDIR modifications from individual ports as we have a new,
fully chrooted DESTDIR, which does not need such any more.
Sponsored by: Google Summer of Code 2007
Approved by: portmgr (pav)
- 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
Remove my name and e-mail address from these pkg-descr files for ports
that I no longer maintain. This was finally identified by a helpful user
as the source of the mystery e-mails that I still get from time to time
asking about support for them.
- Fix pkg-plist when building with cgi support
PR: 111928
Submitted by: Dima Panov <fluffy AT ns.ael.RU>
Approved by: Joerg Pulz <Joerg.Pulz AT frm2.tum.de> (maintainer)
clsung (mentor, implicitly)
- Update to 2.0.3
- Split rc.d script into three - one for each daemon
- Introduce user configurable variable NUT_USER, defaults to uucp
PR: ports/95015
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de> (maintainer)
- Update to 2.0.2
- Make the port as master for soon-coming new ports
- Resort MASTER_SITES
- Homour portlint
- Improve rcNG script
- New maintainer
PR: ports/83318
Submitted by: Joerg Pulz <Joerg.Pulz@frm2.tum.de>
Approved by: DougB
Declaim responsibility for this port. I no longer have time to maintain
it properly, and while I still use it, my ratty old UPS pales in comparison
to the fancy new stuff that is out today, and therefore I cannot effectively
test the program's functionality.
While I have not tested them, the updates in ports/83318 look reasonable,
and I suggest that the submitter would probably make a good maintainer.
From the PR, with some small mods from me:
1. Upgrade to the latest version, 2.0.1
2. Convert to rc.d style startup/shutdown script
3. Improve permissions on /var/db/nut
Download pgp signature file for the tarball.
PR: ports/81591
Submitted by: Dmitry A Grigorovich
Update to use the upsdrvctl program to start and stop. This should
remove the need to edit this file for 99% of users. Editing the config
files will still be necessary however.
Submitted by: Rob MacGregor <rob.macgregor@gmail.com>
Update to 1.4.1, which incorporates the security fix that was previously
a patch, and adds support for some new UPS'.
For the port, update MASTER_SITES, add new stuff and retire one driver
that's been consolidated into one of the existing drivers.
Upgrade to version 1.4.0, the latest stable version.
Re-enable the CGI programs, now that they build.
Kind assistance provided by: Guido Falsi <mad@madpilot.net>
Major overhaul to reflect the update to the latest version, 1.2.1.
Development stalled on this distribution for a while, then went into a
frantic period of many updates per month. Now it's stabilized to the
point that it's worth keeping current again.
There are many new models of UPS supported, and a lot of changes to
how the various tools work, so users of the old port should read UPGRADING.
Unfortunately, the CGI stuff depends on a version of gd that we don't have
yet, so that'll have to be sidelined for a while.
Since the distribution no longer comes with a sample FreeBSD script
(which I hope to remedy), the patch is now superfluous. So instead,
provide a sample script here.
The safest way to handle nut's state and pid files is to have them all sent to
a directory that's writeable by user uucp. I generally configure this manually
myself when I install nut, and since there are so many other things that need
manual configuration, I never thought it was a big deal. However, a user
pointed out that it'd be nice if the thing (well, at least this part of the
thing) worked more or less out of the box, so here you go.
* Update to 0.45.1, which as numerous new features, new UPS', and many
bugfixes. Check out http://www.exploits.org/nut/release/new-0.45.1.txt for
more details. Highlights include experimental USB support, and the various
programs dropping more privileges after startup.
Update to 0.44.2. File layout changed again: all ups drivers now located in
the ${PREFIX}/libexec/nut. Some of the tools moved to ${PREFIX}/bin directory.
Startup script renamed to nut.sh.sample.