]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/suricata
suricata: Update to 4.1.3
[ipfire-2.x.git] / lfs / suricata
index d6b016838022527de62a532dfebb09647d1810c8..8a1e50240f330f35f4e14b89c05221d07731e216 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2015  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -24,7 +24,7 @@
 
 include Config
 
-VER        = 4.0.5
+VER        = 4.1.3
 
 THISAPP    = suricata-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
@@ -40,7 +40,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = ea0cb823d6a86568152f75ade6de442f
+$(DL_FILE)_MD5 = 35c4a8e6be3910831649a073950195df
 
 install : $(TARGET)
 
@@ -82,9 +82,25 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
        cd $(DIR_APP) && make install-conf
-       mv /etc/suricata/suricata.yaml /etc/suricata/suricata-example.yaml
+
+       # Remove default suricata config file.
+       rm -rvf /etc/suricata/suricata.yaml
+
+       # Install IPFire related config file.
        install -m 0644 $(DIR_SRC)/config/suricata/suricata.yaml /etc/suricata
-       -mkdir -p /etc/suricata/rules
+
+       # Create emtpy rules directory.
+       -mkdir -p /var/lib/suricata
+
+       # Move config files for references, threshold and classification
+       # to the rules directory.
+       mv /etc/suricata/*.config /var/lib/suricata
+
+       # Set correct ownership for /var/lib/suricata
+       chown nobody:nobody /var/lib/suricata
+
+       # Create logging directory.
        -mkdir -p /var/log/suricata
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)