Bug 263856 - sysutils/nut: [nut-2.7.4_20] error in /usr/local/share/doc/nut/config-notes.txt wrong path [/usr/local/ups/]
Summary: sysutils/nut: [nut-2.7.4_20] error in /usr/local/share/doc/nut/config-notes.t...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Cy Schubert
Depends on:
Reported: 2022-05-07 23:50 UTC by clear.screen
Modified: 2022-05-09 20:47 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (cy)


Note You need to log in before you can comment on or make changes to this bug.
Description clear.screen 2022-05-07 23:50:41 UTC
in package nut-2.7.4_20                   Network UPS Tools

The file : /usr/local/share/doc/nut/config-notes.txt
mention in several occurence the path "/usr/local/ups/"

Create one section per UPS in /usr/local/ups/etc/ups.conf
        /usr/local/ups/sbin/upsdrvctl start
        # /usr/local/ups/sbin/upsdrvctl start
        # /usr/local/ups/sbin/upsd
        /usr/local/ups/bin/upsc myupsname@localhost ups.status
        /usr/local/ups/bin/upsc myupsname@localhost
        /usr/local/ups/sbin/upsd -c reload
        /usr/local/ups/sbin/upsd -c stop
        /usr/local/ups/bin/upsdrvctl shutdown
        /usr/local/ups/bin/upsdrvctl -t shutdown
        /usr/local/ups/sbin/upsmon -c fsd

==>>> but the subdir (ups) in "/usr/local/ups/" doesn't exists

example "/usr/local/sbin/upsdrvctl"
instead of "/usr/local/ups/sbin/upsdrvctl"

and so on.
this can lead to misunderstanding by user who installs the package.

Correction : in file [/usr/local/share/doc/nut/config-notes.txt] , correct all wrong path with non existent /usr/local/ups (subdir ups) paths
Comment 1 Cy Schubert freebsd_committer 2022-05-08 13:36:04 UTC
Again, there will be no merge to quarterly because main and 2022Q2 have diverged too much.
Comment 2 commit-hook freebsd_committer 2022-05-09 18:12:33 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fa59329dc39bf1fd50cea94febc0739704bbf200

commit fa59329dc39bf1fd50cea94febc0739704bbf200
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2022-05-08 13:36:30 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2022-05-09 17:49:29 +0000

    sysutils/nut*: Fixup docs

    Documentation refers to /usr/local/ups. Refer to ${PREFIX} instead.

    PR:             263856
    Reviewed by:    clear.screen@orange.fr

 sysutils/nut-devel/Makefile | 3 ++-
 sysutils/nut/Makefile       | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)