stamp-h1
src/build-info.h
qa/log/
+
+/suricata-update/*
+!/suricata-update/Makefile.am
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = ChangeLog COPYING LICENSE suricata.yaml.in \
classification.config threshold.config \
- reference.config
-SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib scripts etc python ebpf
+ reference.config $(SURICATA_UPDATE_DIR)
+SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib scripts etc python ebpf \
+ $(SURICATA_UPDATE_DIR)
CLEANFILES = stamp-h[0-9]*
AC_CHECK_HEADER(net/netmap_user.h,,[AC_ERROR(net/netmap_user.h not found ...)],)
])
+ # suricata-update
+ AC_CHECK_FILE([$srcdir/suricata-update/setup.py], [
+ SURICATA_UPDATE_DIR="suricata-update"
+ AC_SUBST(SURICATA_UPDATE_DIR)
+ AC_OUTPUT(suricata-update/Makefile)
+ ])
+
# libhtp
AC_ARG_ENABLE(non-bundled-htp,
AS_HELP_STRING([--enable-non-bundled-htp], [Enable the use of an already installed version of htp]),,[enable_non_bundled_htp=no])
--- /dev/null
+if HAVE_PYTHON
+
+install-exec-local:
+ cd $(srcdir) && \
+ $(HAVE_PYTHON) setup.py build --build-base $(abs_builddir) \
+ install --prefix $(DESTDIR)$(prefix)
+
+uninstall-local:
+ rm -f $(DESTDIR)$(bindir)/suricata-update
+ rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/suricata-update
+ rm -rf $(DESTDIR)$(prefix)/lib*/python*/site-packages/suricata_update-[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:
+
+endif