<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/nut/Makefile, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git-03.infra.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git-03.infra.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/'/>
<updated>2026-03-03T18:53:14Z</updated>
<entry>
<title>nut: fix driver, server, and monitor reload/stop</title>
<updated>2026-03-03T18:53:14Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-01-11T10:41:48Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=90d3d1e9d013e9cc3fec755f46826d8feab94cfa'/>
<id>urn:sha1:90d3d1e9d013e9cc3fec755f46826d8feab94cfa</id>
<content type='text'>
Updated configuration was not being applied after config change. This
was due to the means used to do the daemon reloads.

Closes #28298 "Drivers not restarted on config change"

Enable creating PID files for the server, driver, and monitor daemon
processes. This allows to use NUT's built-in facilities for signalling
the daemon's.

For server, when reloading:
1. Check if upsd is running
   1. If not, start it.
   2. If it is send reload signal to upsd
2. For each driver:
   1. Check if the driver is running
      1. If it is, send reload-or-exit signal to driver
      2. If driver is not running, start it
3. Attempt to start server (upsd and drivers) if service was stopped.

For server, when stopping:
1. Check if upsd is running
   1. If it is send stop signal to upsd
   2. Ensure it really is stopped
2. For each driver:
   1. Check if the driver is running
      1. If it is, send stop signal to driver
      2. If driver is still running, stop it.
3. If the server process is active (even with not upsd or drivers),
   stop it.

For monitor, send the reload signal on config change, with fallback to
stopping and starting the daemon.

Change the names of variables and functions to make it more clear what
is being acted on, configured, or otherwise touched.

Avoid confusing messages in syslog

* Avoid attempting to remove a procd server instance that does not exist
  as doing so results in confusing/scary messages in syslog, such as:

  Command failed: ubus call service delete
  { "name": "nut-server", "instance": "upsd" } (Not found)

In NUT some models of UPS use shutdown_delay rather than offdelay, and
yet others use usd for the same purpose. shutdown_delay and usd were
previously not available in the list of available driver options, so
add them.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: update to 2.8.4</title>
<updated>2025-08-24T18:48:56Z</updated>
<author>
<name>Sebastian Hamann</name>
</author>
<published>2025-08-19T13:33:02Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=6b8981f0103ff318846bdd56287862043437b410'/>
<id>urn:sha1:6b8981f0103ff318846bdd56287862043437b410</id>
<content type='text'>
See upstream changelog at
https://networkupstools.org/docs/release-notes.chunked/NUT_Release_Notes.html

New drivers:
* failover
* liebert-gxe
* microsol-apc
* nutdrv_hashx
* powervar_cx_ser
* nutdrv_siemens-sitop
* sms_ser
* bicker_ser
* ve-direct
* nhs_ser
* powervar_cx_usb

Signed-off-by: Sebastian Hamann &lt;code@ares-macrotechnology.com&gt;
</content>
</entry>
<entry>
<title>nut: switch to https:// download URL</title>
<updated>2025-08-24T18:48:56Z</updated>
<author>
<name>Sebastian Hamann</name>
</author>
<published>2025-08-19T11:53:33Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=f5371ab4347ea1104a0e3c4075fb071947075216'/>
<id>urn:sha1:f5371ab4347ea1104a0e3c4075fb071947075216</id>
<content type='text'>
Signed-off-by: Sebastian Hamann &lt;code@ares-macrotechnology.com&gt;
</content>
</entry>
<entry>
<title>nut: add --without-nut_monitor to configure args</title>
<updated>2025-01-24T18:22:28Z</updated>
<author>
<name>Jan Klos</name>
</author>
<published>2025-01-24T17:11:54Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=eaf00f62da131c7b4b4dbf556eda019e47b997e6'/>
<id>urn:sha1:eaf00f62da131c7b4b4dbf556eda019e47b997e6</id>
<content type='text'>
nut_monitor is not used anyway and is needlessly built &amp; does not work with python 3.13

Signed-off-by: Jan Klos &lt;jan@klos.xyz&gt;
</content>
</entry>
<entry>
<title>nut: specify pid path during build</title>
<updated>2024-10-02T20:26:36Z</updated>
<author>
<name>Matt Merhar</name>
</author>
<published>2024-08-23T19:21:41Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=dcc65127fb487d9a5c436dc35a08b2d1d0f8c2a7'/>
<id>urn:sha1:dcc65127fb487d9a5c436dc35a08b2d1d0f8c2a7</id>
<content type='text'>
nut was recently upgraded to 2.8.1 which includes a change in
configure.ac that uses /run for the pidfile if it exists during build.

