Skip to content

Commit

Permalink
WIP: Initial fan2go package release 0.9.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
DuFu committed Feb 17, 2025
1 parent 7d58e29 commit a537b19
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 0 deletions.
30 changes: 30 additions & 0 deletions cross/fan2go/Makefile
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
2 changes: 2 additions & 0 deletions cross/fan2go/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin:bin/fan2go
rsc:etc/fan2go/fan2go.yaml.example
3 changes: 3 additions & 0 deletions cross/fan2go/digests
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
19 changes: 19 additions & 0 deletions spk/fan2go/Makefile
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
Binary file added spk/fan2go/src/fan2go_icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a537b19

Please sign in to comment.