Age | Commit message (Collapse) | Author | Files | Lines |
|
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).
|
|
* Added support for Mustek PowerMust
|
|
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>.
|
|
the SIGHUP to all process causes them to reload their config files.
|
|
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))
|
|
Many changes, too many to list here.
See:
http://www.exploits.org/nut/release/1.2/new-1.2.1.txt
and (after installation):
/usr/pkg/share/doc/nut/UPGRADING
|
|
|
|
|
|
script handling and using @RCD_SCRIPTS_SHELL@.
as discussed with jlam.
|
|
|
|
have been converted to USE_BUILDLINK2.
|
|
- 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
|
|
Make sure the new ones get defined from the old ones.
|
|
every write, but only once after it's fully initialized, before it's
renamed and declared open for business. Analysis by Martin Husemann.
|
|
mmap()-ed shared with "upsd", so that "upsd" an read it back reliably.
This keeps "upsd" from complaining about stale data. Bump PKGREVISION.
|
|
- 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)
|
|
|
|
Noted by Stoned Elipot <seb@netbsd.org> in private email.
|
|
as they might not be there depending on whether INSTALL_RCD_SCRIPTS is set
in /etc/mk.conf when the package is built. Instead, assume that the other
rc.d scripts are in the same place as this "meta" script and locate them
using "dirname $0". Problem noted by Stoned Elipot <seb@netbsd.org> in
private email.
|
|
|
|
upsmon) doesn't need a config file.
|
|
- upsd can reload its config files on the fly.
- 'upsdrvctl status' will check for presence of pid files
- upsd can be stopped with 'upsd -c stop'
- newpowercom driver added
- cyberpower driver added
- more man pages
- various bug fixes
|
|
automatically, so no need to do it ourselves.
|
|
|
|
This value may be customized in various ways:
PKG_SYSCONFBASE is the main config directory under which all package
configuration files are to be found.
PKG_SYSCONFSUBDIR is the subdirectory of PKG_SYSCONFBASE under which the
configuration files for a particular package may be found.
PKG_SYSCONFDIR.${PKGBASE} overrides the value of ${PKG_SYSCONFDIR} for a
particular package.
Users will typically want to set PKG_SYSCONFBASE to /etc, or accept the
default location of ${PREFIX}/etc.
This obsoletes the use of CONFDIR, which was active for only 6 days, so no
need to have a workaround to still accept old CONFDIR settings.
|
|
|
|
the test for pre-rc.d systems to just whether /etc/rc.subr is present.
|
|
unset, then we use upsdrvctl to control the UPS drivers. Otherwise, we
control the one specified by ${upsdriver_type}.
|
|
scripts for other packages.
|
|
|
|
Also replace rc.d scripts with much better ones by Luke Mewburn
<lukem@wasabisystems.com> that were slightly editted by me to have some
minimal functionality on pre-rc.d systems.
|
|
${PREFIX}/sbin/ups-drivers.
|
|
|
|
specifically the RUNTIME field on my SmartUPS-1400.
|
|
|
|
- use FILES_SUBST_SED mechanism
- do NOT remove user & group upon DEINSTALL; instead remind the admin to do it
|
|
|
|
notable new features:
- upsdrvctl has more options. You can now say "stop" to stop all drivers, or
"stop <ups>" to stop just one. Also, "start <ups>" to just start one is
now supported.
- lots of man pages
- newapc driver converted to new framework
- new masterguard ups driver
- fentonups driver now recognizes the PowerCom SMK-800A
- bestups driver now does proper locking on the serial port
- sms driver table has been updated, and sms.txt provided to explain this
|
|
|