Commit Graph

14 Commits

Author SHA1 Message Date
Eneas U de Queiroz
987841db01 nut: ensure time_t is defined in upsclient.h
Use an upstream commit to ensure time_t is defined in upsclient.h,
fixing a compile failure in collectd.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-11-17 19:51:47 +08:00
Eneas U de Queiroz
ae13a0299d nut: avoid picking up libi2c dependency
Add --without-linux-i2c to configure arguments to avoid using i2c if
found in the staging dir.

Switch to AUTORELEASE.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2022-11-17 19:51:47 +08:00
Eric Luehrsen
44adc488c1 nut: update to 2.8.0
-- Release Message Snippet https://networkupstools.org/ --
After a long and windy trip since the last official release v2.7.4 half
a dozen years ago ... NUT v2.8.0! ... the new release includes numerous
new drivers, sub-drivers, protocols and bug-fixes, with many companies
and individuals chipping in with contributions of code. ...

Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
2022-11-17 19:51:47 +08:00
Rob J. Epping
ae207992b1 nut: add cable type nut driver config
at least driver apcsmart-old (maybe more) allow for specifying the
type of cable used. My old UPS does will not function when cable type
is not specified.

This will add support for configuration option 'cable'

Signed-off-by: Rob J. Epping <epping@renf.us>
2022-11-17 19:51:47 +08:00
Sergey V. Lobanov
d7c7755293 nut: fix build on macos
nut build fails on macos due to:
1. configure script can not use AR env var due to OpenWrt build
system provides only executable name (e.g. aarch64-openwrt-linux-musl-gcc-ar)
but configure script checks if AR has '/'. As a result, configure
script ignores AR env var and uses system `ar` but macos `ar` is
not compatible with the objects generated by OpenWrt GCC toolchain.

This commit explicitly sets ac_cv_path_AR=$(TARGET_AR) to use
OpenWrt toolchain AR.

2. configure script detects if build host is macos and adds
macosx_ups driver as a build target, but this driver can not be
build with OpenWrt toolchain because OpenWrt is Linux.

This commit explicitly disables macosx_ups driver using configure
flag --without-macosx_ups

Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
2022-11-17 19:51:47 +08:00
Pascal Coudurier
231f0e5ae3 nut: refactor upssched uci-defaults script
Add checks not to overwrite defaultnotify options in the nut-sendmail-notify fashion.
Use lists for defaultnotify instead of option.
Add check not to overwrite notifycmd if already defined.
upssched-cmd script must not be called directly, it is called by the upssched binary with needed arguments.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
2022-11-17 19:51:46 +08:00
Pascal Coudurier
3603d9d787 nut: refactor nut-monitor uci config file
Convert notifyflags options to lists as supported by the init script, so multiple options can be chosen.
Add SYSLOG default option to individuals notifyflags instead of deprecated flag 1|0.
Add comment for defaultnotify and individuals notifyflags about possible values.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
2022-11-17 19:51:46 +08:00
Pascal Coudurier
5d0703ceaf nut: fix typo in nut-monitor init script
This fixes a typo in the nut-monitor init script when building config file from uci config.

Signed-off-by: Pascal Coudurier <coudu@wanadoo.fr>
2022-11-17 19:51:46 +08:00
Seb Belcher
a5f83f9d2b nut: Add the option to compile Nut NetXML drivers with the Nut package.
Also modifies the nut-server init script to include options specific to the netxml driver.

Signed-off-by: Seb Belcher <sdjbelcher@gmail.com>
2022-11-17 19:51:46 +08:00
Rosen Penev
8ddd97b2f2 nut: fix compilation with GCC11
nut is a C++98 project which does not compile with GCC11's default of
C++17.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
2021-07-17 18:27:14 +00:00
lean
49b7495639 packages: merge upstream 2021-06-15 17:47:11 +08:00
coolsnowwolf
c36ad692b4 packages: sync to new packages 2020-07-08 14:18:52 +08:00
coolsnowwolf
1625aa4990 nut: bump version 2020-02-21 14:42:51 +08:00
coolsnowwolf
d17588da1a first commit 2018-10-18 16:56:47 +08:00