NetBSD Problem Report #49300

From  Tue Oct 21 19:21:07 2014
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id BBA91A65EB
	for <>; Tue, 21 Oct 2014 19:21:07 +0000 (UTC)
Message-Id: <>
Date: Tue, 21 Oct 2014 19:21:05 +0000 (UTC)
Subject: Submission to add an options to www/nginx to enable the geoip module
X-Send-Pr-Version: www-1.0

>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:    joerg
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 21 19:25:00 +0000 2014
>Last-Modified:  Tue Oct 21 21:40:11 +0000 2014
>Originator:     Steven Williamson
>Release:        trunk

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. 

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

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

diff --git a/www/nginx/ b/www/nginx/
index 02d6f59..5d50e41 100644
--- a/www/nginx/
+++ b/www/nginx/
@@ -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

+.if !empty(PKG_OPTIONS:Mgeoip)
+.include "../../net/GeoIP/"
+CONFIGURE_ARGS+=	--with-http_geoip_module
 .if !empty(PKG_OPTIONS:Minet6)
 CONFIGURE_ARGS+=	--with-ipv6



Responsible-Changed-From-To: pkg-manager->joerg
Responsible-Changed-When: Tue, 21 Oct 2014 21:40:11 +0000
Over to maintainer.


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.