actions.py 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  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/copyleft/gpl.txt.
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. def setup():
  11. autotools.configure("--sysconfdir=/etc \
  12. --with-zlib \
  13. --with-xz")
  14. def build():
  15. autotools.make()
  16. # need git for check
  17. #def check():
  18. # autotools.make("check")
  19. def install():
  20. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  21. if get.buildTYPE() == "emul32": return
  22. pisitools.dosym("modprobe.d.5.gz","/usr/share/man/man5/modprobe.conf.5.gz")
  23. for sym in ["modinfo","insmod","rmmod","depmod","modprobe"]:
  24. pisitools.dosym("../usr/bin/kmod","/sbin/%s" % sym)
  25. pisitools.dosym("../usr/bin/kmod","/bin/lsmod")
  26. pisitools.makedirs("%s/etc/depmod.d" % get.installDIR())
  27. pisitools.makedirs("%s/etc/modprobe.d" % get.installDIR())
  28. pisitools.dodoc("NEWS", "README", "TODO", "COPYING")