blob: d31a252b667c209583f011d1069be2286ce5da4b [file] [log] [blame] [edit]
MODULES+= geoip2
MODULE_SUMMARY_geoip2= 3rd-party GeoIP2 dynamic modules
include $(CONTRIB)/src/ngx_http_geoip2_module/version
MODULE_VERSION_geoip2= $(GEOIP2_NGINX_MODULE_VERSION)
MODULE_RELEASE_geoip2= 1
MODULE_VERSION_PREFIX_geoip2=$(MODULE_TARGET_PREFIX)
MODULE_SOURCES_geoip2= ngx_http_geoip2_module-$(GEOIP2_NGINX_MODULE_VERSION).tar.gz
MODULE_CONFARGS_geoip2= --with-stream \
--add-dynamic-module=ngx_http_geoip2_module-$(GEOIP2_NGINX_MODULE_VERSION)
.deps-module-geoip2:
cd $(CONTRIB) && make .sum-ngx_http_geoip2_module
touch $@
define MODULE_DEFINITIONS_geoip2
BuildRequires: libmaxminddb-devel
endef
export MODULE_DEFINITIONS_geoip2
define MODULE_POST_geoip2
cat <<BANNER
----------------------------------------------------------------------
The $(MODULE_SUMMARY_geoip2) for $(MODULE_SUMMARY_PREFIX) have been installed.
To enable these modules, add the following to /etc/nginx/nginx.conf
and reload nginx:
load_module modules/ngx_http_geoip2_module.so;
load_module modules/ngx_stream_geoip2_module.so;
Please refer to the module documentation for further details:
https://github.com/leev/ngx_http_geoip2_module
----------------------------------------------------------------------
BANNER
endef
export MODULE_POST_geoip2