blob: 0fa10982c089f65c95b4c979f463e1a0ee403eb2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Maintainer: David P. <megver83@parabola.nu>
# Contributor: Alfredo Ramos <alfredo dot ramos at yandex dot com>
# Contributor: Stephan Conrad <stephan@conrad.pics>
pkgname=modsecurity
pkgver=2.9.2
pkgrel=2
pkgdesc='A cross platform web application firewall engine for Apache, IIS and Nginx'
arch=('armv7h' 'i686' 'x86_64')
url='https://modsecurity.org/'
license=('APACHE')
depends=('apache' 'apr-util' 'pcre' 'libxml2' 'lua' 'curl' 'yajl')
provides=("${pkgname}=${pkgver}")
source=("https://github.com/SpiderLabs/ModSecurity/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz"{,.asc}
'fix_lua_detection.patch')
validpgpkeys=('190EFACCA1E9FA466A8ECD9CE6DFB08CE8B11277' # Felipe Zimmerle
)
sha256sums=(
'41a8f73476ec891f3a9e8736b98b64ea5c2105f1ce15ea57a1f05b4bf2ffaeb5'
'SKIP' # GPG signature
'cf9d149d3c2a0e8e7960d55fc86789168df64c4511200551b67c457a87752934'
)
prepare() {
# Create build directory
mkdir -p "${srcdir}"/build
cd "${srcdir}"/build
cp -a "${srcdir}"/${pkgname}-${pkgver}/* ./
# Fix LUA detection
patch -Np1 < ../fix_lua_detection.patch
./autogen.sh
}
build() {
# Build package
cd "${srcdir}"/build
./configure \
--prefix=/usr \
--enable-standalone-module \
--enable-htaccess-config
# Remove RPATH
# https://tracker.debian.org/media/packages/m/modsecurity-apache/rules-2.9.1-2
sed -ri 's|(hardcode_into_libs)=.*|\1=no|' libtool
make
}
package() {
# Install package
cd "${srcdir}"/build
make DESTDIR="${pkgdir}" install
}
|