From 51021a0219808573e9804518cefa4285b9f4fe11 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Sun, 16 Feb 2014 02:32:57 +0100 Subject: Dump... --- .SRCINFO | 22 ++++++++++++++++++++++ PKGBUILD | 31 +++++++++++++++++++++++++++++++ thinkfan.install | 8 ++++++++ thinkfan.service | 9 +++++++++ thinkpad_acpi.conf | 1 + 5 files changed, 71 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 thinkfan.install create mode 100644 thinkfan.service create mode 100644 thinkpad_acpi.conf 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 +# Contributor: Frederik Alkærsig (FALKER) + +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 -- cgit v1.2.3-70-g09d2