mirror of
https://github.com/OISF/suricata.git
synced 2026-02-03 20:41:46 -05:00
Require distutils to install the Python tools. Update the logic to only install suricatactl (and suricatasc) if Python and distutils are found. Suricata-Update will only be installed if bundled, and python-distutils and python-yaml are found.
34 lines
855 B
Makefile
34 lines
855 B
Makefile
EXTRA_DIST = setup.py \
|
|
bin \
|
|
suricata \
|
|
suricatasc
|
|
|
|
if HAVE_PYTHON
|
|
if HAVE_PYTHON_DISTUTILS
|
|
all-local:
|
|
cd $(srcdir) && \
|
|
$(HAVE_PYTHON) setup.py build --build-base $(abs_builddir)
|
|
|
|
install-exec-local:
|
|
cd $(srcdir) && \
|
|
$(HAVE_PYTHON) setup.py build --build-base $(abs_builddir) \
|
|
install --prefix $(DESTDIR)$(prefix)
|
|
|
|
uninstall-local:
|
|
rm -f $(DESTDIR)$(bindir)/suricatactl
|
|
rm -f $(DESTDIR)$(bindir)/suricatasc
|
|
rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/suricata
|
|
rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/suricatasc
|
|
rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/suricata-[0-9]*.egg-info
|
|
|
|
clean-local:
|
|
cd $(srcdir) && \
|
|
$(HAVE_PYTHON) setup.py clean \
|
|
--build-base $(abs_builddir)
|
|
rm -rf scripts-* lib* build
|
|
find . -name \*.pyc -print0 | xargs -0 rm -f
|
|
|
|
distclean-local:
|
|
rm -f version
|
|
endif
|
|
endif
|