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) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 5 5 name snort 6 version 2.9. 0.56 version 2.9.1.2 7 7 categories net 8 8 maintainers markd 9 9 description Open Source Network Intrusion Detection System … … 17 17 homepage http://www.snort.org/ 18 18 platforms darwin freebsd 19 19 master_sites ${homepage}dl/snort-current/ 20 checksums sha1 b4565d3a8387f6b5e7aceb3aee80803ceabf80f2 20 21 checksums rmd160 a28ebd59df80884e1554fb75a4279e97b1dd8b32 \ 22 sha256 eac98be8138f9debdcc8f77061dab1950e88fa40c18311ddbab0a329852375f5 23 21 24 depends_lib port:daq 22 25 26 startupitem.create yes 27 startupitem.start "${prefix}/share/${name}/snort.sh" 28 startupitem.stop "/bin/kill \$(cat /var/run/snort_*.pid)" 29 23 30 variant mysql5 description {mysql 5 support} { 24 31 depends_lib-append path:bin/mysql_config5:mysql5 25 32 configure.args-append --with-mysql-includes=${prefix}/include/mysql5/mysql \ … … 31 38 configure.args-append --with-mysql=${prefix} 32 39 } 33 40 34 variant server description {startupitem} {35 startupitem.create yes36 startupitem.start "${prefix}/share/${name}/snort.sh"37 startupitem.stop "/bin/kill \$(cat /var/run/snort_*.pid)"38 }39 40 41 post-destroot { 41 42 # Copy the Snort database schemas 42 43 xinstall -d -m 755 ${destroot}${prefix}/share/${name}/schemas … … 54 55 reinplace "s|dynamicdetection directory /usr/local/lib/snort_dynamicrule/|dynamicdetection directory ${prefix}/lib/snort_dynamicrule/|g" ${destroot}${prefix}/etc/${name}/snort.conf.dist 55 56 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 56 57 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 \ 62 59 ${destroot}${prefix}/share/${name}/snort.sh 63 } 60 reinplace "s|__PREFIX__|${prefix}|g" \ 61 ${destroot}${prefix}/share/${name}/snort.sh 64 62 } 65 63 66 notes " \n64 notes " 67 65 ***** File locations ***** 68 66 69 67 The Snort database schemas -> ${prefix}/share/${name}/schemas 70 68 The snort.conf sample file -> ${prefix}/etc/${name}/snort.conf.dist (copy to snort.conf) 71 69 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" 70 NOTE: Make sure you do not change the location of the snort.conf file\ 71 or the startup scripts will not be able to find it. 72 " 73 74 livecheck.type regex 75 livecheck.url ${homepage}snort-downloads 76 livecheck.regex >${name}-(\[0-9.\]+)${extract.suffix}<