summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 180f10431b285f25f2635d418ac1cc92fdde32d8 (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
# Maintainer: Marius Kleber <marius at kleberonline dot de>

pkgname=apache-modsecurity-git
_pkgname=ModSecurity-apache
pkgver=r123.2368a66
pkgrel=1
pkgdesc='ModSecurity v3 Apache Connector (module for Apache)'
arch=('x86_64')
depends=('libmodsecurity')
makedepends=('git')
url="https://github.com/SpiderLabs/ModSecurity-apache.git"
license=('Apache')
source=("git+https://github.com/SpiderLabs/ModSecurity-apache.git")
sha256sums=('SKIP')

pkgver() {
    cd "$_pkgname"

    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "$_pkgname"

    autoreconf -fi
}

build() {
    cd "$_pkgname"

    ./configure --with-libmodsecurity=/usr
    make        
}

package() {
    install -Dm755 "$_pkgname"/src/.libs/*.so -t "$pkgdir/usr/lib/httpd/modules/"
}