Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Jun 2010 14:59:57 GMT
From:      Rainer Duffner <rainer@ultra-secure.de>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/148092: enhancement to nginx
Message-ID:  <201006231459.o5NExvQV037952@www.freebsd.org>
Resent-Message-ID: <201006231500.o5NF0IFR041968@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         148092
>Category:       ports
>Synopsis:       enhancement to nginx
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 23 15:00:18 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Rainer Duffner
>Release:        various
>Organization:
>Environment:
various
>Description:
nginx can optionally leverage the Maxmind GeoIP database to grant or deny access to documents on the webserver.

This is my try at a patch to the port to enable this functionality
>How-To-Repeat:
see below
>Fix:
--- Makefile.orig       2010-06-23 14:07:09.000000000 +0000
+++ Makefile    2010-06-23 14:56:03.000000000 +0000
@@ -70,7 +70,8 @@
                PASSENGER_MODULE        "3rd party passenger module" off \
                SLOWFS_CACHE_MODULE     "3rd party slowfs_cache module" off \
                SUPERVISORD_MODULE      "3rd party supervisord module" off \
-               UDPLOG_MODULE           "3rd party updlog (syslog) module" off
+               UDPLOG_MODULE           "3rd party updlog (syslog) module" off \
+               GEOIP_MODULE            "3rd party GeoIP access module" off

 WANT_GNOME=    yes
 MAKE_JOBS_SAFE=        yes
@@ -402,6 +403,10 @@
 CONFIGURE_ARGS+=--add-module=${WRKDIR}/nginx_udplog_module-${NGINX_UDPLOG_MODULE_VERSION}
 .endif

+.if defined(WITH_GEOIP_MODULE)
+LIB_DEPENDS+=  GeoIP.5:${PORTSDIR}/net/GeoIP
+CONFIGURE_ARGS+=--with-http_geoip_module
+.endif
 .if defined(WITH_WWW)
 PLIST_SUB+=    WWWDATA=""
 .else


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006231459.o5NExvQV037952>