1 | #!/bin/sh |
---|
2 | |
---|
3 | ## FIXME! switch to %%PREFIX%% |
---|
4 | |
---|
5 | umask 022 |
---|
6 | export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:%%PREFIX%%/bin |
---|
7 | |
---|
8 | if [ -x %%PREFIX%%/etc/snort/rules -a -x %%PREFIX%%/etc/snort/community -a -x %%PREFIX%%/etc/snort/ET ]; then |
---|
9 | |
---|
10 | %%PREFIX%%/bin/oinkmaster.pl -o %%PREFIX%%/etc/snort/rules/ -b %%PREFIX%%/etc/snort/backup/ -C %%PREFIX%%/etc/oinkmaster.conf |
---|
11 | #%%PREFIX%%/bin/oinkmaster.pl -o %%PREFIX%%/etc/snort/community/ -b %%PREFIX%%/etc/snort/backup.community/ -u https://www.snort.org/downloads/community/community-rules.tar.gz -C %%PREFIX%%/etc/oinkmaster.conf |
---|
12 | %%PREFIX%%/bin/oinkmaster.pl -o %%PREFIX%%/etc/snort/ET/ -b %%PREFIX%%/etc/snort/backup.ET/ -u http://rules.emergingthreats.net/open/snort-2.9.0/emerging.rules.tar.gz -C %%PREFIX%%/etc/oinkmaster.conf |
---|
13 | |
---|
14 | ## See Q26, Q30 of oinkmaster FAQ: file needed by Barnyard and the like |
---|
15 | %%PREFIX%%/share/examples/oinkmaster/contrib/create-sidmap.pl \ |
---|
16 | %%PREFIX%%/etc/snort/rules/ \ |
---|
17 | %%PREFIX%%/etc/snort/community/ \ |
---|
18 | %%PREFIX%%/etc/snort/ET/ \ |
---|
19 | > %%PREFIX%%/etc/snort/rules/sid-msg.map \ |
---|
20 | 2>/tmp/oinkmaster-create-sidmap_err.log |
---|
21 | |
---|
22 | else |
---|
23 | |
---|
24 | echo "FATAL! missing some directories and/or permissions" |
---|
25 | |
---|
26 | fi |
---|
27 | |
---|
28 | |
---|