# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
set name_package modsecurity
maintainers {mps @Schamschula} openmaintainer
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.
homepage http://www.modsecurity.org
master_sites https://www.modsecurity.org/tarball/${version}/
distname ${name_package}-${version}
checksums rmd160 de34a027da168abdb3397a2c3ca4ac5ba4081e73 \
sha256 4192019d169d3f1dd82cc4714db6986df54c6ceb4ee1c8f253de78d1a6b62118 \
depends_build port:pkgconfig
depends_lib port:apache2 \
set apxs ${prefix}/bin/apxs
set httpd_conf ${prefix}/etc/apache2/httpd.conf
set mdir ${destroot}${prefix}/lib/apache2/modules/
variant apache22 description "use apache22 instead of apache2" {
# remove after 2020-05-06
ui_error "Please do not install this variant since Apache 2.2 is obsolete."
configure.args --with-apxs=${apxs} \
--with-pcre=${prefix}/bin/pcre-config \
--with-apr=${prefix}/bin/apr-1-config \
--with-apu=${prefix}/bin/apu-1-config \
--with-curl=${prefix}/bin/curl-config \
--with-libxml=${prefix} \
xinstall -d -m 755 ${mdir}
xinstall -m 644 -W ${worksrcpath}/apache2/.libs mod_security2.so \
xinstall -m 755 -W ${worksrcpath}/mlogc mlogc mlogc-batch-load.pl \
xinstall -m 755 -W ${worksrcpath}/tools rules-updater.pl \
xinstall -m 755 -W ${worksrcpath}/mlogc mlogc-default.conf \
xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}