Ticket #41176: Portfile-snort.2.diff

File Portfile-snort.2.diff, 2.2 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.5.6
    77categories       net
    88maintainers      markd
    99license          GPL-2
     
    1919platforms        darwin freebsd
    2020master_sites     ${homepage}dl/snort-current/
    2121
    22 checksums        rmd160  a28ebd59df80884e1554fb75a4279e97b1dd8b32 \
    23                  sha256  eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f5
     22checksums        rmd160  6a22ccdc5d91f9c059960ee876b6e255bbf325d1 \
     23                 sha256  69ed09077c1fa2268f814c8eff6e613b7fe8876a138df1cd6579cffbb747db55
    2424
    2525depends_lib      port:daq
    2626
     
    2828startupitem.start   "${prefix}/share/${name}/snort.sh"
    2929startupitem.stop    "/bin/kill \$(cat /var/run/snort_*.pid)"
    3030
     31#configure.cc        ${prefix}/bin/gcc-mp-4.8
     32configure.cflags        -D_FORTIFY_SOURCE=0
     33
    3134variant mysql5 description {mysql 5 support} {
    3235    depends_lib-append    path:bin/mysql_config5:mysql5
    3336    configure.args-append   --with-mysql-includes=${prefix}/include/mysql5/mysql \
     
    4144
    4245post-destroot {
    4346# 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
     47#    xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas
     48#    eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas
    4649
    4750# Copy Snort's etc/ files
    4851    xinstall -d -m 755 ${destroot}${prefix}/etc/${name}
     
    5659    reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist
    5760    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
    5861
     62    xinstall -d ${destroot}${prefix}/share/${name}
    5963    xinstall -m 755 ${filespath}/snort.sh \
    6064        ${destroot}${prefix}/share/${name}/snort.sh
    6165    reinplace "s|__PREFIX__|${prefix}|g" \