[arch-commits] Commit in nginx-mod-naxsi/repos (2 files)

Giancarlo Razzolini grazzolini at gemini.archlinux.org
Sun Nov 28 19:51:10 UTC 2021


    Date: Sunday, November 28, 2021 @ 19:51:10
  Author: grazzolini
Revision: 1055409

archrelease: copy trunk to community-testing-x86_64

Added:
  nginx-mod-naxsi/repos/community-testing-x86_64/
  nginx-mod-naxsi/repos/community-testing-x86_64/PKGBUILD
    (from rev 1055408, nginx-mod-naxsi/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: nginx-mod-naxsi/repos/community-testing-x86_64/PKGBUILD (from rev 1055408, nginx-mod-naxsi/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2021-11-28 19:51:10 UTC (rev 1055409)
@@ -0,0 +1,41 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-naxsi
+pkgver=1.3
+pkgrel=5
+_modname=naxsi
+pkgdesc='Nginx Anti XSS & SQL Injection'
+arch=('x86_64')
+depends=('nginx')
+makedepends=('nginx-src')
+url="https://github.com/nbs-system/naxsi"
+license=('GPL3')
+backup=('etc/nginx/naxsi_core.rules')
+source=(
+	https://github.com/nbs-system/$_modname/archive/$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('439c8677372d2597b4360bbcc10bc86490de1fc75695b193ad5df154a214d628')
+
+prepare() {
+	mkdir -p build
+	cd build
+	ln -sf /usr/src/nginx/auto
+	ln -sf /usr/src/nginx/src
+}
+
+build() {
+	cd build
+	/usr/src/nginx/configure --with-compat --add-dynamic-module=../$_modname-$pkgver/naxsi_src
+	make modules
+}
+
+package() {
+	cd build/objs
+	for mod in *.so; do
+		install -Dm755 $mod "$pkgdir"/usr/lib/nginx/modules/$mod
+	done
+
+	cd "$srcdir"/$_modname-$pkgver
+	install -Dm644 naxsi_config/naxsi_core.rules "$pkgdir"/etc/nginx/naxsi_core.rules
+}



More information about the arch-commits mailing list