ports/148092: enhancement to nginx

Rainer Duffner rainer at ultra-secure.de
Wed Jun 23 15:00:18 UTC 2010


>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:



More information about the freebsd-ports-bugs mailing list