Date: Friday, April 20, 2018 @ 11:42:15 Author: mtorromeo Revision: 317179
archrelease: copy trunk to community-staging-x86_64 Added: nginx-mod-modsecurity/repos/community-staging-x86_64/ nginx-mod-modsecurity/repos/community-staging-x86_64/PKGBUILD (from rev 317178, nginx-mod-modsecurity/trunk/PKGBUILD) ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Copied: nginx-mod-modsecurity/repos/community-staging-x86_64/PKGBUILD (from rev 317178, nginx-mod-modsecurity/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2018-04-20 11:42:15 UTC (rev 317179) @@ -0,0 +1,38 @@ +# $Id$ +# Maintainer: Massimiliano Torromeo <massimiliano.torro...@gmail.com> + +pkgname=nginx-mod-modsecurity +epoch=1 +pkgver=1.0.0 +pkgrel=2 +_nginxver=1.14.0 + +pkgdesc='ModSecurity v3 Nginx Connector (module for mainline nginx)' +arch=('x86_64') +depends=("nginx=$_nginxver" 'libmodsecurity') +url="https://github.com/SpiderLabs/ModSecurity-nginx" +license=('GPL3') + +source=( + https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc} + https://github.com/SpiderLabs/ModSecurity-nginx/releases/download/v$pkgver/modsecurity-nginx-v$pkgver.tar.gz{,.asc} +) +validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8' # Maxim Dounin <mdou...@mdounin.ru> + '190EFACCA1E9FA466A8ECD9CE6DFB08CE8B11277') # Felipe Zimmerle +sha256sums=('5d15becbf69aba1fe33f8d416d97edd95ea8919ea9ac519eff9bafebb6022cb5' + 'SKIP' + '06f78eb6d33833cc247257c4095c0ee528e80a61f1f52e1da5fdca5e464975a0' + 'SKIP') + +build() { + cd "$srcdir"/nginx-$_nginxver + ./configure --with-compat --add-dynamic-module=../modsecurity-nginx-v$pkgver + make modules +} + +package() { + cd "$srcdir"/nginx-$_nginxver/objs + for mod in *.so; do + install -Dm755 $mod "$pkgdir/usr/lib/nginx/modules/$mod" + done +}