actions.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/copyleft/gpl.txt
  5. from pisi.actionsapi import cmaketools
  6. from pisi.actionsapi import mesontools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. def setup():
  10. shelltools.makedirs("build")
  11. shelltools.cd("build")
  12. cmaketools.configure("-DCMAKE_INSTALL_PREFIX=/usr \
  13. -DCMAKE_BUILD_TYPE=Release \
  14. -DCMAKE_INSTALL_DOCDIR=/usr/share/doc/wireshark \
  15. -G Ninja", sourceDir="..")
  16. def build():
  17. mesontools.build()
  18. def install():
  19. mesontools.install()
  20. #"ws_diag_control.h","ws_symbol_export.h"
  21. for f in ["epan/register.h", "build/config.h","file.h", "cfile.h"]:
  22. pisitools.insinto("/usr/include/wireshark/", f)
  23. pisitools.insinto("/usr/include/wireshark/epan/", "epan/*.h")
  24. pisitools.insinto("/usr/include/wireshark/wsutil/", "wsutil/*.h")
  25. pisitools.insinto("/usr/include/wireshark/wsutil/wmem/", "wsutil/wmem/*.h")
  26. pisitools.insinto("/usr/include/wireshark/wiretap/", "wiretap/*.h")
  27. pisitools.insinto("/usr/include/wireshark/epan/crypt/", "epan/crypt/*.h")
  28. pisitools.insinto("/usr/include/wireshark/epan/ftypes/", "epan/ftypes/*.h")
  29. pisitools.insinto("/usr/include/wireshark/epan/dfilter/", "epan/dfilter/*.h")
  30. pisitools.insinto("/usr/include/wireshark/epan/dissectors/", "epan/dissectors/*.h")
  31. pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog", "NEWS", "README*")