diff --git a/srcpkgs/mbpfan/INSTALL.msg b/srcpkgs/mbpfan/INSTALL.msg new file mode 100644 index 00000000000..4ce4e84f9b4 --- /dev/null +++ b/srcpkgs/mbpfan/INSTALL.msg @@ -0,0 +1 @@ +It's recommended that you run tests with 'sudo mbpfan -t' after installation. \ No newline at end of file diff --git a/srcpkgs/mbpfan/files/mbpfan/run b/srcpkgs/mbpfan/files/mbpfan/run new file mode 100644 index 00000000000..68375e4eb39 --- /dev/null +++ b/srcpkgs/mbpfan/files/mbpfan/run @@ -0,0 +1,3 @@ +#!/bin/sh +exec 2>&1 +exec chpst -b mbpfan -f diff --git a/srcpkgs/mbpfan/template b/srcpkgs/mbpfan/template new file mode 100644 index 00000000000..9d6815f4917 --- /dev/null +++ b/srcpkgs/mbpfan/template @@ -0,0 +1,23 @@ +# Template file for 'mbpfan' +pkgname=mbpfan +version=1.9.1 +revision=1 +only_for_archs="x86_64 i686 x86_64-musl i686-musl" #Package is restricted to these arches because it's Macbook-specific and Macbooks only have these arches. +build_style=gnu-makefile +nopie="YES" #Hardening is disabled because it causes buffer overflow errors with this version of mbpfan. A more elegant solution would be patching the source files themselves. +short_desc="Macbook Pro Fan Control Daemon" +maintainer='noah ' +license="GPL-3" +conf_files="/etc/mbpfan.conf" +homepage="https://github.com/dgraziotin/mbpfan" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum="a7cf850a393ebfce21427b992436b84cc4b20e1cb8d673d45d2c8b991c69e68c" + +do_install() { + vbin bin/mbpfan + vconf mbpfan.conf +} + +post_install() { + vsv mbpfan +}