actions.py 850 B

1234567891011121314151617181920212223242526272829303132
  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. --disable-resume-static \
  16. --with-initramfsdir=/usr/sbin")
  17. def build():
  18. autotools.make()
  19. def install():
  20. pisitools.dodir("/etc")
  21. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  22. #pisitools.removeDir("/dev")
  23. shelltools.touch("%s/etc/suspend.key" % get.installDIR())