Advertisement
Guest User

thinkfan-0.7.1

a guest
Jul 23rd, 2010
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  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')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement