aboutsummaryrefslogtreecommitdiff
path: root/net/nut
Commit message (Collapse)AuthorAge
...
* nut: Reduce user error with POWERDOWNFLAGDaniel F. Dickinson2018-08-29
| | | | | | | | | Instead of making POWERDOWNFLAG an uci option the user can only change it via initscript edits. This avoids chance for users to miss the required change to nut-driver when setting an UCI option for nut-monitor which results in failure to do FSD on the UPS. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Use diff non-privileged user for upsmonDaniel F. Dickinson2018-08-29
| | | | | | | | By default use a non-privileged user that is different than the server or driver (when they are running non-privileged). This is recommended by upstream. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Use 'real' procd for nut-cgiDaniel F. Dickinson2018-08-29
| | | | | | | | Even though nut-cgi doesn't run a daemon, using procd triggers is helpful for updating the generated config file when the UCI config changes. So implement this and 'modernize' nut-cgi initscript Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: nut-cgi: Add support for upssetDaniel F. Dickinson2018-08-29
| | | | | | | This allows config for setting variables and/or running commands from the CGI. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Make FSD really workDaniel F. Dickinson2018-08-29
| | | | | | | | Forced shutdown of the UPS was not actually happening before due to lack of specific commands doing the shutdown. This (and the nut-driver initscript) fix that. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Use 'real' procd init for nut-monitorDaniel F. Dickinson2018-08-29
| | | | | | | | | This fully procdifies nut-monitor, which fixes some issues with very slow restarts (due to /lib/functions/procd.sh using a very long delay for non-native scripts doing restart) as well as gives respawning, etc. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Add USB hotplug supportDaniel F. Dickinson2018-08-29
| | | | | | | | usbhid-ups has the necessary information in the source, so let's support USB hotplugging out of the box. Takes advantage of the procd support now in nut-server initscript. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Reorganize nut-server to clarify nut-driverDaniel F. Dickinson2018-08-29
| | | | | | | | | | | | | | | | | | Clarify the different between the common nut-driver portions of nut-server and the nut-server (upsd) proper. nut-driver can't be used without nut-server so there is no compelling reason to split into a separate package, but the reorganization makes such a move easier and makes it clear what each bit is for. While we continue to use a single initscript, it's a properly procdified one which handles the upsd daemon as a different instance than the driver instances. This resolves a race condition in which upsd and drivers fail to start do to a degree of interdepedence. Also properly 'procd'ifies the nut-server initscript. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Add missing conffilesDaniel F. Dickinson2018-08-28
| | | | | | | | We want to include the symlinks to the generated configurations in conffiles so that if the user replaces them symlinks with traditional NUT configuration it is preserved across sysupgrade. Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Fix for nut-upsmon without nut-serverDaniel F. Dickinson2018-08-02
| | | | | | | | | nut-monitor failed to create required dir /var/etc/nut, as well as failing to set appropriate user on the directory and conf files. Fixing this closes https://github.com/openwrt/packages/issues/6644 Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Update my emailDaniel F. Dickinson2018-07-04
| | | | Signed-off-by: Daniel F. Dickinson <cshored@thecshore.com>
* nut: Add PKG_FIXUP:=autoreconfEneas U de Queiroz2018-06-13
| | | | | | We need to force this since a *.m4 file is patched. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
* nut: added compatibility with openssl-1.1Eneas U de Queiroz2018-06-01
| | | | | | Also added a fix in a check for empty string. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
* net/nut: Fix typo is serial config optionKarl Palsson2017-09-11
| | | | | | Fixes: 5503dac80676 "Add back serial support" Reported-by: Znevna on irc Signed-off-by: Karl Palsson <karlp@tweak.net.au>
* treewide: run "make check FIXUP=1"Etienne Champetier2017-08-29
| | | | | | | | | | fix Makefile chmod (644) replace MD5SUM with HASH add PKG_MIRROR_HASH when PKG_SOURCE_PROTO:=git (PKG_SOURCE_PROTO:=svn tarballs are not reproducible for now) Signed-off-by: Etienne Champetier <champetier.etienne@gmail.com>
* net/nut: Ship upsset.conf for nut-cgiDaniel Dickinson2017-01-11
| | | | | | | Per user request ship the sample upsset.conf file so that upsset functionality can be used with nut-cgi Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Avoid building with libwrap when presentDaniel Dickinson2017-01-11
| | | | | | | We don't want non-deterministic builds do turn off libwrap in configure options. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Make myself maintainer per private mailDaniel Dickinson2017-01-11
| | | | | | | | | | Current maintainer (Martin Rowe) offered to hand over maintership because I'm interested in doing more with the package than he requires for his own use, so he felt it made sense for me to maintain the package. I accepted, hence this commit. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Fix '/var/run' world readable warningDaniel Dickinson2017-01-11
| | | | | | | | Use /var/run/nut as statepath and set appropriate owner and permissions on /var/run/nut in order to avoid pidfile for nut being world-readable. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net-nut: Add UPS notifications via sendmailDaniel Dickinson2017-01-11
| | | | | | | Add option to send email notification via sendmail (or replacement). Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Add back serial supportDaniel Dickinson2017-01-11
| | | | | | | | It looks like serial support was accidentally dropped due to missing pieces on Config.in and Makefile. Add back serial support by fixing that. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Protect CGI via HTTP Basic AuthDaniel Dickinson2017-01-11
| | | | | | | When using uhttpd (the default), protect NUT CGI via HTTP Basic Auth. Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Build optional separate packages and ucifyDaniel Dickinson2017-01-11
| | | | | | | | | | | | | With a LuCI app (of which I have one written) ucification makes sense (and is in fact needed), so ucify the initscripts. Also, rather than making selection of things to include an image a matter of selecting compile-time config options, make optional things into seperate packages that are built in default builds, and leave selection of what to include or not up to the user (e.g. using ImageBuilder, or adding packages via opkg). Signed-off-by: Daniel Dickinson <lede@cshore.thecshore.com>
* net/nut: Remove whitespace before conffilesMarty R2016-05-03
| | | | | | Closes #2652 Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
* nut: upstream version bumpMarty R2016-03-18
| | | | Version bump package to latest v2.7.4 code from upstream. No changes needed for packaging.
* nut: add dev headers, nut-web-cgi and nut-avahi-service, bugfixMarty R2015-10-03
| | | | | | | | | | | | | | | | | Headers are required by collectd as mentioned in #1801. This is the nut portion based on dwmw2@d636841cd1d1dfab04cb509520c082738ddfb2ea Happy to merge with 15.05 as per #1803. Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> [martin.p.rowe@gmail.com: condensed InstallDev lines] Added package nut-web-cgi based on demorfi@7e340f47944ff4a9c49d3b1dc6c1d9d965cd344c. Closes #1614. Pending signoff by @demorfi [martin.p.rowe@gmail.com: simplified implementation, no changes to Config.in] Added package nut-avahi-service similar to other implementations in #618 Bugfix to remove redundant NUT_DRIVER_SERIAL config Bugfix to make UPSLOG config actually install (requires PKG_RELEASE bump) Some code tidy-ups Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
* nut: Fix required dependencies.Hanson Wong2015-09-20
|
* nut: remove patch for old automake versionMarty R2015-05-06
| | | | | | tools/automake was updated to 1.15 which removed this bug; patch no longer needed. Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
* nut: Update to 2.7.3Marty R2015-04-28
| | | | | | | | Updated the package to the latest upstream version. Removed a patch that was merged upstream. Bumped copyright notice to 2015. Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
* nut: force rebuild when config changesNicolas Thill2014-10-25
| | | | Signed-off-by: Nicolas Thill <nico@openwrt.org>
* nut: Updated (c) noticeMarty R2014-10-19
| | | | Signed-off-by: Martin Rowe <martin.p.rowe@gmail.com>
* Remove placeholder maintainer email addresscyanidium2014-10-15
|
* nut: New package for Network UPS ToolsMarty R2014-10-15
An older version of nut is in oldpackages. This commit is based on that package and bumps the version to the latest release along with unifying the server and client packages. More build options are provided for any custom configuration but the defaults provide a working client and server install which only needs a UPS driver. Drivers still build as individual packages to minimise bloat. SSL support has also been added. Signed-off-by: Martin Rowe <cyanidium@users.noreply.github.com>