Explicitly specify --with-pidpath to use the path that was used with
2.8.0 and prior.

The symptom here was that there'd be leftover processes when nut-monitor
was restarted.

Fixes: 82f36e0c781d ("nut: update to 2.8.1")
Fixes: https://github.com/openwrt/packages/issues/24106
Signed-off-by: Matt Merhar &lt;mattmerhar@protonmail.com&gt;
</content>
</entry>
<entry>
<title>nut: update to 2.8.1</title>
<updated>2023-12-18T17:28:17Z</updated>
<author>
<name>Paul Doran</name>
</author>
<published>2023-12-18T17:28:17Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=82f36e0c781d28ba8d6c48413a0c0582e7cc0ee8'/>
<id>urn:sha1:82f36e0c781d28ba8d6c48413a0c0582e7cc0ee8</id>
<content type='text'>
Signed-off-by: Paul Doran &lt;ruralroots@gmail.com&gt;
[remove upstream patch included in 2.8.1]
</content>
</entry>
<entry>
<title>treewide: remove AUTORELEASE</title>
<updated>2023-04-21T20:46:58Z</updated>
<author>
<name>Paul Fertser</name>
</author>
<published>2023-04-21T16:32:27Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=0c10c224be81f9221dabfab449855ab6718d2a0c'/>
<id>urn:sha1:0c10c224be81f9221dabfab449855ab6718d2a0c</id>
<content type='text'>
Automatically compute and substitute current values for all
$(AUTORELEASE) instances as this feature is deprecated and shouldn't be
used.

The following temporary change was made to the core:

diff --git a/rules.mk b/rules.mk
index 57d7995d4fa8..f16367de87a8 100644
--- a/rules.mk
+++ b/rules.mk
@@ -429,7 +429,7 @@ endef
 abi_version_str = $(subst -,,$(subst _,,$(subst .,,$(1))))

 COMMITCOUNT = $(if $(DUMP),0,$(call commitcount))
-AUTORELEASE = $(if $(DUMP),0,$(call commitcount,1))
+AUTORELEASE = $(if $(DUMP),0,$(shell sed -i "s/\$$(AUTORELEASE)/$(call commitcount,1)/" $(CURDIR)/Makefile))

 all:
 FORCE: ;

And this command used to fix affected packages:

for i in $(cd feeds/packages; git grep -l PKG_RELEASE:=.*AUTORELEASE | \
                              sed 's^.*/\([^/]*\)/Makefile^\1^';);
do
  make package/$i/download
done

Signed-off-by: Paul Fertser &lt;fercerpav@gmail.com&gt;
</content>
</entry>
<entry>
<title>nut: avoid picking up libi2c dependency</title>
<updated>2022-09-17T19:54:11Z</updated>
<author>
<name>Eneas U de Queiroz</name>
</author>
<published>2022-09-15T13:18:40Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=1d3e666fbe5724540407ec4ef3e609990ced8631'/>
<id>urn:sha1:1d3e666fbe5724540407ec4ef3e609990ced8631</id>
<content type='text'>
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 &lt;cotequeiroz@gmail.com&gt;
</content>
</entry>
<entry>
<title>nut: update to 2.8.0</title>
<updated>2022-09-11T02:40:10Z</updated>
<author>
<name>Eric Luehrsen</name>
</author>
<published>2022-09-10T18:27:56Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=f5c0f8297d8fadda2f4da81f09422985e997c67f'/>
<id>urn:sha1:f5c0f8297d8fadda2f4da81f09422985e997c67f</id>
<content type='text'>
-- 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 &lt;ericluehrsen@gmail.com&gt;
</content>
</entry>
<entry>
<title>nut: add cable type nut driver config</title>
<updated>2022-05-13T04:53:27Z</updated>
<author>
<name>Rob J. Epping</name>
</author>
<published>2022-05-11T21:17:06Z</published>
<link rel='alternate' type='text/html' href='https://git-03.infra.openwrt.org/feed/packages/commit/?id=67e49b7e0e837f8b8677b7ac70321879a941b928'/>
<id>urn:sha1:67e49b7e0e837f8b8677b7ac70321879a941b928</id>
<content type='text'>
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 &lt;epping@renf.us&gt;
</content>
</entry>
</feed>
