NetBSD Problem Report #49300

From www@NetBSD.org  Tue Oct 21 19:21:07 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id BBA91A65EB
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 21 Oct 2014 19:21:07 +0000 (UTC)
Message-Id: <20141021192105.9DF1EA668C@mollari.NetBSD.org>
Date: Tue, 21 Oct 2014 19:21:05 +0000 (UTC)
From: steven43126@gmail.com
Reply-To: steven43126@gmail.com
To: gnats-bugs@NetBSD.org
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
>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
--

>Release-Note:

>Audit-Trail:

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


>Unformatted:

NetBSD Home
NetBSD PR Database Search

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