summaryrefslogtreecommitdiff
path: root/sysutils/nut-devel/files (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sysutils/nut-devel: Update to the latest networkupstools/nut github commitCy Schubert2024-12-041-21/+0
|
* sysutils/nut-devel: Update to the latest networkupstools/nut github commitCy Schubert2024-07-181-14/+14
|
* sysutils/nut-devel: Remove GCC requirement.Cy Schubert2023-08-011-0/+21
| | | | | | Remove the GCC requirement by adding -lpthread and removing the nullification of CFLAGS and LDFLAGS in the M4 script that verifies we have a working libltdl.
* sysutils/nut*: Fix syntax errorCy Schubert2023-02-141-1/+1
| | | | | | | | Add missing then. PR: 269497 Reported by: <vvd@unislabs.com> Fixes: 6558c2506990
* sysutils/nut*: Make nut file ownership fixes optional with default enabledCy Schubert2023-02-141-4/+7
| | | | | | | | | | | | | | The nut file ownership fixups due to the UID/GID change from uucp/uucp to nut/nut may not be desireable for all users. Some users with custom file ownership may wish ownership to remain untouched. This revision to the nut family of ports/packages allows users to optionally disable automatic fixup of nut file ownership. While at it, rather than use a hardcoded string for user/group ownerships, use the set parameters in Makefile. PR: 269497 suggested by: dvl
* sysutils/nut*: Fix nut file accessCy Schubert2023-02-102-1/+12
| | | | | | | | | | | | | | | | Preexisting nut files will have uucp group permissions, which will no longer be available to nut because it runs under its own GID. For the time being add code to nut_prestart() adjusting the ownership of the files to UID nut and GID nut. This code should be removed approximately a year from now as it is expected that most if not all nut installations will have correct file ownership by then. While here, also fix nut.newsyslog to refer to the new nut UID/GID. Reported by: avg, Mathieu <sigsys@gmail.com> Fixes: 02c038c8cc15
* sysutils/nut*: Require devd prior to startCy Schubert2022-10-171-1/+1
| | | | | | | | | | In some cases nut may start before devd causing it to fail because it lacks permissions to USB attached UPS devices. The nut supplied devd.conf ensures that nut has read/write access to the UPS. PR: 267144 Reported by: ml@netfence.it MFH 2022Q4
* sysutils/nut-devel: Update to the latest networkupstools/nut github commitCy Schubert2022-08-312-294/+0
| | | | | | Now that muliple UPS support has been accepted and merged into our upstream's mainline, revert the nut-devl part of 2c6ac43b0d95 and 9c4a120c36bf, and pull in the latest nut commit on GH.
* sysutils/nut*: Remove unneeded headersCy Schubert2022-08-301-11/+0
| | | | | Remove headers used in the first attempt. Removing them reduces some namespace pollution and has no nother effect on the resulting package.
* sysutils/nut*: Add upslog support for multiple UPSsCy Schubert2022-08-302-0/+305
| | | | | | | | | | | | | | | | | | | | | | upslog is a utility that logs UPS status at regular intervals, specified by the -i option. Unfortunately upslog supports only on UPS. For sites that need to monitor multiple UPSs the options are to cobble an rc script for each or doctor up the nut_upslog.in script to support cloning of the script. Unfortunately an rc script capable of being cloned would become the source of more PRs and would require significanly more tehcnical documentation that by itself might become confusing for the average system administrator. Therefore a new -m option is added to support multiple UPSs using the same invocation of upslog. The patch parses a new -m option and using a single connection to upsd, queries it for stats about multiple UPSs. An rc.conf exemple of how to use this new feature: nut_upslog_flags="-p /var/db/nut/upslog.pid -m ups1@localhost,/var/log/nut\ /ups1.log -m ups2@localhost,/var/log/nut/ups2.log" PR: 265963 Reported by: vvd@unislabs.com
* Revert "sysutils/nut*: Add upslog support for multiple UPSs"Cy Schubert2022-08-292-183/+0
| | | | | | | | | | | | | | | upslog is failing to make multiple connections to upsd resulting in some UPSs logging and others not. This is likely some bug in upsd's socket handling. Even though this patch worked for me locally it did not for the person reporting the problem. A better approach would be to use select() instead. PR: 265963 This reverts commit dec4ecc3afecab035a4d4fa59c35093d9f53ffd5.
* sysutils/nut*: Require syslogdCy Schubert2022-08-293-3/+3
| | | | | The nut daemons are consumer of syslogd services. Start after syslogd has started.
* sysutils/nut*: Alternate upslog support for multiple UPSsCy Schubert2022-08-281-0/+52
| | | | | | | | | | | | | Add sample rc script to allow a user to copy a sample rc script to rc.d, allowing the user to use multiple instances of upslog(8) with multiple instances of the rc script to log multiple UPSs on the same system. The sample rc script was provided by vvd@unislabs.com. PR: 265963 Reported by: vvd@unislabs.com Submitted by: vvd@unislabs.com
* sysutils/nut*: Add upslog support for multiple UPSsCy Schubert2022-08-282-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | upslog is a utility that logs UPS status at regular intervals, specified by the -i option. Unfortunately upslog supports only on UPS. For sites that need to monitor multiple UPSs the options are to cobble an rc script for each or doctor up the nut_upslog.in script to support cloning of the script. Unfortunately an rc script capable of being cloned would become the source of more PRs and would require significanly more tehcnical documentation that by itself might become confusing for the average system administrator. Therefore a new -m option is added to support multiple UPSs using the same invocation of upslog. The patch parses a -m option and forks almost immediately following the getopt(3) invokation to monitor each individual UPS using a separate upslog process. This is not ideal but better than scripting. Lightweight threads might be a better solution. An rc.conf exemple of how to use this new feature: nut_upslog_flags="-p /var/db/nut/upslog.pid -m ups1@localhost,/var/log/nut\ /ups1.log,/var/db/nut/ups1.pid -m ups1@localhost,/var/log/nut/ups2.log,/var\ /db/nut/ups2.pid" Sending a TERM signal to the parent PID, kill `cat /var/db/nut/upslog.pid`, will terminate the entire process tree. This patch submitted upstream, is in the process of being refined and accepted. PR: 265963 Reported by: vvd@unislabs.com
* sysutils/nut-devel: Disable new nut_monitor featureCy Schubert2022-08-281-0/+20
| | | | | | | | | | | At the moment this new feature, a GUI to monitor nut, inconsistently builds and installs itself. It fails to build when built under poudriere or when using an unprivileged account. However it will build and install when built by hand by root. Even though ./configure (configure.ac) is supposed to support enabling and disabling the option, this does not work. The option remains "auto" and nut_monitor will install or not install based on some unknown at the moment criteria.
* sysutils/nut-devel: Update to the latest networkupstools/nut github commitCy Schubert2022-08-151-8/+6
|
* sysutils/nut*: Correctly use libusb.soCy Schubert2022-05-091-0/+16
| | | | | | | FreeBSD has no libusb-1.0.so, even though pkgconf identifies it as such. The ABI is the same but the name is different. Reported by: Paul Arakelyan <paul.arakelyan@gmail.com>
* sysutils/nut*: Use poweroff instead of shutdown -hCy Schubert2022-05-091-0/+11
| | | | | | | Poweroff instead of halt when signaling shutdown. PR: 263855 Reported by: clear.screen@orange.fr
* sysutils/nut-devel: Update to the latest networkupstools/nut github commitCy Schubert2021-09-283-39/+0
|
* sysutils/nut: Guarantee that devfs is startedCy Schubert2021-08-311-1/+1
| | | | | | | | | devfs does not always win the race with nut causing nut to fail to start in some installations. PR: 258190 Submitted by: hsakamt@tsnr.com Reported by: hsakamt@tsnr.com
* all: Remove all other $FreeBSD keywords.Mathieu Arnold2021-04-063-9/+0
|
* Properly check USB errors using sys/errno.h.Cy Schubert2020-11-149-420/+10
| | | | Notes: svn path=/head/; revision=555091
* Update to the latest networkupstools/nut github commit.Cy Schubert2020-10-231-44/+0
| | | | Notes: svn path=/head/; revision=553149
* Revert upstream 73c8644. It results in a usbhid-ups bus fault.Cy Schubert2020-10-221-0/+44
| | | | | | | Upstream issue: https://github.com/networkupstools/nut/issues/835 Notes: svn path=/head/; revision=552928
* Update textproc/asciidoc to 9.0.0rc2Sunpoet Po-Chuan Hsieh2020-04-213-0/+39
| | | | | | | | | | Changes: https://github.com/asciidoc/asciidoc-py3/releases https://github.com/asciidoc/asciidoc-py3/blob/master/CHANGELOG.txt PR: 245723 Submitted by: antoine Notes: svn path=/head/; revision=532404
* Introduce Network UPS Tools nut development port. This port tracksCy Schubert2020-03-2614-0/+577
the networkupstools/nut github repo. Notes: svn path=/head/; revision=529220