actions.py 711 B

12345678910111213141516171819202122232425262728
  1. #!/usr/bin/env python3
  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 inary.actionsapi import autotools
  7. from inary.actionsapi import inarytools
  8. from inary.actionsapi import shelltools
  9. from inary.actionsapi import get
  10. shelltools.export("PYTHON","python2")
  11. def setup():
  12. autotools.autoconf()
  13. autotools.configure("--prefix=/usr \
  14. --without-zenmap\
  15. --libexecdir=/usr/libexec \
  16. --mandir=/usr/share/man \
  17. --with-libpcap=included ")
  18. def build():
  19. shelltools.system("set +u")
  20. autotools.make()
  21. shelltools.system("set -u")
  22. def install():
  23. autotools.rawInstall("DESTDIR=%s" % get.installDIR())