Nut 2.0.1 final release is out. Can you please add its ebuild to the portage? Reproducible: Always Steps to Reproduce: 1. 2. 3. Required as some major improvements/bug fixes were added.
Created attachment 54007 [details, diff] Patch for version bump The attached patch allow the version bump, fixing src_uri variable. Just as a side note.. isn't a bit confusing having nut in www-apps? it shouldn't be in sys-power category, with other ups tools like apcupsd?
seemant asked me to add ciaranm to cc list
It'd probably be better in sys-power, yeah.
Re-assigning to Robin, seems to be the best bet for this.
The ebuild for 2.0.1 (as per comment #1) needs a small addition to: if use cgi ... insinto /etc/nut doins ${S}/conf/*.html || die "failed to copy html template files" ... fi It might also be worth adding some more einfo into the ebuild when doing the cgi goodies... its not entirely obvious that you need to: create /etc/nut/hosts.conf When building the CGI applications, wouldn't it be an idea to add DEPEND=cgi? media-libs/gd Also, upsset.cgi and upsimage.cgi aren't working for me at the moment... then send http response headers then drop the connection before the body :( p.s. moving into sys-power is a very good idea.
It would be great if nut should be moved to sys-power and upgraded to 2.0.1... What is needed to do this?
*** Bug 97423 has been marked as a duplicate of this bug. ***
2.0.2 is out. Additionnaly, another bug which is still NEW and should be easy to fix: http://bugs.gentoo.org/show_bug.cgi?id=73074 . In short, libusb is required when using the newhidups driver. Even if the workaround is easy, it would be nice to fix it.
Created attachment 62634 [details, diff] 2.0.2 bump The patch found in the duplicate bug report.
*** Bug 101093 has been marked as a duplicate of this bug. ***
The way it uses webapp is broken, it doesn't install anything for webapp config to work with...
I get the following error when using the 2.0.2 patch: emerge: there are no ebuilds to satisfy "virtual/snmp". when I leave the snmp to the previous line (net-snmp) it compiles
Created attachment 66391 [details, diff] new 2.0.2 version bump same as previous patch, with these changes: * changed virtual/snmp back to net-analyzer/net-snmp virtual/snmp doesn't exist here * changed the driver-path to /lib to solve bug #88832
Created attachment 67163 [details] new version dump 2.0.3-pre1
Created attachment 67164 [details] new version dump 2.0.3-pre1
Should add a pkg_preinst function to the ebuild with this : pkg_preinst() { enewgroup nut 84 enewuser nut 84 -1 /var/state/nut nut,tty } as asked in bug #99601 Notice, I also add nut user to tty group to avoid permission issues on serial device (wich is owned by root:tty / 0660)
To try and understand exactly what's going with NUT, I made an issue of all the current issues in bugzilla, most of which are in this bug. Perhaps it'll be useful as a summary to other people: - Version bump to 2.0.1 or 2.0.2 or 2.0.3-pre1 - Move nut package from www-apps/ to sys-power/. See bug #111701 - Fix some CGI stuff (I don't use NUT's CGI stuff, so I'll let somebody who does deal with that) - libusb dependency. See bug #73074 - virtual/snmp dependency. - Does NUT live in /lib and/sbin or in /usr? Where does libusb live? See bug #88832 - NUT user should be enewuser'd I'm not sure what the status of all of those is in the portage tree, in the proposed ebuilds/patches to this bug, or in other bugs for NUT. I'd also like to throw in something else. On recent kernels, NUT's hidups gets a lot of USB events which it doesn't like to handle. It normally syslog's for those events, which can result in lots of clutter in the logs (i.e. 7 messages every 5 seconds), a la <https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=160700>. I'm attaching a patch which changes upslogx() calls to upsdebugx() calls in the appropriate places.
Created attachment 75508 [details, diff] Patch to disable extraneous syslog'ing in hidups
Bump, 2.0.3 is released upstream
Created attachment 80074 [details] 2.0.3 ebuild
Comment on attachment 80074 [details] 2.0.3 ebuild bump to version 2.0.3. Added libusb via USE flag.
new ebuild to fix bug #88832 : drivers should be on /lib, since they're needed to power off the UPS after all filesystems (incl /usr) are umounted (also replaced leading spaces by tabs, because vim complained by marking those lines red)
Created attachment 80768 [details] nut 2.0.3 ebuild, with fixed driver path
Please bump the version in portage. It's been out two months now.
*** Bug 131492 has been marked as a duplicate of this bug. ***
I see that 2.0.0/2.0.1 has now made it into portage, and in sys-power too :-)... however, could you PLEASE get 2.0.3 in there too (since 2.0.1 is something like a year out-of-date).
Created attachment 86852 [details] nut-2.0.3.ebuild other ebuild add support for ssl and fix uri
I'm working on it, chill. I sent out a message to that fact yesterday - there's just too many bugs open against it to have caught everybody. I've got to merge all of the ebuild bug items at the same time.
2.0.3 is in the tree now. While working on this, it would have been useful if those submitting ebuilds had consolidated their work together, instead of having 3 different takes on the similar problem.