[arch-commits] Commit in nginx-mod-modsecurity/trunk (PKGBUILD)
Massimiliano Torromeo
mtorromeo at archlinux.org
Fri Jun 11 12:45:02 UTC 2021
Date: Friday, June 11, 2021 @ 12:45:02
Author: mtorromeo
Revision: 962784
upgpkg: nginx-mod-modsecurity 1:1.0.2-2: rebuild for nginx-1.20.1
Modified:
nginx-mod-modsecurity/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2021-06-11 12:44:05 UTC (rev 962783)
+++ PKGBUILD 2021-06-11 12:45:02 UTC (rev 962784)
@@ -3,7 +3,7 @@
pkgname=nginx-mod-modsecurity
epoch=1
pkgver=1.0.2
-pkgrel=1
+pkgrel=2
pkgdesc='ModSecurity v3 Nginx Connector (module for nginx)'
arch=('x86_64')
@@ -20,16 +20,21 @@
sha256sums=('41a6660c50508c60df59f8f09c444d18ef8112a4c118cdc791a3992390b78c32'
'SKIP')
+prepare() {
+ mkdir -p build
+ cd build
+ ln -sf /usr/src/nginx/auto
+ ln -sf /usr/src/nginx/src
+}
+
build() {
- cp -r /usr/src/nginx .
-
- cd "$srcdir"/nginx
- ./configure --with-compat --add-dynamic-module=../modsecurity-nginx-v$pkgver
+ cd build
+ /usr/src/nginx/configure --with-compat --add-dynamic-module=../modsecurity-nginx-v$pkgver
make modules
}
package() {
- cd "$srcdir"/nginx/objs
+ cd build/objs
for mod in *.so; do
install -Dm755 $mod "$pkgdir/usr/lib/nginx/modules/$mod"
done
More information about the arch-commits
mailing list