LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 700|回复: 0

[求助]帮忙写一个控制thinkpad风扇的ebuild,谢谢!

[复制链接]
发表于 2009-5-10 16:08:44 | 显示全部楼层 |阅读模式
请大家帮我转换一下这个pkg到ebuild,谢谢!

  1. # Contributor: evr <evanroman @ gmail>

  2. pkgname=tpfand
  3. pkgver=0.94
  4. pkgrel=4
  5. pkgdesc="Monitors temperatures and controls fan speed of IBM/Lenovo ThinkPad notebooks."
  6. arch=('i686' 'x86_64')
  7. url="http://www.gambitchess.org/mediawiki/index.php/ThinkPad_Fan_Control"
  8. license=('GPL3')
  9. depends=(python hal)
  10. optdepends=(tpfan-admin tpfand-profiles)
  11. source=(http://launchpad.net/tp-fan/tpfand/$pkgver/+download/tpfand-$pkgver.tar.gz)
  12. md5sums=('fa08a5c3eebd47842e1fb84b6283416d')

  13. build() {
  14.   cd "$srcdir/$pkgname-$pkgver"

  15.   install -d $pkgdir/usr/lib/python2.6/site-packages/tpfand
  16.   install -m644 src/tpfand/* $pkgdir/usr/lib/python2.6/site-packages/tpfand
  17.   install -d $pkgdir/usr/share/tpfand/models/by-id
  18.   install -d $pkgdir/usr/share/tpfand/models/by-name
  19.   install -m644 share/models/generic $pkgdir/usr/share/tpfand/models
  20.   install -d $pkgdir/etc/dbus-1/system.d/
  21.   install -m644 etc/dbus-1/system.d/* $pkgdir/etc/dbus-1/system.d/
  22.   install -d $pkgdir/usr/sbin
  23.   install wrappers/tpfand $pkgdir/usr/sbin/
  24.   install -d $pkgdir/etc/modprobe.d
  25.   install -m644 etc/modprobe.d/thinkpad_acpi.modprobe $pkgdir/etc/modprobe.d/
  26.   if [ -e /etc/tpfand.conf ]
  27.     then install -m644 /etc/tpfand.conf $pkgdir/etc/tpfand.conf
  28.     else install -m644 etc/tpfand.conf $pkgdir/etc/tpfand.conf
  29.   fi
  30.   install -D -m755 $startdir/tpfand.DAEMON $pkgdir/etc/rc.d/tpfand
  31.   install -D -m755 $startdir/tpfand.PMUTILS $pkgdir/etc/pm/sleep.d/09tpfand
  32. }
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表