aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2014-02-16 02:32:57 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:39 +0200
commit51021a0219808573e9804518cefa4285b9f4fe11 (patch)
tree53ec954f6bac534c7d41102eea2c75e6df4c6eb4
downloadpkgbuilds-51021a0219808573e9804518cefa4285b9f4fe11.tar.xz
Dump...
-rw-r--r--.SRCINFO22
-rw-r--r--PKGBUILD31
-rw-r--r--thinkfan.install8
-rw-r--r--thinkfan.service9
-rw-r--r--thinkpad_acpi.conf1
5 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 0000000..443513f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,22 @@
+# Generated by makepkg 4.2.1
+# Mon Jun 1 14:56:29 UTC 2015
+pkgbase = thinkfan
+ pkgdesc = A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi
+ pkgver = 0.8.1
+ pkgrel = 7
+ url = http://thinkfan.sourceforge.net/
+ install = thinkfan.install
+ arch = i686
+ arch = x86_64
+ license = GPL
+ source = http://downloads.sourceforge.net/project/thinkfan/thinkfan-0.8.1.tar.gz
+ source = thinkfan.install
+ source = thinkfan.service
+ source = thinkpad_acpi.conf
+ md5sums = aaa6c88bab3b43756ac5a1638622828c
+ md5sums = 76553f63dc55a6e09a429bb4e28eb649
+ md5sums = 0197bde7c3d3b64d34635ead78cf3437
+ md5sums = bca920d066846e5811a2465aefa13012
+
+pkgname = thinkfan
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..0471637
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+# Maintainer: nblock <nblock [/at\] archlinux DOT us>
+# Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
+
+pkgname=thinkfan
+pkgver=0.8.1
+pkgrel=7
+pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
+arch=('i686' 'x86_64')
+license=('GPL')
+source=("http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz"
+ 'thinkfan.install' 'thinkfan.service' 'thinkpad_acpi.conf')
+url='http://thinkfan.sourceforge.net/'
+install=thinkfan.install
+md5sums=('aaa6c88bab3b43756ac5a1638622828c'
+ '76553f63dc55a6e09a429bb4e28eb649'
+ '0197bde7c3d3b64d34635ead78cf3437'
+ 'bca920d066846e5811a2465aefa13012')
+
+build() {
+ cd $pkgname-$pkgver
+ make
+}
+
+package() {
+ cd $pkgname-$pkgver
+ install -D -m755 $pkgname $pkgdir/usr/bin/$pkgname
+ install -D -m644 $srcdir/thinkpad_acpi.conf $pkgdir/etc/modprobe.d/thinkpad_acpi.conf
+ install -D -m644 README $pkgdir/usr/share/doc/$pkgname/README
+ install -D -m644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
+ cp -r examples $pkgdir/usr/share/doc/$pkgname/
+}
diff --git a/thinkfan.install b/thinkfan.install
new file mode 100644
index 0000000..b5f06e8
--- /dev/null
+++ b/thinkfan.install
@@ -0,0 +1,8 @@
+post_install() {
+ echo "Please configure thinkfan in: /etc/thinkfan.conf"
+ echo "Have a look at the examples in: /usr/share/doc/thinkfan/examples for details."
+}
+
+post_upgrade() {
+ post_install
+}
diff --git a/thinkfan.service b/thinkfan.service
new file mode 100644
index 0000000..e7c8bad
--- /dev/null
+++ b/thinkfan.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Thinkfan Daemon - simple and lightweight fan control program
+After=basic.target
+
+[Service]
+ExecStart=/usr/bin/thinkfan -n -s5 -q
+
+[Install]
+WantedBy=multi-user.target
diff --git a/thinkpad_acpi.conf b/thinkpad_acpi.conf
new file mode 100644
index 0000000..00e1014
--- /dev/null
+++ b/thinkpad_acpi.conf
@@ -0,0 +1 @@
+options thinkpad_acpi fan_control=1