diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:39:49 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 17:39:49 +0000 |
commit | a0aa2307322cd47bbf416810ac0292925e03be87 (patch) | |
tree | 37076262a026c4b48c8a0e84f44ff9187556ca35 /python/Makefile.am | |
parent | Initial commit. (diff) | |
download | suricata-a0aa2307322cd47bbf416810ac0292925e03be87.tar.xz suricata-a0aa2307322cd47bbf416810ac0292925e03be87.zip |
Adding upstream version 1:7.0.3.upstream/1%7.0.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | python/Makefile.am | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/python/Makefile.am b/python/Makefile.am new file mode 100644 index 0000000..b354719 --- /dev/null +++ b/python/Makefile.am @@ -0,0 +1,47 @@ +LIBS = \ + suricata/__init__.py \ + suricata/config/__init__.py \ + suricata/ctl/__init__.py \ + suricata/ctl/filestore.py \ + suricata/ctl/loghandler.py \ + suricata/ctl/main.py \ + suricata/ctl/test_filestore.py \ + suricata/sc/__init__.py \ + suricata/sc/specs.py \ + suricata/sc/suricatasc.py \ + suricatasc/__init__.py + +BINS = \ + suricatasc \ + suricatactl + +EXTRA_DIST = $(LIBS) bin suricata/config/defaults.py + +if HAVE_PYTHON + +install-exec-local: + install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/config" + install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/ctl" + install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/sc" + install -d -m 0755 "$(DESTDIR)$(prefix)/lib/suricata/python/suricatasc" + install -d -m 0755 "$(DESTDIR)$(prefix)/bin" + for src in $(LIBS); do \ + install -m 0644 $(srcdir)/$$src "$(DESTDIR)$(prefix)/lib/suricata/python/$$src"; \ + done + install suricata/config/defaults.py \ + "$(DESTDIR)$(prefix)/lib/suricata/python/suricata/config/defaults.py" + for bin in $(BINS); do \ + cat "$(srcdir)/bin/$$bin" | \ + sed -e "1 s,.*,#"'!'" ${HAVE_PYTHON}," > "${DESTDIR}$(bindir)/$$bin"; \ + chmod 0755 "$(DESTDIR)$(bindir)/$$bin"; \ + done + +uninstall-local: + rm -f $(DESTDIR)$(bindir)/suricatactl + rm -f $(DESTDIR)$(bindir)/suricatasc + rm -rf $(DESTDIR)$(prefix)/lib/suricata/python + +clean-local: + find . -name \*.pyc -print0 | xargs -0 rm -f + +endif |