actions.py 945 B

12345678910111213141516171819202122232425262728293031323334
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import shelltools
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. #autotools.autoreconf("-vif")
  11. shelltools.system("sh autogen.sh")
  12. autotools.configure("--enable-threads \
  13. --enable-compress \
  14. --disable-encrypt \
  15. --with-initramfsdir=/usr/sbin \
  16. --disable-resume-static")
  17. #kernel panic
  18. #--with-initramfsdir=/usr/sbin
  19. def build():
  20. autotools.make()
  21. def install():
  22. pisitools.dodir("/etc")
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  24. #pisitools.removeDir("/dev")
  25. shelltools.touch("%s/etc/suspend.key" % get.installDIR())