Ticket #46320: patch-snort-Portfile.diff
File patch-snort-Portfile.diff, 1.9 KB (added by jul_bsd@…, 10 years ago) |
---|
-
net/snort/Portfile
old new 55 55 reinplace "s|dynamicengine /usr/local/lib/snort_dynamicengine/libsf_engine.so|dynamicengine ${prefix}/lib/snort_dynamicengine/libsf_engine.dylib|g" ${destroot}${prefix}/share/examples/${name}/snort.conf.dist 56 56 reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/share/examples/${name}/snort.conf.dist 57 57 reinplace "s|dynamicdetection file /usr/local/lib/snort_dynamicrule/libdynamicexamplerule.so|dynamicdetection file ${prefix}/lib/snort_dynamicrule/libdynamicexamplerule.dylib|g" ${destroot}${prefix}/share/examples/${name}/snort.conf.dist 58 reinplace "s|_LIST_PATH ../rules|_LIST_PATH ${prefix}/etc/snort|g" ${destroot}${prefix}/share/examples/${name}/snort.conf.dist 58 59 59 60 xinstall -d ${destroot}${prefix}/share/${name} 60 61 xinstall -m 755 ${filespath}/snort.sh \ … … 79 80 post-activate { 80 81 if ![file exists ${prefix}/etc/snort/snort.conf ] { 81 82 copy ${prefix}/share/examples/${name}/snort.conf.dist ${prefix}/etc/snort/snort.conf 83 system "touch ${prefix}/etc/snort/rules/local.rules" 84 system "touch ${prefix}/etc/snort/white_list.rules" 85 system "touch ${prefix}/etc/snort/black_list.rules" 82 86 } 83 87 } 84 88 … … 91 95 92 96 NOTE: Make sure you do not change the location of the snort.conf file or the startup scripts will not be able to find it. 93 97 94 Please download rules from https://www.snort.org/snort-rules/#rules either manually or with oinkmaster. 98 *Please download rules from https://www.snort.org/downloads/#rule-downloads either manually or with oinkmaster.* 99 Oinkmaster is the recommended way with regular updates. 95 100 96 101 Change at least your HOME_NET in snort.conf and Validate your config with 97 102 $ snort -T -c ${prefix}/etc/snort/snort.conf