actions.py 780 B

123456789101112131415161718192021222324252627282930313233
  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 get
  9. #WorkDir = "hydra-%s-src" % get.srcVERSION()
  10. moduleconfig = {"XDEFINES": "-DLIBOPENSSL -DLIBSSH",
  11. "XLIBS": "-lcrypto -lssl -lssh -lm",
  12. "XLIBPATHS": "",
  13. "XIPATHS": "",
  14. "CC": get.CC(),
  15. "STRIP": "true"
  16. }
  17. def setup():
  18. autotools.configure("--disable-xhydra")
  19. def build():
  20. autotools.make()
  21. def install():
  22. for i in ["hydra", "pw-inspector"]:
  23. pisitools.dobin(i)
  24. pisitools.dodoc("CHANGES", "LICENSE*", "README*")