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  
    5555    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
    5656    reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/share/examples/${name}/snort.conf.dist
    5757    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
    5859
    5960    xinstall -d ${destroot}${prefix}/share/${name}
    6061    xinstall -m 755 ${filespath}/snort.sh \
     
    7980post-activate {
    8081    if ![file exists ${prefix}/etc/snort/snort.conf ] {
    8182        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"
    8286    }
    8387}
    8488
     
    9195
    9296NOTE: Make sure you do not change the location of the snort.conf file or the startup scripts will not be able to find it.
    9397
    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.*
     99Oinkmaster is the recommended way with regular updates.
    95100
    96101Change at least your HOME_NET in snort.conf and Validate your config with
    97102    $ snort -T -c ${prefix}/etc/snort/snort.conf