Ticket #31921: snort-2.9.1.2.diff

File snort-2.9.1.2.diff, 3.0 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

proposed snort patch

  • Portfile

     
    33PortSystem 1.0
    44
    55name             snort
    6 version          2.9.0.5
     6version          2.9.1.2
    77categories       net
    88maintainers      markd
    99description      Open Source Network Intrusion Detection System
     
    1717homepage         http://www.snort.org/
    1818platforms        darwin freebsd
    1919master_sites     ${homepage}dl/snort-current/
    20 checksums        sha1 b4565d3a8387f6b5e7aceb3aee80803ceabf80f2
     20
     21checksums        rmd160  a28ebd59df80884e1554fb75a4279e97b1dd8b32 \
     22                 sha256  eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f5
     23
    2124depends_lib      port:daq
    2225
     26startupitem.create  yes
     27startupitem.start   "${prefix}/share/${name}/snort.sh"
     28startupitem.stop    "/bin/kill \$(cat /var/run/snort_*.pid)"
     29
    2330variant mysql5 description {mysql 5 support} {
    2431    depends_lib-append    path:bin/mysql_config5:mysql5
    2532    configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql \
     
    3138    configure.args-append --with-mysql=${prefix}
    3239}
    3340
    34 variant server description {startupitem} {
    35     startupitem.create    yes
    36     startupitem.start "${prefix}/share/${name}/snort.sh"
    37     startupitem.stop  "/bin/kill \$(cat /var/run/snort_*.pid)"
    38 }
    39 
    4041post-destroot {
    4142# Copy the Snort database schemas
    4243    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
     
    5455    reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist
    5556    reinplace "s|dynamicdetection file /usr/local/lib/snort_dynamicrule/libdynamicexamplerule.so|dynamicdetection file ${prefix}/lib/snort_dynamicrule/libdynamicexamplerule.dylib|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist
    5657
    57 
    58         if { [variant_isset server] } {
    59             xinstall -m 755 ${portpath}/${filesdir}/snort.sh \
    60             ${destroot}${prefix}/share/${name}/snort.sh
    61             reinplace "s|__PREFIX__|${prefix}|g" \
     58    xinstall -m 755 ${filespath}/snort.sh \
    6259        ${destroot}${prefix}/share/${name}/snort.sh
    63     }
     60    reinplace "s|__PREFIX__|${prefix}|g" \
     61        ${destroot}${prefix}/share/${name}/snort.sh
    6462}
    6563
    66 notes "\n
     64notes "
    6765            ***** File locations *****
    6866
    6967The Snort database schemas -> ${prefix}/share/${name}/schemas
    7068The snort.conf sample file -> ${prefix}/etc/${name}/snort.conf.dist (copy to snort.conf)
    7169
    72 NOTE:   If you installed Snort using the +server variant, make sure you do not
    73     change the location of the snort.conf file or the startup scripts
    74     will not be able to find it.
    75 \n"
     70NOTE: Make sure you do not change the location of the snort.conf file\
     71or the startup scripts will not be able to find it.
     72"
     73
     74livecheck.type      regex
     75livecheck.url       ${homepage}snort-downloads
     76livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}<