New package: modsecurity-2.9.2.

This commit is contained in:
maxice8 2018-06-04 22:39:01 -03:00
parent 8782252f2f
commit 0207001405
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,17 @@
Source: Arch Linux
Upstream: Unknown
Reason: Fixes lua53 detection
---
--- build/find_lua.m4
+++ build/find_lua.m4
@@ -16,7 +16,7 @@ LUA_CPPFLAGS=""
LUA_LDADD=""
LUA_LDFLAGS=""
LUA_CONFIG=${PKG_CONFIG}
-LUA_PKGNAMES="lua5.1 lua-5.1 lua_5.1 lua-51 lua_51 lua51 lua5 lua lua5.2 lua-5.2 lua_5.2 lua-52 lua_52 lua52 lua5.3 lua-5.3 lua_5.3 lua-53 lua_53 lua53 "
+LUA_PKGNAMES="lua53 lua_53 lua-53 lua_5.3 lua-5.3 lua5.3 lua52 lua_52 lua-52 lua_5.2 lua-5.2 lua5.2 lua lua5 lua51 lua_51 lua-51 lua_5.1 lua-5.1 lua5.1"
LUA_SONAMES="so la sl dll dylib a"
AC_ARG_WITH(

View File

@ -0,0 +1,28 @@
# Template file for 'modsecurity'
pkgname=modsecurity
version=2.9.2
revision=1
build_style=gnu-configure
configure_args="--enable-standalone-module --enable-htaccess-config"
hostmakedepends="automake libtool pkg-config"
makedepends="apache-devel gdbm-devel libcurl-devel libxml2-devel lua-devel
pcre-devel yajl-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-${version}.tar.gz"
checksum=41a8f73476ec891f3a9e8736b98b64ea5c2105f1ce15ea57a1f05b4bf2ffaeb5
if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" $makedepends"
fi
pre_configure() {
./autogen.sh
}
pre_build() {
sed -ri 's|(hardcode_into_libs)=.*|\1=no|' libtool
}