Bug 276991 - sysutils/bsdfan: Add rc-script
Summary: sysutils/bsdfan: Add rc-script
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: Alexey Dokuchaev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-11 21:33 UTC by Viacheslav Chimishuk
Modified: 2024-12-08 14:32 UTC (History)
1 user (show)

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


Attachments
Adds rc-script. (1.35 KB, patch)
2024-02-11 21:33 UTC, Viacheslav Chimishuk
no flags Details | Diff
sysutils/bsdfan: rc-script resume command support (1.17 KB, patch)
2024-11-23 18:20 UTC, Viacheslav Chimishuk
no flags Details | Diff
sysutils/bsdfan: rc-script resume command support (1.17 KB, patch)
2024-11-23 18:27 UTC, Viacheslav Chimishuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Viacheslav Chimishuk 2024-02-11 21:33:53 UTC
Created attachment 248373 [details]
Adds rc-script.

It is hard to use bsdfan because of missing rc-script. It would be great if we can have rc-script out of the box. Proposed patch adds rc-script.
Comment 1 Viacheslav Chimishuk 2024-11-23 18:20:46 UTC
Created attachment 255412 [details]
sysutils/bsdfan: rc-script resume command support

After resume from suspend sysctl dev.acpi_ibm.0.fan is reset to
1 (AUTO). We need to simply restart the service after resume to
enable manual fan control back.
Comment 2 Viacheslav Chimishuk 2024-11-23 18:27:11 UTC
Created attachment 255413 [details]
sysutils/bsdfan: rc-script resume command support

After resume from suspend sysctl dev.acpi_ibm.0.fan is reset to
1 (AUTO). We need to simply restart the service after resume to
enable manual fan control back.
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-12-08 14:28:49 UTC
A commit in branch main references this bug:

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

commit 45f03c6eb18bcd3224a6f66b0095d488bf350046
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2024-12-08 14:27:22 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2024-12-08 14:27:22 +0000

    sysutils/bsdfan: the port had been improved (+)

    - Install rc-script with resume command support
    - Respect installation ${PREFIX} while I'm here

    PR:             276991
    Submitted by:   Viacheslav Chimishuk

 sysutils/bsdfan/Makefile              |  4 +++-
 sysutils/bsdfan/files/bsdfan.in (new) | 27 +++++++++++++++++++++++++++
 2 files changed, 30 insertions(+), 1 deletion(-)
Comment 4 Alexey Dokuchaev freebsd_committer freebsd_triage 2024-12-08 14:32:47 UTC
Committed with minor modifications, thanks!