Bug 261880 - [NEW PORT] sysutils/fand: PWM cooling fan control daemon
Summary: [NEW PORT] sysutils/fand: PWM cooling fan control daemon
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: Daniel Engberg
URL: https://github.com/electrickite/fand
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-11 02:58 UTC by Corey Hinshaw
Modified: 2022-02-13 19:46 UTC (History)
1 user (show)

See Also:


Attachments
fand.patch (2.22 KB, patch)
2022-02-11 02:58 UTC, Corey Hinshaw
no flags Details | Diff
fand-2.patch (2.22 KB, patch)
2022-02-12 00:22 UTC, Corey Hinshaw
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Corey Hinshaw 2022-02-11 02:58:20 UTC
Created attachment 231739 [details]
fand.patch

Adds a new port for fand, a simple daemon to control PWM (Pulse Width Modulation) cooling fans. fand was originally written for use on arm64 single board computers, but should work on any cooling fan driven by a pwmc(4) device.

Home page: https://github.com/electrickite/fand
Comment 1 Daniel Engberg freebsd_committer freebsd_triage 2022-02-11 22:23:58 UTC
Hi Corey,

Nice work!

Does this port respect CFLAGS and friends?
"13.9. Respect CFLAGS" - https://docs.freebsd.org/en/books/porters-handbook/book/

Best regards,
Daniel
Comment 2 Corey Hinshaw 2022-02-12 00:22:09 UTC
Created attachment 231766 [details]
fand-2.patch

Thanks for the review. fand-2.patch points to a new version of fand that uses the CFLAGS+= approach mentioned in the handbook in the Makefile.
Comment 3 Daniel Engberg freebsd_committer freebsd_triage 2022-02-12 11:32:32 UTC
I'll have a look at it
Comment 4 Daniel Engberg freebsd_committer freebsd_triage 2022-02-13 15:04:29 UTC
Poudriere testport OK 12.3-RELEASE (amd64)
Poudriere testport OK 13.0-RELEASE (i386)
Comment 5 commit-hook freebsd_committer freebsd_triage 2022-02-13 19:44:37 UTC
A commit in branch main references this bug:

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

commit 25e9280a0c8deee457d28b23eb8fb32c7aa19f1b
Author:     Corey Hinshaw <corey@electrickite.org>
AuthorDate: 2022-02-13 19:14:27 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-02-13 19:43:32 +0000

    sysutils/fand: New port: PWM cooling fan control daemon

    Simple daemon to control PWM (Pulse Width Modulation) cooling fans.
    fand was originally written for use on arm64 single board computers,
    but should work on any cooling fan driven by a pwmc(4) device.

    WWW: https://github.com/electrickite/fand

    PR:             261880

 sysutils/Makefile                          |  1 +
 sysutils/fand/Makefile (new)               | 21 +++++++++++++++++++++
 sysutils/fand/distinfo (new)               |  3 +++
 sysutils/fand/files/patch-fand.rc.in (new) | 10 ++++++++++
 sysutils/fand/pkg-descr (new)              |  3 +++
 5 files changed, 38 insertions(+)
Comment 6 Daniel Engberg freebsd_committer freebsd_triage 2022-02-13 19:46:45 UTC
Committed, thanks!