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

Giancarlo Razzolini grazzolini at archlinux.org
Thu May 9 15:18:29 UTC 2019


    Date: Thursday, May 9, 2019 @ 15:18:28
  Author: grazzolini
Revision: 464638

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 464637, nginx-mod-naxsi/trunk/PKGBUILD)

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

Copied: nginx-mod-naxsi/repos/community-staging-x86_64/PKGBUILD (from rev 464637, nginx-mod-naxsi/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-05-09 15:18:28 UTC (rev 464638)
@@ -0,0 +1,40 @@
+# Maintainer: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+
+pkgname=nginx-mod-naxsi
+pkgver=0.56
+pkgrel=4
+
+_modname=naxsi
+_nginxver=1.16.0
+
+pkgdesc='Nginx Anti XSS & SQL Injection'
+arch=('x86_64')
+depends=("nginx=$_nginxver")
+url="https://github.com/nbs-system/naxsi"
+license=('GPL3')
+backup=('etc/nginx/naxsi_core.rules')
+
+source=(
+	https://nginx.org/download/nginx-$_nginxver.tar.gz{,.asc}
+	https://github.com/nbs-system/$_modname/archive/$pkgver/$_modname-$pkgver.tar.gz
+)
+validpgpkeys=(B0F4253373F8F6F510D42178520A9993A1C052F8) # Maxim Dounin <mdounin at mdounin.ru>
+sha256sums=('4fd376bad78797e7f18094a00f0f1088259326436b537eb5af69b01be2ca1345'
+            'SKIP'
+            '0a66dcadd32432460fab180be9f2efe24e911e3798917b2787ee710e02901eb4')
+
+build() {
+	cd "$srcdir"/nginx-$_nginxver
+	./configure --with-compat --add-dynamic-module=../$_modname-$pkgver/naxsi_src
+	make modules
+}
+
+package() {
+	cd "$srcdir"/nginx-$_nginxver/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