networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
1.93k stars 346 forks source link

Get NUT 2.8.x into the official OmniOS repository #1498

Open jimklimov opened 2 years ago

jimklimov commented 2 years ago

@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.

thenktor commented 4 months ago

Any updates on this?

jimklimov commented 4 months ago

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.

thenktor commented 4 months ago

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

jimklimov commented 4 months ago

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 commented 4 months ago

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.