diff --git a/srcpkgs/zcfan/files/README.voidlinux b/srcpkgs/zcfan/files/README.voidlinux new file mode 100644 index 00000000000..84d87c3dd5e --- /dev/null +++ b/srcpkgs/zcfan/files/README.voidlinux @@ -0,0 +1,3 @@ +You must load thinkpad_acpi with fan_control=1 to use zcfan. + +echo options thinkpad_acpi fan_control=1 > /etc/modprobe.d/99-fancontrol.conf diff --git a/srcpkgs/zcfan/files/zcfan/run b/srcpkgs/zcfan/files/zcfan/run new file mode 100755 index 00000000000..c5f17b54a6e --- /dev/null +++ b/srcpkgs/zcfan/files/zcfan/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec zcfan diff --git a/srcpkgs/zcfan/template b/srcpkgs/zcfan/template new file mode 100644 index 00000000000..3962f4434a5 --- /dev/null +++ b/srcpkgs/zcfan/template @@ -0,0 +1,17 @@ +# Template file for 'zcfan' +pkgname=zcfan +version=1.4.0 +revision=1 +build_style=gnu-makefile +short_desc="Zero-configuration fan control for ThinkPad" +maintainer="Worf " +license="MIT" +homepage="https://github.com/cdown/zcfan" +distfiles="https://github.com/cdown/zcfan/archive/refs/tags/${version}.tar.gz" +checksum=33e4944303c778581b6471c79e1273a5668917542e412c8125f028133b684718 + +post_install() { + vsv zcfan + vlicense LICENSE + vdoc ${FILESDIR}/README.voidlinux +}