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

Giancarlo Razzolini grazzolini at archlinux.org
Wed Apr 22 19:26:48 UTC 2020


    Date: Wednesday, April 22, 2020 @ 19:26:48
  Author: grazzolini
Revision: 617704

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: nginx-mod-naxsi/repos/community-staging-x86_64/PKGBUILD (from rev 617703, nginx-mod-naxsi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-04-22 19:26:48 UTC (rev 617704)
@@ -0,0 +1,39 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-naxsi
+pkgver=0.56
+pkgrel=6
+
+_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=('0a66dcadd32432460fab180be9f2efe24e911e3798917b2787ee710e02901eb4')
+
+build() {
+  cp -r /usr/src/nginx .
+
+	cd "$srcdir"/nginx
+	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver/naxsi_src
+	make modules
+}
+
+package() {
+	cd "$srcdir"/nginx/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