summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2012-11-24 21:40:14 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2012-11-24 21:40:14 +0100
commit76f02e67987546467ddcdb2d006533c9d8e791b5 (patch)
treed37f87dc372d83081faae5fc3e3e99c4d791ad18
parent195c4578406bed02fbbb75e19abfb302d9a1f5fb (diff)
New thinkfan on pcr.
-rw-r--r--pcr/thinkfan/PKGBUILD27
-rw-r--r--[-rwxr-xr-x]pcr/thinkfan/thinkfan (renamed from ~mtjm/thinkfan/thinkfan)0
-rw-r--r--pcr/thinkfan/thinkfan.service9
-rwxr-xr-x~mtjm/thinkfan/PKGBUILD36
4 files changed, 36 insertions, 36 deletions
diff --git a/pcr/thinkfan/PKGBUILD b/pcr/thinkfan/PKGBUILD
new file mode 100644
index 000000000..18a97754f
--- /dev/null
+++ b/pcr/thinkfan/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: nblock <nblock [/at\] archlinux DOT us>
+# Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
+
+pkgname=thinkfan
+pkgver=0.8.1
+pkgrel=3
+pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
+arch=('i686' 'x86_64' 'mips64el')
+license=('GPL')
+source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ "thinkfan" "thinkfan.service")
+url="http://thinkfan.sourceforge.net/"
+md5sums=('aaa6c88bab3b43756ac5a1638622828c'
+ '16fc3a83a1468e3ccaeba67e14ab2177'
+ '7639b82035fcee712753e05de6b0601d')
+
+build() {
+ cd ${srcdir}/${pkgname}-${pkgver}
+ make
+ install -D -m755 ${pkgname} ${pkgdir}/usr/sbin/${pkgname}
+ install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname}
+ install -D -m644 README ${pkgdir}/usr/share/doc/${pkgname}/README
+ install -D -m644 ${srcdir}/thinkfan.service ${pkgdir}/usr/lib/systemd/system/thinkfan.service
+ cp -r examples ${pkgdir}/usr/share/doc/${pkgname}/
+}
+
+# vim:set ts=2 sw=2 noet:
diff --git a/~mtjm/thinkfan/thinkfan b/pcr/thinkfan/thinkfan
index d37c81424..d37c81424 100755..100644
--- a/~mtjm/thinkfan/thinkfan
+++ b/pcr/thinkfan/thinkfan
diff --git a/pcr/thinkfan/thinkfan.service b/pcr/thinkfan/thinkfan.service
new file mode 100644
index 000000000..7895b8d3a
--- /dev/null
+++ b/pcr/thinkfan/thinkfan.service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Thinkfan Daemon - simple and lightweight fan control program
+After=basic.target
+
+[Service]
+ExecStart=/usr/sbin/thinkfan -n -s5 -q
+
+[Install]
+WantedBy=multi-user.target
diff --git a/~mtjm/thinkfan/PKGBUILD b/~mtjm/thinkfan/PKGBUILD
deleted file mode 100755
index 9bb9a4793..000000000
--- a/~mtjm/thinkfan/PKGBUILD
+++ /dev/null
@@ -1,36 +0,0 @@
-# Parabola maintainer: Michał Masłowski <mtjm@mtjm.eu>
-# From https://aur.archlinux.org/packages.php?ID=24359
-# Maintainer: nblock <nblock [/at\] archlinux DOT us>
-# Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
-
-pkgname=thinkfan
-pkgver=0.7.3
-pkgrel=1
-pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
-arch=('i686' 'x86_64' 'mips64el')
-license=('GPL3')
-source=(http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver}.tar.gz "thinkfan")
-url="http://thinkfan.sourceforge.net/"
-#backup=('etc/thinkfan.conf')
-md5sums=('d1b0d7a05b37cce412ee227cf759a9f6'
- '16fc3a83a1468e3ccaeba67e14ab2177')
-
-build() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make
- install -D -m755 ${pkgname} ${pkgdir}/usr/sbin/${pkgname}
- install -D -m755 ${srcdir}/${pkgname} ${pkgdir}/etc/rc.d/${pkgname}
-
- # A better way would be to check it at install time.
-# if ! [[ -f /proc/acpi/ibm/fan ]]; then
-# echo "thinkpad_acpi procfs entries don't seem to exist." \
-# "You'll need to use the generic sysfs hwmon interface. Will use sysfs conf."
- install -D -m644 thinkfan.conf.sysfs ${pkgdir}/etc/thinkfan.conf.sysfs
-# else
-# echo "This seems to be a Thinkpad. You should use the IBM" \
-# "interface. Will use thinkfan conf."
- [ "${CARCH}" = "mips64el" ] || install -D -m644 thinkfan.conf.thinkpad ${pkgdir}/etc/thinkfan.conf.thinkpad
-# fi
-}
-
-# vim:set ts=2 sw=2 noet: