]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
suricata-update: don't install if requirements not met
authorJason Ish <jason.ish@oisf.net>
Fri, 11 Oct 2019 17:11:05 +0000 (11:11 -0600)
committerVictor Julien <victor@inliniac.net>
Sat, 12 Oct 2019 09:27:23 +0000 (11:27 +0200)
Don't try to run suricata-update if its not installed.

The 'make install-rules' target would try to run suricata-update
when it was detected that it was bundled, but didn't consider
if suricata-update was actually installed.

Makefile.am
configure.ac

index c1c81c22765f2ef45cb789139d1a9bb13d5b5b78..b7fbbb0c55c097e13f1c0677403039435bd8e7f2 100644 (file)
@@ -31,7 +31,7 @@ install-conf:
        install -m 770 -d "$(DESTDIR)$(e_localstatedir)"
 
 install-rules:
-if HAVE_SURICATA_UPDATE
+if INSTALL_SURICATA_UPDATE
        LD_LIBRARY_PATH=$(libdir) $(DESTDIR)$(bindir)/suricata-update \
                --suricata $(DESTDIR)$(bindir)/suricata \
                --suricata-conf $(DESTDIR)$(sysconfdir)/suricata/suricata.yaml \
index b69fc2eddeaedd9eff7339db1b2de338b63eb91e..dd61cc8558aa69a2158f8bcd05d685ad08795aa5 100644 (file)
       AC_CHECK_FILE([$srcdir/suricata-update/setup.py], [
           have_suricata_update="yes"], [])
     fi
-    AM_CONDITIONAL([HAVE_SURICATA_UPDATE],
-        [test "x$have_suricata_update" != "xno"])
 
     if test "$have_suricata_update" = "yes"; then
         if test "$have_python_yaml" != "yes"; then
         install_suricata_update="yes"
     fi
 
+    AM_CONDITIONAL([INSTALL_SURICATA_UPDATE],
+        [test "x$install_suricata_update" = "xyes"])
+
   # 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=$enableval],[enable_non_bundled_htp=no])