Ticket #41176: Portfile-snort.2.diff
File Portfile-snort.2.diff, 2.2 KB (added by Schamschula (Marius Schamschula), 11 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name snort 6 version 2.9. 1.26 version 2.9.5.6 7 7 categories net 8 8 maintainers markd 9 9 license GPL-2 … … 19 19 platforms darwin freebsd 20 20 master_sites ${homepage}dl/snort-current/ 21 21 22 checksums rmd160 a28ebd59df80884e1554fb75a4279e97b1dd8b32\23 sha256 eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f522 checksums rmd160 6a22ccdc5d91f9c059960ee876b6e255bbf325d1 \ 23 sha256 69ed09077c1fa2268f814c8eff6e613b7fe8876a138df1cd6579cffbb747db55 24 24 25 25 depends_lib port:daq 26 26 … … 28 28 startupitem.start "${prefix}/share/${name}/snort.sh" 29 29 startupitem.stop "/bin/kill \$(cat /var/run/snort_*.pid)" 30 30 31 #configure.cc ${prefix}/bin/gcc-mp-4.8 32 configure.cflags -D_FORTIFY_SOURCE=0 33 31 34 variant mysql5 description {mysql 5 support} { 32 35 depends_lib-append path:bin/mysql_config5:mysql5 33 36 configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql \ … … 41 44 42 45 post-destroot { 43 46 # Copy the Snort database schemas 44 xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas45 eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas47 # xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas 48 # eval xinstall -m 755 [glob ${worksrcpath}/schemas/create*] ${destroot}${prefix}/share/${name}/schemas 46 49 47 50 # Copy Snort's etc/ files 48 51 xinstall -d -m 755 ${destroot}${prefix}/etc/${name} … … 56 59 reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist 57 60 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 58 61 62 xinstall -d ${destroot}${prefix}/share/${name} 59 63 xinstall -m 755 ${filespath}/snort.sh \ 60 64 ${destroot}${prefix}/share/${name}/snort.sh 61 65 reinplace "s|__PREFIX__|${prefix}|g" \