diff options
author | Massimiliano Torromeo | 2017-05-16 14:18:46 +0200 |
---|---|---|
committer | Massimiliano Torromeo | 2017-05-16 14:18:46 +0200 |
commit | ac142aab3231a4b6fd4fe1afc3e11b1b918f4b1a (patch) | |
tree | 3ddf4c72fb39d9afda5f9c15f500ff54a89a99c3 | |
download | aur-ac142aab3231a4b6fd4fe1afc3e11b1b918f4b1a.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | .gitignore | 17 | ||||
-rw-r--r-- | PKGBUILD | 42 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..6972b6acb9ff --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +# Generated by mksrcinfo v8 +# Tue May 16 12:18:40 UTC 2017 +pkgbase = nginx-mainline-mod-modsecurity-git + pkgdesc = ModSecurity v3 Nginx Connector (module for mainline nginx) + pkgver = 3de175b + pkgrel = 1 + url = https://github.com/SpiderLabs/ModSecurity-nginx + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + depends = nginx-mainline + depends = libmodsecurity-git + source = http://nginx.org/download/nginx-1.13.0.tar.gz + source = git+https://github.com/SpiderLabs/ModSecurity-nginx.git + sha256sums = 79f52ab6550f854e14439369808105b5780079769d7b8db3856be03c683605d7 + sha256sums = SKIP + +pkgname = nginx-mainline-mod-modsecurity-git + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..9b97681014e9 --- /dev/null +++ b/.gitignore @@ -0,0 +1,17 @@ +*.zip +*.jar +*.tar +*.tgz +*.tbz2 +*.gz +*.bz2 +*.xz +*.gem +*.run +*.deb +*.rpm +*.sig +*.log +/src +/pkg +*.kate-swp diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..6f85f0a59500 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com> + +pkgname=nginx-mainline-mod-modsecurity-git +pkgver=3de175b +pkgrel=1 + +_modname=ModSecurity-nginx +_nginxver=1.13.0 + +pkgdesc='ModSecurity v3 Nginx Connector (module for mainline nginx)' +arch=('i686' 'x86_64') +depends=('nginx-mainline' 'libmodsecurity-git') +makedepends=('git') +url="https://github.com/SpiderLabs/ModSecurity-nginx" +license=('GPL3') + +source=( + http://nginx.org/download/nginx-$_nginxver.tar.gz + git+https://github.com/SpiderLabs/ModSecurity-nginx.git +) + +sha256sums=('79f52ab6550f854e14439369808105b5780079769d7b8db3856be03c683605d7' + 'SKIP') + +pkgver() { + cd "$srcdir"/$_modname + git describe --tags --always | sed 's|-|.|g' +} + + +build() { + cd "$srcdir"/nginx-$_nginxver + ./configure $(nginx -V 2>&1 | grep 'configure arguments' | sed -r 's@^[^:]+: @@') --add-dynamic-module=../$_modname + make modules +} + +package() { + cd "$srcdir"/nginx-$_nginxver/objs + for mod in *.so; do + install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod + done +} |