-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WIP: Initial fan2go package release 0.9.0.
- Loading branch information
DuFu
committed
Feb 17, 2025
1 parent
7d58e29
commit a537b19
Showing
5 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
PKG_NAME = fan2go | ||
PKG_VERS = 0.9.0 | ||
PKG_EXT = tar.gz | ||
PKG_DIST_NAME = $(PKG_VERS).$(PKG_EXT) | ||
PKG_DIST_SITE = https://github.com/markusressel/fan2go/archive | ||
PKG_DIST_FILE = $(PKG_NAME)-$(PKG_VERS).$(PKG_EXT) | ||
PKG_DIR = $(PKG_NAME)-$(PKG_VERS) | ||
|
||
BUILD_DEPENDS = native/go cross/lm-sensors | ||
|
||
HOMEPAGE = https://github.com/markusressel/fan2go | ||
COMMENT = A simple daemon providing dynamic fan speed control based on temperature sensors. | ||
LICENSE = AGPLv3 | ||
|
||
INSTALL_TARGET = fan2go_install | ||
|
||
GO_SRC_DIR = $(WORK_DIR)/$(PKG_DIR) | ||
GO_BIN_DIR = $(GO_SRC_DIR)/$(PKG_NAME) | ||
CGO_ENABLED = 1 | ||
ENV += CGO_CFLAGS="-I$(STAGING_INSTALL_PREFIX)/include" | ||
ENV += CGO_LDFLAGS="-L$(STAGING_INSTALL_PREFIX)/lib" | ||
|
||
include ../../mk/spksrc.cross-go.mk | ||
|
||
.PHONY: fan2go_install | ||
fan2go_install: | ||
install -m 755 -d $(STAGING_INSTALL_PREFIX)/bin | ||
install -m 755 $(GO_BIN_DIR) $(STAGING_INSTALL_PREFIX)/bin/fan2go | ||
install -m 755 -d $(STAGING_INSTALL_PREFIX)/etc/fan2go | ||
install -m 644 $(GO_SRC_DIR)/fan2go.yaml $(STAGING_INSTALL_PREFIX)/etc/fan2go/fan2go.yaml.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
bin:bin/fan2go | ||
rsc:etc/fan2go/fan2go.yaml.example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
fan2go-0.9.0.tar.gz SHA1 422279d01eca85df8cb0bc28dcce221c598d65de | ||
fan2go-0.9.0.tar.gz SHA256 a800923a6373fc380da513b623786e8a8f81edecedb62807f6fdbfab0fd5c792 | ||
fan2go-0.9.0.tar.gz MD5 b0d3ae059ddca6b33779d12a55955162 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
SPK_NAME = fan2go | ||
SPK_VERS = 0.9.0 | ||
SPK_REV = 1 | ||
SPK_ICON = src/fan2go_icon.png | ||
|
||
DEPENDS = cross/fan2go | ||
|
||
MAINTAINER = SynoCommunity | ||
DISPLAY_NAME = Fan2Go | ||
DESCRIPTION = "A simple daemon providing dynamic fan speed control based on temperature sensors." | ||
DESCRIPTION_CHS = "基于温度传感器提供动态风扇速度控制的简易守护进程。" | ||
HOMEPAGE = https://github.com/markusressel/fan2go | ||
LICENSE = AGPLv3 | ||
LICENSE_FILE = $(WORK_DIR)/$(SPK_NAME)-$(SPK_VERS)/LICENSE | ||
CHANGELOG = "Initial package release 0.9.0." | ||
|
||
STARTABLE = yes | ||
|
||
include ../../mk/spksrc.spk.mk |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.