sysutils/bsdsensors: New port: utility to read sensor data and control fan speed

Here's a new port, which provides a simple utility to read sensor data
and control fan speed. Specifically, it supports a few Nuvoton embedded
controllers, which are widely used in consumer-grade motherboards.

The utility can
* read temp sensor
* read voltage sensor
* read fan speed
* read fan curve and control information
* write fan curve and control params

It's released under BSD 3-clause.

https://github.com/HenryHu/bsdsensors

PR:	284144
This commit is contained in:
Henry Hu 2025-01-19 22:26:43 +03:00 committed by Vladimir Druzenko
parent 6e2222799e
commit b6f0fbdb2d
5 changed files with 59 additions and 0 deletions

View file

@ -148,6 +148,7 @@
SUBDIR += bsdhwmon
SUBDIR += bsdinfo
SUBDIR += bsdisks
SUBDIR += bsdsensors
SUBDIR += bsdstats
SUBDIR += bstack
SUBDIR += btop

View file

@ -0,0 +1,20 @@
PORTNAME= bsdsensors
DISTVERSION= 0.1.20250118
CATEGORIES= sysutils
MAINTAINER= henry.hu.sh@gmail.com
COMMENT= Tool to read sensors and control fan speed
WWW= https://github.com/henryhu/bsdsensors
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libglog.so:devel/glog \
libprotobuf.so:devel/protobuf \
libgflags.so:devel/gflags \
libabsl_base.so:devel/abseil
USES= cmake
USE_GITHUB= yes
GH_ACCOUNT= henryhu
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1737235824
SHA256 (henryhu-bsdsensors-0.1.20250118_GH0.tar.gz) = e084cc1b4efa52753d52a08ecc3955d25e6d5492689a7df43e4a28631c5be5e3
SIZE (henryhu-bsdsensors-0.1.20250118_GH0.tar.gz) = 33704

View file

@ -0,0 +1,4 @@
bsdsensors is a utility to fetch system sensors and control fan speed. It
focuses on fetching sensors (such as temperature, fan speed, and voltage) from
the embedded controller on the motherboard, and controlling fan speed through
it.

View file

@ -0,0 +1,31 @@
bin/bsdsensors
include/bsdsensors/address.h
include/bsdsensors/chip.h
include/bsdsensors/chip_info.h
include/bsdsensors/config.h
include/bsdsensors/dev_db.h
include/bsdsensors/fan_control.h
include/bsdsensors/fan_speed.h
include/bsdsensors/fintek_chip.h
include/bsdsensors/fintek_chip_info.h
include/bsdsensors/fintek_fan.h
include/bsdsensors/fintek_temp_sensor.h
include/bsdsensors/fintek_volt_sensor.h
include/bsdsensors/ite_chip.h
include/bsdsensors/ite_chip_info.h
include/bsdsensors/microchip_chip.h
include/bsdsensors/microchip_chip_info.h
include/bsdsensors/nuvoton_chip.h
include/bsdsensors/nuvoton_chip_info.h
include/bsdsensors/nuvoton_fan_control.h
include/bsdsensors/nuvoton_fan_speed.h
include/bsdsensors/nuvoton_temp_sensor.h
include/bsdsensors/nuvoton_volt_sensor.h
include/bsdsensors/port_io.h
include/bsdsensors/status.h
include/bsdsensors/super_io.h
include/bsdsensors/temp_sensor.h
include/bsdsensors/util.h
include/bsdsensors/value_util.h
include/bsdsensors/volt_sensor.h
lib/libbsdsensors.so