summaryrefslogtreecommitdiff
path: root/~mtjm
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 /~mtjm
parent195c4578406bed02fbbb75e19abfb302d9a1f5fb (diff)
downloadabslibre-76f02e67987546467ddcdb2d006533c9d8e791b5.tar.gz
abslibre-76f02e67987546467ddcdb2d006533c9d8e791b5.tar.bz2
abslibre-76f02e67987546467ddcdb2d006533c9d8e791b5.zip
New thinkfan on pcr.
Diffstat (limited to '~mtjm')
-rwxr-xr-x~mtjm/thinkfan/PKGBUILD36
-rwxr-xr-x~mtjm/thinkfan/thinkfan54
2 files changed, 0 insertions, 90 deletions
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:
diff --git a/~mtjm/thinkfan/thinkfan b/~mtjm/thinkfan/thinkfan
deleted file mode 100755
index d37c81424..000000000
--- a/~mtjm/thinkfan/thinkfan
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-test -f /usr/sbin/thinkfan || exit 0
-
-case "$1" in
- start)
- stat_busy "Starting thinkfan"
- /usr/sbin/thinkfan -- -q -s5 >/dev/null 2>&1
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon thinkfan
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping thinkfan"
- PID=$(</var/run/thinkfan.pid)
- kill $PID
- rm -f /var/run/thinkfan.pid
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon thinkfan
- stat_done
- fi
- ;;
- restart)
- stat_busy "Restarting thinkfan"
-
- PID=$(</var/run/thinkfan.pid)
- kill $PID
- rm -f /var/run/thinkfan.pid
- if [ $? -gt 0 ]; then
- stat_fail
- rm_daemon thinkfan
- else
- /usr/sbin/thinkfan -- -q -s5 >/dev/null 2>&1
- if [ $? -gt 0 ]; then
- stat_fail
- rm_daemon thinkfan
- else
- stat_done
- fi
- fi
- ;;
- *)
- echo "Usage: $0 {stop|start|restart}"
- ;;
-esac
-exit 0