pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/49300: Submission to add an options to www/nginx to enable the geoip module



>Number:         49300
>Category:       pkg
>Synopsis:       Submission to add an options to www/nginx to enable the geoip module
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 21 19:25:00 +0000 2014
>Originator:     Steven Williamson
>Release:        trunk
>Organization:
FreeAgent
>Environment:

>Description:
Patches attached to add the geoip option to www/nginx. Iv'e also added the geoip option as a suggested default as building nginx with the option provides extra functionality but does not have a negative affect if it is not used/enabled in configuration.

The option allows www/nginx to create variables for country/city/org for requests if configured with a geoip database. 
>How-To-Repeat:


>Fix:
Subject: [PATCH] Add geoip option and set it as a suggested option

---
 www/nginx/options.mk | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/www/nginx/options.mk b/www/nginx/options.mk
index 02d6f59..5d50e41 100644
--- a/www/nginx/options.mk
+++ b/www/nginx/options.mk
@@ -5,8 +5,8 @@ PKG_SUPPORTED_OPTIONS=	dav flv gtools inet6 luajit mail-proxy memcache naxsi \
 			pcre push realip ssl sub uwsgi image-filter upload \
 			debug status nginx-autodetect-cflags spdy echo \
 			set-misc headers-more array-var encrypted-session \
-			form-input perl
-PKG_SUGGESTED_OPTIONS=	inet6 pcre ssl
+			form-input perl geoip
+PKG_SUGGESTED_OPTIONS=	inet6 pcre ssl geoip
 
 PLIST_VARS+=		naxsi perl uwsgi
 
@@ -75,6 +75,11 @@ DISTFILES+=			${NAXSI_DISTFILE}
 CONFIGURE_ARGS+=	--with-http_realip_module
 .endif
 
+.if !empty(PKG_OPTIONS:Mgeoip)
+.include "../../net/GeoIP/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-http_geoip_module
+.endif
+
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=	--with-ipv6
 .endif
--



Home | Main Index | Thread Index | Old Index