<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/net/nut/files, branch master</title>
<subtitle>Mirror of packages feed</subtitle>
<id>https://git.openwrt.org/feed/packages/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/feed/packages/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/'/>
<updated>2026-08-19T20:00:56Z</updated>
<entry>
<title>nut: enable shared NSS certificate/key database for upsd and upsmon</title>
<updated>2026-08-19T20:00:56Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-05T11:50:00Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=b384d15813a05efaee33fec3455f6bd7f77d83e2'/>
<id>urn:sha1:b384d15813a05efaee33fec3455f6bd7f77d83e2</id>
<content type='text'>
Create a group to allow sharing directories files between upsd and
upsmon, and create a shared NSS certificate/key database on postinst
of nut-common (providing the database dir does not already exist).

Also enables preserving the shared database across sysupgrades.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: enable configuring more SSL-related options</title>
<updated>2026-08-19T20:00:56Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-05T11:42:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=79db1ee5737efc35c7aec2ab27dde761bb3c03cc'/>
<id>urn:sha1:79db1ee5737efc35c7aec2ab27dde761bb3c03cc</id>
<content type='text'>
Expose the configuration knobs as UCI config for more SSL options.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: enable SSL via NSS by default</title>
<updated>2026-08-19T20:00:56Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-02T04:02:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=cdb56f2b0a14415d4043c05c55aed53643df47c8'/>
<id>urn:sha1:cdb56f2b0a14415d4043c05c55aed53643df47c8</id>
<content type='text'>
Enable libnss (Mozilla NSS) for SSL, and make it the default.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: use common log functions instead of direct logger calls</title>
<updated>2026-07-19T09:23:51Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-18T22:51:35Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=a9f0e9fae4c33094a51a190ff06f6ea26acfbd92'/>
<id>urn:sha1:a9f0e9fae4c33094a51a190ff06f6ea26acfbd92</id>
<content type='text'>
Where possible prefer the log wrappers to direct logger calls.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: add process id to log messages</title>
<updated>2026-07-19T09:23:51Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-18T22:49:27Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=7a76011672de559cbabceb9672aca59a9ffb4205'/>
<id>urn:sha1:7a76011672de559cbabceb9672aca59a9ffb4205</id>
<content type='text'>
Show the PID beside the syslog_id to aid debugging.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: manage logging</title>
<updated>2026-07-19T09:23:51Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-18T22:24:21Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=95e3d348f8dac1fff73f1e506b0c46ca17adafa4'/>
<id>urn:sha1:95e3d348f8dac1fff73f1e506b0c46ca17adafa4</id>
<content type='text'>
NUT (upstream) logging has changed. With the introduction of
NUT_DEBUG_SYSLOG we can set it to "stderr" and have NUT's messages
go to stderr only.

This avoid most duplicate messages when procd sends stderr to syslog.

The reverse (syslog only from NUT) is not a current configuration
option. See the section for NUT_DEBUG_SYSLOG at
https://networkupstools.org/docs/man/nut.conf.html#_directives

This is needed because we use '-FF' so that the daemons remain in the
foreground, which is required for procd to manage them. When using
'-FF' logging behaves differently in NUT than when backgrounded.

Unfortunately, there is still some work to be done upstream to
completely eliminate duplicate messages, so some message continue to
appear twice, though not neccessarily with the same facility.priority.

See also
https://github.com/jimklimov/nut/blob/0c3eed09b89cce1e5c0c65ca03d05b4612371cb8/UPGRADING.adoc#changes-from-282-to-283
and
https://github.com/openwrt/packages/pull/29896#issuecomment-5012737643

Conversely, the log messages the initscripts emit are now configured to
emit only to syslog and not to stderr. This avoids duplicates messages
caused by procd's automatic (not configurable) behaviour of sending
the initscript's stderr to syslog, while preserving the syslogid,
facility and priority we want.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: split interface_triggers function</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-07T02:08:01Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=4638c42055946ac424d208f6e92aadc9eb8dd884'/>
<id>urn:sha1:4638c42055946ac424d208f6e92aadc9eb8dd884</id>
<content type='text'>
Using add_interface_triggers and check_interface_up is a
better separation of concerns and the code has little in
common (no duplication of code concerns).

While we are at it make both nut-monitor and nut-server failure of
add_interface_triggers non-fatal with a logged error message.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: add more common validators and add more validation</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-06T23:00:39Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=e3f051cefc5c43f97f28d32976a69622bf8cd98b'/>
<id>urn:sha1:e3f051cefc5c43f97f28d32976a69622bf8cd98b</id>
<content type='text'>
Factor out some common validation code into some validator functions,
and add more UCI config validation.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: simplify/improve consistency for RUNAS and STATEPATH</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-06T22:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=0ebfb5b3e00c413ad001198d7d2f01675757f7ff'/>
<id>urn:sha1:0ebfb5b3e00c413ad001198d7d2f01675757f7ff</id>
<content type='text'>
We claimed we only supported a single upsd section named 'upsd' and a
single uspmon section named 'upsmon', but when determining RUNAS
and STATEPATH we were using overly-complex functions as we were
attempting to support multiple upsd and upsmon sections.

Simplify the logic by adhering to our stated support.

While were are at it we make RUNAS handling more consistent between
nut-server (upsd) and nut-monitor (upsmon).

We no longer try to limp along if RUNAS is not set by find_runas; to do
this properly would require over-complicated logic when setting file
and directory permissions and ownership.

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
<entry>
<title>nut: minor fixes found via automated code review</title>
<updated>2026-07-15T07:34:39Z</updated>
<author>
<name>Daniel F. Dickinson</name>
</author>
<published>2026-07-03T21:05:14Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/feed/packages/commit/?id=bb320e47d786e73270820cf2ed2db03b9b295a3c'/>
<id>urn:sha1:bb320e47d786e73270820cf2ed2db03b9b295a3c</id>
<content type='text'>
* Fixes a missing word in a comment
* Fixes inconsistent indentation in sample configurations
* Drops redundant default assignment in find_statepath()

Signed-off-by: Daniel F. Dickinson &lt;dfdpublic@wildtechgarden.ca&gt;
</content>
</entry>
</feed>
