Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

thinkfan-0.7.1

By: a guest on Jul 23rd, 2010  |  syntax: None  |  size: 1.21 KB  |  hits: 231  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Contributor: Frederik Alkærsig (FALKER) <havnelisten AT gmail.com>
  2. pkgname=thinkfan
  3. pkgver=0.7.1
  4. pkgrel=1
  5. pkgdesc="A minimalist fan control program. Supports the sysfs hwmon interface and thinkpad_acpi"
  6. arch=('i686' 'x86_64')
  7. license=('GPL')
  8. source=(http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver.tar.gz "thinkfand")
  9. url="http://thinkfan.sourceforge.net/"
  10. backup=('etc/thinkfan.conf')
  11.  
  12. build() {
  13.     cd $srcdir/$pkgname-$pkgver
  14.     make
  15.     install -d $startdir/pkg/usr/sbin
  16.     install $srcdir/$pkgname-$pkgver/thinkfan $startdir/pkg/usr/sbin
  17.     install -D -m755 ${startdir}/thinkfand ${pkgdir}/etc/rc.d/thinkfan
  18.  
  19.     if ! [[ -f /proc/acpi/ibm/fan ]]; then
  20.         echo "thinkpad_acpi procfs entries don't seem to exist." \
  21.         "You'll need to use the generic sysfs hwmon interface. Will use sysfs conf."
  22.         install -D -m644 thinkfan.conf.sysfs ${pkgdir}/etc/thinkfan.conf
  23.     else
  24.         echo "This seems to be a Thinkpad. You should use the IBM" \
  25.         "interface. Will use thinkfan conf."
  26.         install -D -m644 thinkfan.conf.thinkpad ${pkgdir}/etc/thinkfan.conf
  27.     fi
  28.  
  29. }
  30. md5sums=('0e98ec7854edbb8186544f3aec6d95e4'
  31.          '16fc3a83a1468e3ccaeba67e14ab2177')