actions.py 849 B

12345678910111213141516171819202122232425262728293031
  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 shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "dsniff-2.4"
  11. confdir = "/etc/dsniff"
  12. def setup():
  13. autotools.autoreconf("-vfi")
  14. autotools.configure("--with-x")
  15. def build():
  16. autotools.make('CC="%s" -j1' % get.CC())
  17. def install():
  18. autotools.rawInstall("install_prefix=%s" % get.installDIR())
  19. pisitools.dodir(confdir)
  20. for i in ["dnsspoof.hosts", "dsniff.magic", "dsniff.services"]:
  21. shelltools.copy("%s/usr/share/dsniff/%s" % (get.installDIR(), i), "%s/%s" % (get.installDIR(), confdir))
  22. pisitools.dodoc("LICENSE", "CHANGES", "README*", "TODO")