nut icon indicating copy to clipboard operation
nut copied to clipboard

Get NUT 2.8.x into the official OmniOS repository

Open jimklimov opened this issue 3 years ago • 5 comments

@hadfl on #omnios IRC channel said he would take a look at this (needs to provide libusb first). NUT and dependencies are expected to appear in omnios-extra repository.

jimklimov avatar Jul 17 '22 11:07 jimklimov

Any updates on this?

thenktor avatar May 06 '24 14:05 thenktor

Not on my side, hope @hadfl would say more :\

I did bump OpenIndiana recipes which were then iterated a few times by other OI community members - this can be a helpful starting point IMHO, whether regarding build arguments or possible OS-adaptation patches, or the recommended split into numerous packages based on the role of a set of programs or grouped by non-ubiquitous dependencies (e.g. stuff that depends on net-snmp has a different installation footprint than USB drivers).

Speaking of which, probably gotta bump for NUT v2.8.2 :)

One important note: there is a new apc_modbus NUT driver in recent releases that can use Serial and TCP RTU with stock libmodbus, but for USB it would require a custom build from a branch that AFAIK was not yet merged into upstream - stalled on no reply for SLA submission from patch author. This library can be built and linked statically into the driver program, to avoid conflicts with stock implementation - see https://github.com/networkupstools/nut/wiki/APC-UPS-with-Modbus-protocol for details.

jimklimov avatar May 06 '24 15:05 jimklimov

Thanks for your reply. I've found NUT in the pkgsrc repository for illumos, so I'll give that version a try.

thenktor avatar May 07 '24 09:05 thenktor

Thanks for the link, forgot about that. https://github.com/TritonDataCenter/pkgsrc/tree/trunk/sysutils/ups-nut currently refers to 2.8.1, so not as old as some other OSes out there (given that 2.8.2 is out for just a month).

jimklimov avatar May 07 '24 11:05 jimklimov

All that said, building your own should not be prohibitively hard; docs/config-prereqs.txt lists the build (some might be also runtime) prerequisites for many platforms used in NUT CI, including OmniOS.

jimklimov avatar May 07 '24 11:05 jimklimov