void-packages/srcpkgs/modsecurity/template
2020-07-01 00:04:39 +02:00

26 lines
931 B
Bash

# Template file for 'modsecurity'
pkgname=modsecurity
version=3.0.4
revision=2
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 lua53-devel
pcre-devel yajl-devel lmdb-devel"
depends="perl-LWP"
short_desc="Rule based web application firwall (WAF)"
maintainer="Orphaned <orphan@voidlinux.org>"
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=b4231177dd80b4e076b228e57d498670113b69d445bab86db25f65346c24db22
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
}