Ticket #41176: Portfile-snort.4.diff

File Portfile-snort.4.diff, 2.4 KB (added by Schamschula (Marius Schamschula), 10 years ago)
  • Portfile

    old new  
    33PortSystem 1.0
    44
    55name             snort
    6 version          2.9.1.2
     6version          2.9.6.2
    77categories       net
    88maintainers      markd
    99license          GPL-2
     
    1717    attacks, SMB probes, OS fingerprinting attempts, and much more.
    1818homepage         http://www.snort.org/
    1919platforms        darwin freebsd
    20 master_sites     ${homepage}dl/snort-current/
     20master_sites     ${homepage}downloads/snort/
    2121
    22 checksums        rmd160  a28ebd59df80884e1554fb75a4279e97b1dd8b32 \
    23                  sha256  eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f5
     22checksums        rmd160  3c98ec1464e969a78207b85466f95a40d1021764 \
     23                 sha256  8e1d7fc5e1523a786d845ca0102cc474abfcebfcc7e964a1653680034b5b5d77
    2424
    2525depends_lib      port:daq
    2626
     27configure.compiler macports-gcc-4.8
     28
    2729startupitem.create  yes
    2830startupitem.start   "${prefix}/share/${name}/snort.sh"
    2931startupitem.stop    "/bin/kill \$(cat /var/run/snort_*.pid)"
     
    4143
    4244post-destroot {
    4345# Copy the Snort database schemas
    44     xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
    45     eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas
     46#    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
     47#    eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas
    4648
    4749# Copy Snort's etc/ files
    4850    xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
     
    5658    reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist
    5759    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
    5860
     61        xinstall -d ${destroot}${prefix}/share/${name}
    5962    xinstall -m 755 ${filespath}/snort.sh \
    6063        ${destroot}${prefix}/share/${name}/snort.sh
    6164    reinplace "s|__PREFIX__|${prefix}|g" \
     
    7376"
    7477
    7578livecheck.type      regex
    76 livecheck.url       ${homepage}snort-downloads
     79livecheck.url       ${homepage}downloads
    7780livecheck.regex     >${name}-(\[0-9.\]+)${extract.suffix}<