diff options
author | MK13 | 2020-12-15 00:20:10 +0100 |
---|---|---|
committer | MK13 | 2020-12-15 00:20:10 +0100 |
commit | 6c47a1a395f2c43d00a9ff243ca8e2cf7e29ab65 (patch) | |
tree | 3926dfa647b249f04ef53074782bac11df47a990 | |
download | aur-apache-modsecurity-git.tar.gz |
Initial publish
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 37 |
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..213a383abc18 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,13 @@ +pkgbase = apache-modsecurity-git + pkgdesc = ModSecurity v3 Apache Connector (module for Apache) + pkgver = r123.2368a66 + pkgrel = 1 + url = https://github.com/SpiderLabs/ModSecurity-apache.git + arch = x86_64 + license = Apache + makedepends = git + depends = libmodsecurity + source = git+https://github.com/SpiderLabs/ModSecurity-apache.git + sha256sums = SKIP + +pkgname = apache-modsecurity-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..180f10431b28 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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/" +} |