From 020700140551b231478f67232476c7245af14f90 Mon Sep 17 00:00:00 2001 From: maxice8 Date: Mon, 4 Jun 2018 22:39:01 -0300 Subject: [PATCH] New package: modsecurity-2.9.2. --- .../patches/fix-lua-detection.patch | 17 +++++++++++ srcpkgs/modsecurity/template | 28 +++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 srcpkgs/modsecurity/patches/fix-lua-detection.patch create mode 100644 srcpkgs/modsecurity/template diff --git a/srcpkgs/modsecurity/patches/fix-lua-detection.patch b/srcpkgs/modsecurity/patches/fix-lua-detection.patch new file mode 100644 index 00000000000..1181ac47481 --- /dev/null +++ b/srcpkgs/modsecurity/patches/fix-lua-detection.patch @@ -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( + diff --git a/srcpkgs/modsecurity/template b/srcpkgs/modsecurity/template new file mode 100644 index 00000000000..5af89f7dcbf --- /dev/null +++ b/srcpkgs/modsecurity/template @@ -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 " +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 +}