Bug 148092 - enhancement to www/nginx
Summary: enhancement to www/nginx
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sergey A. Osokin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 16:00 UTC by rainer
Modified: 2010-06-24 04:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rainer 2010-06-23 16:00:18 UTC
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

Fix: 

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--81E5DBisFm5fTPSJNAmtnrB420lECl7EbRiiHbWXiA4LYhc1
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: see below
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2010-06-23 18:15:06 UTC
Responsible Changed
From-To: freebsd-ports-bugs->osa

Fix synopsis and assign.
Comment 2 dfilter service freebsd_committer freebsd_triage 2010-06-24 04:45:26 UTC
osa         2010-06-24 03:45:17 UTC

  FreeBSD ports repository

  Modified files:
    www/nginx            Makefile 
  Log:
  Illuminate GeoIP module. [1]
  Fix typo for thirdparty udp module. [2]
  Do not bump PORTREVISION.
  
  Feature safe: yes
  
  Submitted by:   Rainer Duffner <rainer@ultra-secure.de> [1]
                  Vadim Goncharov aka nuclight via IRC [2]
  
  PR:             ports/148092 [1]
  
  Revision  Changes    Path
  1.224     +7 -1      ports/www/nginx/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Sergey A. Osokin freebsd_committer freebsd_triage 2010-06-24 04:46:03 UTC
State Changed
From-To: open->closed

Committed with small modifications, thanks for report!