From e144b2ebf7a94b877ae31ee35892dc00aff1d1bc Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 16 Jul 2014 19:01:50 +0200 Subject: [PATCH] New package: thinkfan-0.9.2 --- srcpkgs/thinkfan/files/thinkpad_acpi.conf | 1 + srcpkgs/thinkfan/template | 28 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 srcpkgs/thinkfan/files/thinkpad_acpi.conf create mode 100644 srcpkgs/thinkfan/template diff --git a/srcpkgs/thinkfan/files/thinkpad_acpi.conf b/srcpkgs/thinkfan/files/thinkpad_acpi.conf new file mode 100644 index 00000000000..00e1014b821 --- /dev/null +++ b/srcpkgs/thinkfan/files/thinkpad_acpi.conf @@ -0,0 +1 @@ +options thinkpad_acpi fan_control=1 diff --git a/srcpkgs/thinkfan/template b/srcpkgs/thinkfan/template new file mode 100644 index 00000000000..72fb016a901 --- /dev/null +++ b/srcpkgs/thinkfan/template @@ -0,0 +1,28 @@ +# Template file for 'thinkfan' +pkgname=thinkfan +version=0.9.2 +revision=1 +wrksrc=${pkgname}-${version} +create_wrksrc=yes +build_style=cmake +configure_args="-DUSE_ATASMART:BOOL=ON" +hostmakedepends="cmake" +makedepends="libatasmart-devel" +short_desc="A simple fan control program" +maintainer="Christian Neukirchen " +license="GPL-3" +homepage="http://thinkfan.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" +checksum=90daa0f2db221e1d5085d7f25cb6c63608d174db2987478c340e9523e652af79 + +do_install() { + vbin build/thinkfan + vman thinkfan.1 + vsconf examples/thinkfan.conf.simple + vsconf examples/thinkfan.conf.complex + vdoc README + vdoc NEWS + + vmkdir usr/lib/modprobe.d + vinstall ${FILESDIR}/thinkpad_acpi.conf 644 usr/lib/modprobe.d +}