git: 18b138ae812c - main - www/angie-module-geoip2: Angie GeoIP2 dynamic module
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 06 Aug 2023 12:43:29 UTC
The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=18b138ae812cdfae0c4195c87554a984de288ae5 commit 18b138ae812cdfae0c4195c87554a984de288ae5 Author: Oleg A. Mamontov <oleg@mamontov.net> AuthorDate: 2023-08-05 12:26:39 +0000 Commit: Robert Clausecker <fuz@FreeBSD.org> CommitDate: 2023-08-06 12:42:48 +0000 www/angie-module-geoip2: Angie GeoIP2 dynamic module Module captures information from the client IP address in variables, using the MaxMind GeoIP2 databases. PR: 270933 Differential Revision: https://reviews.freebsd.org/D39868 --- www/Makefile | 1 + www/angie-module-geoip2/Makefile | 26 ++++++++++++++++++++++++++ www/angie-module-geoip2/files/pkg-message.in | 16 ++++++++++++++++ www/angie-module-geoip2/pkg-descr | 2 ++ www/angie-module-geoip2/pkg-plist | 5 +++++ 5 files changed, 50 insertions(+) diff --git a/www/Makefile b/www/Makefile index 3dc15ff74230..394491aa90d3 100644 --- a/www/Makefile +++ b/www/Makefile @@ -27,6 +27,7 @@ SUBDIR += amphetadesk SUBDIR += analog SUBDIR += angie + SUBDIR += angie-module-geoip2 SUBDIR += anyremote2html SUBDIR += apache-mode.el SUBDIR += apache24 diff --git a/www/angie-module-geoip2/Makefile b/www/angie-module-geoip2/Makefile new file mode 100644 index 000000000000..7df133590ec7 --- /dev/null +++ b/www/angie-module-geoip2/Makefile @@ -0,0 +1,26 @@ +PORTNAME= angie-module-geoip2 +GH_TUPLE= leev:ngx_http_geoip2_module:3.4:module + +COMMENT= Angie GeoIP2 dynamic module + +LIB_DEPENDS= libmaxminddb.so:net/libmaxminddb + +MASTERDIR= ${.CURDIR}/../../www/angie + +do-install: + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${MODDIR} + +.for i in ngx_http_geoip2_module ngx_stream_geoip2_module + ${INSTALL_LIB} ${WRKSRC}/objs/${i}.so ${STAGEDIR}${MODDIR} +.endfor + + ${INSTALL_MAN} ${WRKSRC_module}/README.md ${STAGEDIR}${DOCSDIR} + +do-install-DEBUG-on: +.for i in ngx_http_geoip2_module ngx_stream_geoip2_module + ${INSTALL} ${COPY} -m ${_SHAREMODE} ${WRKSRC_DEBUG}/objs/${i}.so \ + ${STAGEDIR}${MODDIR}/${i}-debug.so +.endfor + +.include "${MASTERDIR}/Makefile" diff --git a/www/angie-module-geoip2/files/pkg-message.in b/www/angie-module-geoip2/files/pkg-message.in new file mode 100644 index 000000000000..00d9fb396f7f --- /dev/null +++ b/www/angie-module-geoip2/files/pkg-message.in @@ -0,0 +1,16 @@ +[ +{ type: install + message: <<EOM + +The GeoIP2 dynamic modules for Angie have been installed. +To enable these modules, add the following to %%PREFIX%%/etc/angie/angie.conf +and reload angie: + + load_module modules/ngx_http_geoip2_module.so; + load_module modules/ngx_stream_geoip2_module.so; + +Please refer to the modules documentation for further details: +https://github.com/leev/ngx_http_geoip2_module +EOM +} +] diff --git a/www/angie-module-geoip2/pkg-descr b/www/angie-module-geoip2/pkg-descr new file mode 100644 index 000000000000..b4dcc7bf7a07 --- /dev/null +++ b/www/angie-module-geoip2/pkg-descr @@ -0,0 +1,2 @@ +Module captures information from the client IP address in variables, +using the MaxMind GeoIP2 databases. diff --git a/www/angie-module-geoip2/pkg-plist b/www/angie-module-geoip2/pkg-plist new file mode 100644 index 000000000000..3cd6ab47f216 --- /dev/null +++ b/www/angie-module-geoip2/pkg-plist @@ -0,0 +1,5 @@ +%%DOCSDIR%%/README.md +%%MODDIR%%/ngx_http_geoip2_module.so +%%MODDIR%%/ngx_stream_geoip2_module.so +%%DEBUG%%%%MODDIR%%/ngx_http_geoip2_module-debug.so +%%DEBUG%%%%MODDIR%%/ngx_stream_geoip2_module-debug.so