summaryrefslogtreecommitdiff
path: root/network/suricata/doinst.sh
diff options
context:
space:
mode:
authorDimitris Zlatanidis <d.zlatanidis@gmail.com>2014-02-20 00:09:25 +0700
committerErik Hanson <erik@slackbuilds.org>2014-02-21 14:41:02 -0600
commit6b68afeaa5484f5c47ba7f6686b5102fe9b606db (patch)
tree5222f1474010e668081e0176c74d17bea9b5dba4 /network/suricata/doinst.sh
parent1223fe6b33bc14c49fad7949b3b982a6ea9ad490 (diff)
downloadslackbuilds-6b68afeaa5484f5c47ba7f6686b5102fe9b606db.tar.gz
network/suricata: Added (Network Security Monitoring).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/suricata/doinst.sh')
-rw-r--r--network/suricata/doinst.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/network/suricata/doinst.sh b/network/suricata/doinst.sh
new file mode 100644
index 0000000000..c53b980178
--- /dev/null
+++ b/network/suricata/doinst.sh
@@ -0,0 +1,17 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/suricata/classification.config.new
+config etc/suricata/reference.config.new
+config etc/suricata/suricata.yaml.new
+config etc/suricata/threshold.config.new