Hi ports@,
Here is a diff to add a GeoIP flavor to nginx.
Comments? OK?
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/nginx/Makefile,v
retrieving revision 1.100
diff -u -p -r1.100 Makefile
--- Makefile 7 Sep 2016 16:54:56 -0000 1.100
+++ Makefile 25 Oct 2016 13:49:28 -0000
@@ -7,7 +7,7 @@ COMMENT= robust and small HTTP server an
VERSION= 1.10.1
DISTNAME= nginx-${VERSION}
-REVISION= 1
+REVISION= 2
CATEGORIES= www
MASTER_SITES= http://nginx.org/download/
@@ -32,7 +32,7 @@ NGINX_DIR= /var/www
SUBST_VARS= NGINX_DIR
CFLAGS+= -Wall -Wpointer-arith
-FLAVORS= lua mailproxy naxsi passenger
+FLAVORS= geoip lua mailproxy naxsi passenger
FLAVOR?=
.if !${FLAVOR:Mpassenger}
@@ -75,6 +75,12 @@ CONFIGURE_ARGS+= --prefix=${NGINX_DIR} \
--with-mail_ssl_module \
--with-ipv6 \
--with-stream
+
+.if ${FLAVOR:Mgeoip}
+CONFIGURE_ARGS+= --with-http_geoip_module
+LIB_DEPENDS+= net/GeoIP
+WANTLIB+= GeoIP
+.endif
.if !${FLAVOR:Mmailproxy}
CONFIGURE_ARGS+= --without-mail_pop3_module \
Index: pkg/DESCR
===================================================================
RCS file: /cvs/ports/www/nginx/pkg/DESCR,v
retrieving revision 1.7
diff -u -p -r1.7 DESCR
--- pkg/DESCR 14 Aug 2016 10:52:07 -0000 1.7
+++ pkg/DESCR 25 Oct 2016 13:49:28 -0000
@@ -14,6 +14,9 @@ support and a range of authentication me
Available FLAVORs:
+ geoip - enables the GeoIP features of nginx (this creates variables
+with values depending on the client IP address)
+
lua - This Nginx module embeds the Lua 5.1 interpreter or LuaJIT 2.0
into the nginx core and integrates the powerful Lua threads (aka Lua
coroutines) into the nginx event model by means of nginx subrequests.