26 lines
932 B
Bash
26 lines
932 B
Bash
# Template file for 'modsecurity'
|
|
pkgname=modsecurity
|
|
version=3.0.3
|
|
revision=1
|
|
wrksrc="modsecurity-v${version}"
|
|
build_style=gnu-configure
|
|
configure_args="--enable-standalone-module --enable-htaccess-config"
|
|
hostmakedepends="pkg-config"
|
|
makedepends="apache-devel gdbm-devel libcurl-devel libxml2-devel lua-devel
|
|
pcre-devel yajl-devel lmdb-devel"
|
|
depends="perl-LWP"
|
|
short_desc="Rule based web application firwall (WAF)"
|
|
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
|
|
license="Apache-2.0"
|
|
homepage="https://www.modsecurity.org"
|
|
distfiles="https://github.com/SpiderLabs/ModSecurity/releases/download/v${version}/modsecurity-v${version}.tar.gz"
|
|
checksum=8aa1300105d8cc23315a5e54421192bc617a66246ad004bd89e67c232208d0f4
|
|
nocross="configure: error: cannot check for file existence when cross compiling"
|
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" $makedepends"
|
|
fi
|
|
|
|
pre_build() {
|
|
sed -ri 's|(hardcode_into_libs)=.*|\1=no|' libtool
|
|
}
|