actions.py 821 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import get
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import kerneltools
  11. KDIR = kerneltools.getKernelVersion()
  12. KVER ="6.6.67"
  13. def build():
  14. autotools.make("KVER=%s" % KVER )
  15. def install():
  16. pisitools.insinto("/lib/modules/%s/kernel/drivers/net/wireless" % KDIR, "*.ko")
  17. pisitools.insinto("/etc/modprobe.d", "88x2bu.conf")
  18. shelltools.chmod(get.installDIR() + "/etc/modprobe.d/88x2bu.conf")
  19. shelltools.chmod(get.installDIR() + "/lib/modules/%s/kernel/drivers/net/wireless/*.ko" % KDIR )
  20. pisitools.dodoc("README*", "LICENSE")