Bug 261880

Summary: [NEW PORT] sysutils/fand: PWM cooling fan control daemon
Product: Ports & Packages Reporter: Corey Hinshaw <corey>
Component: Individual Port(s)Assignee: Daniel Engberg <diizzy>
Status: Closed FIXED    
Severity: Affects Only Me CC: diizzy
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://github.com/electrickite/fand
Attachments:
Description Flags
fand.patch
none
fand-2.patch none

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!