actions.py 893 B

123456789101112131415161718192021222324252627282930
  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/licenses/gpl.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. pisitools.dosed("ncat/Makefile.in", "-m 755 -s ncat", "-m 755 ncat")
  11. autotools.autoconf()
  12. autotools.configure("--with-openssl \
  13. --with-zenmap \
  14. --with-ndiff \
  15. --with-nping \
  16. --with-ncat \
  17. --with-liblua")
  18. def build():
  19. autotools.make()
  20. def install():
  21. autotools.rawInstall("DESTDIR=%s STRIP=true" % get.installDIR())
  22. for i in ["uninstall_zenmap", "nmapfe", "xnmap"]:
  23. pisitools.remove("/usr/bin/%s" % i)
  24. pisitools.dodoc("LICENSE", "HACKING", "README.md")