modsecurity: update to 3.0.2.

This commit is contained in:
maxice8 2018-11-03 13:44:14 -03:00 committed by maxice8
parent ed48f8652f
commit cd1251ce15
2 changed files with 8 additions and 27 deletions

View File

@ -1,17 +0,0 @@
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

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