git: 25e9280a0c8d - main - sysutils/fand: New port: PWM cooling fan control daemon
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 13 Feb 2022 19:44:04 UTC
The branch main has been updated by diizzy:
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 | 21 +++++++++++++++++++++
sysutils/fand/distinfo | 3 +++
sysutils/fand/files/patch-fand.rc.in | 10 ++++++++++
sysutils/fand/pkg-descr | 3 +++
5 files changed, 38 insertions(+)
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 87b13cdc8a3d..d6f04fec98ef 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -345,6 +345,7 @@
SUBDIR += f2
SUBDIR += f3
SUBDIR += facter
+ SUBDIR += fand
SUBDIR += fanout
SUBDIR += fatback
SUBDIR += fcode-utils
diff --git a/sysutils/fand/Makefile b/sysutils/fand/Makefile
new file mode 100644
index 000000000000..e78aff2aa2a3
--- /dev/null
+++ b/sysutils/fand/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= fand
+DISTVERSION= 0.2.3
+CATEGORIES= sysutils
+
+MAINTAINER= corey@electrickite.org
+COMMENT= PWM cooling fan control daemon
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USE_GITHUB= yes
+GH_ACCOUNT= electrickite
+
+PLIST_FILES= sbin/${PORTNAME} \
+ man/man8/${PORTNAME}.8.gz \
+ etc/rc.d/${PORTNAME}
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/sysutils/fand/distinfo b/sysutils/fand/distinfo
new file mode 100644
index 000000000000..ec8810baaa8d
--- /dev/null
+++ b/sysutils/fand/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1644624555
+SHA256 (electrickite-fand-0.2.3_GH0.tar.gz) = d93d85a1825cfe507d45b19a8c5b5e0ec282ab14684a4dc383482f39086c9c39
+SIZE (electrickite-fand-0.2.3_GH0.tar.gz) = 6308
diff --git a/sysutils/fand/files/patch-fand.rc.in b/sysutils/fand/files/patch-fand.rc.in
new file mode 100644
index 000000000000..f98d3aa37de4
--- /dev/null
+++ b/sysutils/fand/files/patch-fand.rc.in
@@ -0,0 +1,10 @@
+--- fand.rc.in.orig 2022-02-10 20:48:18 UTC
++++ fand.rc.in
+@@ -1,5 +1,7 @@
+ #!/bin/sh
+
++# $FreeBSD$
++#
+ # PROVIDE: fand
+ # REQUIRE: DAEMON devfs sysctl
+ # KEYWORD: nojail shutdown
diff --git a/sysutils/fand/pkg-descr b/sysutils/fand/pkg-descr
new file mode 100644
index 000000000000..f25c6e7da33f
--- /dev/null
+++ b/sysutils/fand/pkg-descr
@@ -0,0 +1,3 @@
+PWM cooling fan control daemon.
+
+WWW: https://github.com/electrickite/fand