# $Id: Portfile 20491 2006-11-03 15:43:42Z myschizobuddy@gmail.com $ PortSystem 1.0 name mod_security2 version 2.5.11 categories www security platforms darwin maintainers myschizobuddy@gmail.com description Apache 2 intrusion detection and prevention engine for web applications long_description ModSecurity is an open source intrusion detection and \ prevention engine for web applications. It operates \ embedded into the web server, acting as a powerful \ umbrella - shielding applications from attacks. \ It supports both branches of the Apache web server. homepage http://www.modsecurity.org master_sites ${homepage}/download/ distname modsecurity-apache_${version} checksums md5 66cd4e5eed674ac3a0013b7229a1c2bb \ sha1 aa8ec8d637efb0c646c41eb6880e684df04f8214 depends_build port:libxml2 \ port:pcre \ port:curl \ port:apr depends_lib port:apache2 configure.args --with-apxs=${prefix}/apache2/bin/apxs \ --with-pcre=${prefix}/bin \ --with-apr=${prefix}/bin \ --with-curl=${prefix} \ --with-libxml=${prefix} worksrcdir ${distname}/apache2 destroot.violate_mtree yes pre-destroot { xinstall -d -m 755 ${destroot}${prefix}/apache2/modules \ ${destroot}${prefix}/share/doc file copy ${workpath}/${distname}/doc ${destroot}${prefix}/share/doc/${name} } post-install { ui_msg "########################################################" ui_msg "# To enable mod_security2 add" ui_msg "# LoadModule security2_module modules/mod_security2.so" ui_msg "# to your apache2 config file:" ui_msg "# ${prefix}/apache2/conf/httpd.conf" ui_msg "########################################################" }