Saturday, May 09, 2026 AM03:21:24 HKT

This commit is contained in:
2026-05-09 03:21:32 +08:00
commit 41f17b127c
884 changed files with 263824 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
PACKAGE="libnginx-mod-http-naxsi"
VERSION="@NAXSI_VERSION@"
SECTION="httpd"
ARCHITECTURE="amd64"
DEPENDENCIES="@NGINX_PACKAGE@ (>= @NGINX_VERSION@), @LIBPCRE_PACKAGE@ (>= @LIBPCRE_VERSION@)"
MAINTAINER_NAME="Giovanni Dante Grazioli"
MAINTAINER_EMAIL="deroad@libero.it"
HOMEPAGE="https://github.com/wargio/naxsi"
DESCRIPTION="NAXSI, a web application firewall for Nginx."
+1
View File
@@ -0,0 +1 @@
load_module modules/ngx_http_naxsi_module.so;
+30
View File
@@ -0,0 +1,30 @@
#!/bin/sh
set -e
# Automatically added by dh_nginx/UNDECLARED
for confpair in mod-http-naxsi.conf:50-mod-http-naxsi.conf ; do
from=$(echo $confpair | cut -d: -f1)
to=$(echo $confpair | cut -d: -f2)
if [ -L /etc/nginx/modules-enabled/$to.removed ]; then
rm /etc/nginx/modules-enabled/$to.removed
removed_link=true
else
removed_link=false
fi
# Symlink on
# 1) Fresh installations
# 2) Reinstalls after automatic removes (preserve admin actions)
if [ -z "$2" -o "$removed_link" = "true" ]; then
ln -sf /usr/share/nginx/modules-available/$from \
/etc/nginx/modules-enabled/$to
fi
done
if [ "$1" = "configure" ] ; then
if which dpkg-trigger >/dev/null 2>&1 ; then
dpkg-trigger --no-await nginx-reload
fi
fi
# End automatically added section
+32
View File
@@ -0,0 +1,32 @@
#!/bin/sh
set -e
# Automatically added by dh_nginx/UNDECLARED
if [ "$1" = "purge" ] ; then
for confpair in mod-http-naxsi.conf:50-mod-http-naxsi.conf ; do
from=$(echo $confpair | cut -d: -f1)
to=$(echo $confpair | cut -d: -f2)
if [ -L /etc/nginx/modules-enabled/$to ]; then
rm /etc/nginx/modules-enabled/$to
fi
if [ -L /etc/nginx/modules-enabled/$to.removed ]; then
rm /etc/nginx/modules-enabled/$to.removed
fi
done
fi
if [ "$1" = "remove" ] ; then
for confpair in mod-http-naxsi.conf:50-mod-http-naxsi.conf ; do
from=$(echo $confpair | cut -d: -f1)
to=$(echo $confpair | cut -d: -f2)
if [ -L /etc/nginx/modules-enabled/$to ]; then
mv /etc/nginx/modules-enabled/$to /etc/nginx/modules-enabled/$to.removed
fi
done
if which dpkg-trigger >/dev/null 2>&1 ; then
dpkg-trigger --no-await nginx-reload
fi
fi
# End automatically added section
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -e
# Automatically added by dh_nginx/UNDECLARED
if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
for confpair in mod-http-naxsi.conf:50-mod-http-naxsi.conf ; do
from=$(echo $confpair | cut -d: -f1)
to=$(echo $confpair | cut -d: -f2)
if [ -L /etc/nginx/modules-enabled/$to ]; then
mv /etc/nginx/modules-enabled/$to /etc/nginx/modules-enabled/$to.removed
fi
done
fi
# End automatically added section