Download raw body.
[new] www/nginx rDNS module
Hi all,
this add also pkg/DESCR-rdns and pkg/PLIST-rdns.
Regards Uwe
On 24 Jan 14:23, Uwe Werler wrote:
> Hi all,
>
> this adds the rDNS module to nginx
> (https://www.nginx.com/resources/wiki/modules/rdns/).
>
> With best regards
>
> Uwe
>
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.175
diff -u -p -r1.175 Makefile
--- Makefile 26 Oct 2023 13:51:38 -0000 1.175
+++ Makefile 24 Jan 2024 13:38:16 -0000
@@ -15,6 +15,7 @@ COMMENT-headers_more= nginx module for s
COMMENT-perl= nginx perl scripting module
COMMENT-njs= nginx javascript scripting module
COMMENT-passenger= nginx passenger (ruby/python/nodejs) integration module
+COMMENT-rdns= nginx http rDNS module
COMMENT-rtmp= nginx module for RTMP streaming
COMMENT-securelink= nginx HMAC secure link module
@@ -38,6 +39,7 @@ PKGNAME-headers_more= nginx-headers-more
PKGNAME-perl= nginx-perl-${VERSION}
PKGNAME-njs= nginx-njs-${VERSION}
PKGNAME-passenger= nginx-passenger-${VERSION}
+PKGNAME-rdns= nginx-rdns-${VERSION}
PKGNAME-rtmp= nginx-rtmp-${VERSION}
PKGNAME-securelink= nginx-securelink-${VERSION}
@@ -62,6 +64,7 @@ _GH_MODS= \
nginx njs ${VERSION-njs} \
simpl ngx_devel_kit v0.3.0 \
leev ngx_http_geoip2_module 3.3 \
+ flant nginx-http-rdns f1d00ada305fc4b7505e7bb7009f804567fae881 \
nginx-modules ngx_http_hmac_secure_link_module 48c4625fbbf51ed5a95bfec23fa444f6c3702e50
.for _a _p _c in ${_GH_MODS}
@@ -79,7 +82,7 @@ MULTI_PACKAGES = -main -naxsi -perl ${MO
MODULE_PACKAGES = -image_filter -geoip2 -xslt -mailproxy -stream \
-passenger -headers_more -ldap_auth -lua -njs \
- -rtmp -securelink
+ -rtmp -rdns -securelink
FLAVOR ?=
PSEUDO_FLAVORS = no_lua no_njs no_passenger
@@ -94,6 +97,7 @@ WANTLIB-stream=
WANTLIB-image_filter= gd
WANTLIB-geoip2= maxminddb
WANTLIB-rtmp=
+WANTLIB-rdns=
WANTLIB-njs= exslt m xml2 xslt
WANTLIB-xslt= exslt xml2 xslt
WANTLIB-naxsi=
@@ -113,6 +117,7 @@ LIB_DEPENDS-ldap_auth= databases/openlda
LIB_DEPENDS-lua= ${MODLUA_LIB_DEPENDS} \
devel/pcre
LIB_DEPENDS-rtmp=
+LIB_DEPENDS-rdns=
LIB_DEPENDS-securelink=
LIB_DEPENDS-njs= devel/pcre2 \
textproc/libxslt \
@@ -204,6 +209,7 @@ CONFIGURE_ARGS+= --prefix=${NGINX_DIR} \
--add-dynamic-module=${WRKSRC}/headers-more-nginx-module \
--add-dynamic-module=${WRKSRC}/nginx-auth-ldap \
--add-dynamic-module=${WRKSRC}/ngx_http_geoip2_module \
+ --add-dynamic-module=${WRKSRC}/nginx-http-rdns \
--add-dynamic-module=${WRKSRC}/ngx_http_hmac_secure_link_module
SUBSTFILES= conf/nginx.conf */config
@@ -213,7 +219,7 @@ ALL_TARGET=
pre-patch:
.for i in headers-more-nginx-module lua-nginx-module naxsi njs \
- nginx-auth-ldap ngx_devel_kit ngx_http_geoip2_module \
+ nginx-auth-ldap ngx_devel_kit ngx_http_geoip2_module nginx-http-rdns \
ngx_http_hmac_secure_link_module
cd ${WRKSRC} && mv ../$i-* $i
.endfor
Index: distinfo
===================================================================
RCS file: /cvs/ports/www/nginx/distinfo,v
retrieving revision 1.83
diff -u -p -r1.83 distinfo
--- distinfo 26 Oct 2023 13:51:38 -0000 1.83
+++ distinfo 24 Jan 2024 13:38:16 -0000
@@ -4,6 +4,7 @@ SHA256 (naxsi-d714f1636ea49a9a9f4f06dba1
SHA256 (nginx-1.20.1-chroot.patch) = SS1TB0j8N4/dn5pUTGT6WvkN3aAUuKz5+R0Nt+MG0gk=
SHA256 (nginx-1.24.0.tar.gz) = d6JUFje5KmIePudndsi3tAz21wfmm6U6lAKD4w/y9V0=
SHA256 (nginx-auth-ldap-83c059b73566c2ee9cbda920d91b66657cf120b7.tar.gz) = aQxOW9sq4ZsP7nXNNW0YATRo20cmFrYJeloLvjRshGQ=
+SHA256 (nginx-http-rdns-f1d00ada305fc4b7505e7bb7009f804567fae881.tar.gz) = CPdrPL2DBw1IvBsvbsg6/nRLfvKS3ZrOkrdKKyxU0wM=
SHA256 (nginx-rtmp-module-v1.2.1.tar.gz) = h6pZdACwtaBSdO4tI9jLgiThJoYiegq+MdeDs6ZF6jc=
SHA256 (ngx_devel_kit-v0.3.0.tar.gz) = iOBamainQZBm9a51lm+x78QJutRSLRSYbaB0VUrmFhk=
SHA256 (ngx_http_geoip2_module-3.3.tar.gz) = QTeEOMgz4xOhiGnQxKcnBLSDXDCsr3/WgBOrZzL/eKc=
@@ -15,6 +16,7 @@ SIZE (naxsi-d714f1636ea49a9a9f4f06dba14a
SIZE (nginx-1.20.1-chroot.patch) = 8783
SIZE (nginx-1.24.0.tar.gz) = 1112471
SIZE (nginx-auth-ldap-83c059b73566c2ee9cbda920d91b66657cf120b7.tar.gz) = 18542
+SIZE (nginx-http-rdns-f1d00ada305fc4b7505e7bb7009f804567fae881.tar.gz) = 8346
SIZE (nginx-rtmp-module-v1.2.1.tar.gz) = 519919
SIZE (ngx_devel_kit-v0.3.0.tar.gz) = 66455
SIZE (ngx_http_geoip2_module-3.3.tar.gz) = 8509
cvs server: Diffing patches
cvs server: Diffing pkg
Index: pkg/DESCR-rdns
===================================================================
RCS file: pkg/DESCR-rdns
diff -N pkg/DESCR-rdns
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/DESCR-rdns 24 Jan 2024 13:38:16 -0000
@@ -0,0 +1,6 @@
+This module allows to make a reverse DNS (rDNS) lookup for incoming connection
+and provides simple access control of incoming hostname by allow/deny rules
+(similar to HttpAccessModule allow/deny directives; regular expressions are
+supported). Module works with the DNS server defined by the standard resolver
+directive. This module uses nginx core resolver cache when resolving DNS
+lookup, for a maximum of 30 seconds or DNS response TTL.
Index: pkg/PLIST-rdns
===================================================================
RCS file: pkg/PLIST-rdns
diff -N pkg/PLIST-rdns
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ pkg/PLIST-rdns 24 Jan 2024 13:38:16 -0000
@@ -0,0 +1 @@
+@so ngx_http_rdns_module.so
[new] www/nginx rDNS module