Makefile.am 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. LIBS = \
  2. suricata/__init__.py \
  3. suricata/config/__init__.py \
  4. suricata/ctl/__init__.py \
  5. suricata/ctl/filestore.py \
  6. suricata/ctl/loghandler.py \
  7. suricata/ctl/main.py \
  8. suricata/ctl/test_filestore.py \
  9. suricata/sc/__init__.py \
  10. suricata/sc/specs.py \
  11. suricata/sc/suricatasc.py \
  12. suricatasc/__init__.py
  13. BINS = \
  14. suricatasc \
  15. suricatactl
  16. EXTRA_DIST = $(LIBS) bin suricata/config/defaults.py
  17. if HAVE_PYTHON
  18. install-exec-local:
  19. install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/config"
  20. install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/ctl"
  21. install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/sc"
  22. install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricatasc"
  23. install -d -m 0755 "$(DESTDIR)$(prefix)/bin"
  24. for src in $(LIBS); do \
  25. install $(srcdir)/$$src "$(DESTDIR)$(prefix)/lib/suricata/python/$$src"; \
  26. done
  27. install suricata/config/defaults.py \
  28. "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/config/defaults.py"
  29. for bin in $(BINS); do \
  30. cat "$(srcdir)/bin/$$bin" | \
  31. sed -e "1 s,.*,#"'!'" ${HAVE_PYTHON}," > "${DESTDIR}$(bindir)/$$bin"; \
  32. chmod 0755 "$(DESTDIR)$(bindir)/$$bin"; \
  33. done
  34. uninstall-local:
  35. rm -f $(DESTDIR)$(bindir)/suricatactl
  36. rm -f $(DESTDIR)$(bindir)/suricatasc
  37. rm -rf $(DESTDIR)$(prefix)/lib/suricata/python
  38. clean-local:
  39. find . -name \*.pyc -print0 | xargs -0 rm -f
  40. endif