From: Jason Ish Date: Wed, 10 Mar 2021 04:54:43 +0000 (-0600) Subject: install: better warning on install-full and don't fail X-Git-Tag: suricata-7.0.0-beta1~1722 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=abb3cc85d5e54fbc14e4c2783ddbc619b1e29443;p=thirdparty%2Fsuricata.git install: better warning on install-full and don't fail If suricata-update is not available on "make install-full", don't exit 1, instead give the reason why its not installed, but still succeed the install. --- diff --git a/Makefile.am b/Makefile.am index 24b8810d6e..cb101f708b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,8 +38,9 @@ if INSTALL_SURICATA_UPDATE --suricata-conf $(DESTDIR)$(sysconfdir)/suricata/suricata.yaml \ --no-test --no-reload else - @echo "error: rules not installed as suricata-update not available" - @exit 1 + @echo "" + @echo "Warning: No rules will be downloaded as suricata-update" + @echo " is not available: ${install_suricata_update_reason}" endif @echo "" @echo "You can now start suricata by running as root something like:" diff --git a/configure.ac b/configure.ac index 12a90a3ebf..bee6c09786 100644 --- a/configure.ac +++ b/configure.ac @@ -1628,19 +1628,24 @@ # Test to see if suricata-update can be installed. if test "x$have_suricata_update" != "xyes"; then - install_suricata_update="not bundled" + install_suricata_update="no, " + install_suricata_update_reason="not bundled" elif test "x$enable_python" != "xyes"; then - install_suricata_update="no, requires python" + install_suricata_update="no, " + install_suricata_update_reason="requires python" elif test "x$have_python_distutils" != "xyes"; then - install_suricata_update="no, requires distutils" + install_suricata_update="no, " + install_suricata_update_reason="requires distutils" elif test "x$have_python_yaml" != "xyes"; then - install_suricata_update="no, requires pyyaml" + install_suricata_update="no, " + install_suricata_update_reason="requires pyyaml" else install_suricata_update="yes" fi AM_CONDITIONAL([INSTALL_SURICATA_UPDATE], [test "x$install_suricata_update" = "xyes"]) + AC_SUBST([install_suricata_update_reason]) # libhtp AC_ARG_ENABLE(non-bundled-htp, @@ -2740,7 +2745,7 @@ SURICATA_BUILD_CONF="Suricata Configuration: Python yaml ${have_python_yaml} Install suricatactl: ${install_suricatactl} Install suricatasc: ${install_suricatactl} - Install suricata-update: ${install_suricata_update} + Install suricata-update: ${install_suricata_update}${install_suricata_update_reason} Profiling enabled: ${enable_profiling} Profiling locks enabled: ${enable_profiling_locks}