From nobody Sun Jan 19 19:30:54 2025 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ybk8t6Qwtz5lccy; Sun, 19 Jan 2025 19:30:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ybk8t5Yh1z40Wg; Sun, 19 Jan 2025 19:30:54 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737315054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N49cq3EONbfAykxCvEo3cldGRdPRrGr3m6mTGaQM7U4=; b=jWRfEb9OZovPTwpMATRJulaORsBP0zfDCzAUhwvVU7pGSaAzvcCMFef+xuA4gS1DNWNU0T f7HzrxopGUEK0b16TSZ5YMihRMTkodVFX6JP/xyHiZ2LtAqSuPRWDKUiaIUe4oetqMBNl0 JgOD1DinY6d343HbI9vjiHfqkWGiWJ1aHc6ypML5HAR9R2oTq5fmTmK9DZ/52Imjpk64VS OpXiXXwgKgxZF8cS+FgX6mb+BstTKeGkIMPBRhrNj1G8fV7G/YuhW/k5NoJS1sgB6AvEh2 ypgHnIKg96S07QWwmowrbVzWZYLAaP4Q2o3t0SjeFicxHagFQq08yqLxiiPOpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737315054; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N49cq3EONbfAykxCvEo3cldGRdPRrGr3m6mTGaQM7U4=; b=tmP8WD0zMX+SirjARh6mPl6ZCGzczqlaLRN4leOd/DTymVZ2n4OH0DEp5I1F2j1pvQQ0PQ +jJAisJT2tOOZolCEM6pNTVSbHozKgH7GQy2OLhZ0Eup53XOsXU9TtSai0DeSTKMu2hjCn kjAkK63l/VfS+i6hmG8XqjWcHN4fhrJJ8vT9pBY9g0IjJUI4CVHf0p8tjqmJeUzMkwY432 2aPz/lt9bAjjIzuluFpkcOmdtYJc2yRWdZ8AWIMCFCLtLCvoQcHwJgctdsS/mQCwqgEfUh It35O6D7g84mO3fo1sa6d3uxqNnO62t+Bx/xWjiaOUcYWpzhdc8lFtbESptVdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737315054; a=rsa-sha256; cv=none; b=wf6NSnTmeVgwFsu4J4JMXzB8GW+0tav/dJZ3YQ8tbbiOPTFlWgdt7x4xx5FYMzS9Cc7Rl4 pjH3ywJs/EruCSie45GOGnxMVHSm50FeNyfY3m2vNkwa6oAya9lfY7GL9w4lPr+HeeUPSL LDy7RMozxYQBuYT2ipU7eoYHMCVDLcG9any1QPHRnNi0M8LbH/3Sti1jO1ZkvwJHQjEcCA 8EDDob5eeJVgIEdKNcbHbG7VsyTJ3HX7SfFR1H+4VeBWGPxLdoxzX4ntw69Q59nBIlEOkH eoWslyz+ENuQcBPQIXzvifk/2vnV0/87RSOuWxThmTqzm1kWwHw9Ds9R3nRWwA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Ybk8t4wNFz133Z; Sun, 19 Jan 2025 19:30:54 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50JJUsMi070728; Sun, 19 Jan 2025 19:30:54 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50JJUsL4070711; Sun, 19 Jan 2025 19:30:54 GMT (envelope-from git) Date: Sun, 19 Jan 2025 19:30:54 GMT Message-Id: <202501191930.50JJUsL4070711@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Vladimir Druzenko Subject: git: b6f0fbdb2d90 - main - sysutils/bsdsensors: New port: utility to read sensor data and control fan speed List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: vvd X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b6f0fbdb2d90744efa0e43c6bfc6a98628afa95b Auto-Submitted: auto-generated The branch main has been updated by vvd: URL: https://cgit.FreeBSD.org/ports/commit/?id=b6f0fbdb2d90744efa0e43c6bfc6a98628afa95b commit b6f0fbdb2d90744efa0e43c6bfc6a98628afa95b Author: Henry Hu AuthorDate: 2025-01-19 19:26:43 +0000 Commit: Vladimir Druzenko CommitDate: 2025-01-19 19:26:43 +0000 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 --- sysutils/Makefile | 1 + sysutils/bsdsensors/Makefile | 20 ++++++++++++++++++++ sysutils/bsdsensors/distinfo | 3 +++ sysutils/bsdsensors/pkg-descr | 4 ++++ sysutils/bsdsensors/pkg-plist | 31 +++++++++++++++++++++++++++++++ 5 files changed, 59 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 64919ddd5cd0..2404b05b7cfe 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -148,6 +148,7 @@ SUBDIR += bsdhwmon SUBDIR += bsdinfo SUBDIR += bsdisks + SUBDIR += bsdsensors SUBDIR += bsdstats SUBDIR += bstack SUBDIR += btop diff --git a/sysutils/bsdsensors/Makefile b/sysutils/bsdsensors/Makefile new file mode 100644 index 000000000000..99b0e17dbeee --- /dev/null +++ b/sysutils/bsdsensors/Makefile @@ -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 diff --git a/sysutils/bsdsensors/distinfo b/sysutils/bsdsensors/distinfo new file mode 100644 index 000000000000..eee0f7885005 --- /dev/null +++ b/sysutils/bsdsensors/distinfo @@ -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 diff --git a/sysutils/bsdsensors/pkg-descr b/sysutils/bsdsensors/pkg-descr new file mode 100644 index 000000000000..76d623e44a41 --- /dev/null +++ b/sysutils/bsdsensors/pkg-descr @@ -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. diff --git a/sysutils/bsdsensors/pkg-plist b/sysutils/bsdsensors/pkg-plist new file mode 100644 index 000000000000..591d5d20a1e9 --- /dev/null +++ b/sysutils/bsdsensors/pkg-plist @@ -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