pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/nginx nginx: added geoip option; behave correctly ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ff46dae03e19
branches:  trunk
changeset: 412615:ff46dae03e19
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Mar 10 08:20:31 2020 +0000

description:
nginx: added geoip option; behave correctly with "make mdi"

diffstat:

 www/nginx/options.mk |  31 ++++++++++++++++++-------------
 1 files changed, 18 insertions(+), 13 deletions(-)

diffs (125 lines):

diff -r 38c9f438af38 -r ff46dae03e19 www/nginx/options.mk
--- a/www/nginx/options.mk      Tue Mar 10 07:36:33 2020 +0000
+++ b/www/nginx/options.mk      Tue Mar 10 08:20:31 2020 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.54 2020/02/20 23:34:38 abs Exp $
+# $NetBSD: options.mk,v 1.55 2020/03/10 08:20:31 adam Exp $
 
 PKG_OPTIONS_VAR=               PKG_OPTIONS.nginx
 PKG_SUPPORTED_OPTIONS=         dav flv gtools inet6 luajit mail-proxy memcache naxsi \
-                               pcre push realip ssl sub uwsgi image-filter \
+                               geoip pcre push realip ssl sub uwsgi image-filter \
                                debug slice status nginx-autodetect-cflags echo \
                                set-misc headers-more array-var encrypted-session \
                                form-input perl gzip http2 auth-request secure-link rtmp \
@@ -20,7 +20,7 @@
 PLIST.naxsi=                   yes
 CONFIGURE_ARGS+=               --add-module=../${NAXSI_DISTNAME}/naxsi_src
 .endif
-.if !empty(PKG_OPTIONS:Mnaxsi) || make(makesum)
+.if !empty(PKG_OPTIONS:Mnaxsi) || make(makesum) || make(mdi)
 NAXSI_VERSION=                 0.56
 NAXSI_DISTNAME=                        naxsi-${NAXSI_VERSION}
 NAXSI_DISTFILE=                        ${NAXSI_DISTNAME}.tar.gz
@@ -54,6 +54,11 @@
 CONFIGURE_ARGS+=       --with-http_flv_module
 .endif
 
+.if !empty(PKG_OPTIONS:Mgeoip)
+.include "../../net/GeoIP/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-http_geoip_module
+.endif
+
 .if !empty(PKG_OPTIONS:Mhttp2)
 CONFIGURE_ARGS+=       --with-http_v2_module
 .endif
@@ -86,7 +91,7 @@
 NEED_NDK=              yes
 .  endif
 .endfor
-.if defined(NEED_NDK) || make(makesum)
+.if defined(NEED_NDK) || make(makesum) || make(mdi)
 NDK_VERSION=           0.3.1
 NDK_DISTNAME=          ngx_devel_kit-${NDK_VERSION}
 NDK_DISTFILE=          ${NDK_DISTNAME}.tar.gz
@@ -100,7 +105,7 @@
 CONFIGURE_ENV+=                LUAJIT_INC=${PREFIX}/include/luajit-2.0
 CONFIGURE_ARGS+=       --add-module=../${LUA_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mluajit) || make(makesum)
+.if !empty(PKG_OPTIONS:Mluajit) || make(makesum) || make(mdi)
 LUA_VERSION=           0.10.15
 LUA_DISTNAME=          lua-nginx-module-${LUA_VERSION}
 LUA_DISTFILE=          ${LUA_DISTNAME}.tar.gz
@@ -111,7 +116,7 @@
 .if !empty(PKG_OPTIONS:Mecho)
 CONFIGURE_ARGS+=               --add-module=../${ECHOMOD_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mecho) || make(makesum)
+.if !empty(PKG_OPTIONS:Mecho) || make(makesum) || make(mdi)
 ECHOMOD_VERSION=               0.61
 ECHOMOD_DISTNAME=              echo-nginx-module-${ECHOMOD_VERSION}
 ECHOMOD_DISTFILE=              ${ECHOMOD_DISTNAME}.tar.gz
@@ -122,7 +127,7 @@
 .if !empty(PKG_OPTIONS:Mset-misc)
 CONFIGURE_ARGS+=               --add-module=../${SETMISC_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mset-misc) || make(makesum)
+.if !empty(PKG_OPTIONS:Mset-misc) || make(makesum) || make(mdi)
 SETMISC_VERSION=               0.32
 SETMISC_DISTNAME=              set-misc-nginx-module-${SETMISC_VERSION}
 SETMISC_DISTFILE=              ${SETMISC_DISTNAME}.tar.gz
@@ -133,7 +138,7 @@
 .if !empty(PKG_OPTIONS:Marray-var)
 CONFIGURE_ARGS+=               --add-module=../${ARRAYVAR_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Marray-var) || make(makesum)
+.if !empty(PKG_OPTIONS:Marray-var) || make(makesum) || make(mdi)
 ARRAYVAR_VERSION=              0.05
 ARRAYVAR_DISTNAME=             array-var-nginx-module-${ARRAYVAR_VERSION}
 ARRAYVAR_DISTFILE=             ${ARRAYVAR_DISTNAME}.tar.gz
@@ -144,7 +149,7 @@
 .if !empty(PKG_OPTIONS:Mencrypted-session)
 CONFIGURE_ARGS+=               --add-module=../${ENCSESS_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mencrypted-session) || make(makesum)
+.if !empty(PKG_OPTIONS:Mencrypted-session) || make(makesum) || make(mdi)
 ENCSESS_VERSION=               0.08
 ENCSESS_DISTNAME=              encrypted-session-nginx-module-${ENCSESS_VERSION}
 ENCSESS_DISTFILE=              ${ENCSESS_DISTNAME}.tar.gz
@@ -155,7 +160,7 @@
 .if !empty(PKG_OPTIONS:Mform-input)
 CONFIGURE_ARGS+=               --add-module=../${FORMINPUT_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mform-input) || make(makesum)
+.if !empty(PKG_OPTIONS:Mform-input) || make(makesum) || make(mdi)
 FORMINPUT_VERSION=             0.12
 FORMINPUT_DISTNAME=            form-input-nginx-module-${FORMINPUT_VERSION}
 FORMINPUT_DISTFILE=            ${FORMINPUT_DISTNAME}.tar.gz
@@ -166,7 +171,7 @@
 .if !empty(PKG_OPTIONS:Mheaders-more)
 CONFIGURE_ARGS+=               --add-module=../${HEADMORE_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mheaders-more) || make(makesum)
+.if !empty(PKG_OPTIONS:Mheaders-more) || make(makesum) || make(mdi)
 HEADMORE_VERSION=              0.33
 HEADMORE_DISTNAME=             headers-more-nginx-module-${HEADMORE_VERSION}
 HEADMORE_DISTFILE=             ${HEADMORE_DISTNAME}.tar.gz
@@ -185,7 +190,7 @@
 .if !empty(PKG_OPTIONS:Mpush)
 CONFIGURE_ARGS+=       --add-module=../nchan-${PUSH_VERSION}
 .endif
-.if !empty(PKG_OPTIONS:Mpush) || make(makesum)
+.if !empty(PKG_OPTIONS:Mpush) || make(makesum) || make(mdi)
 PUSH_VERSION=          1.2.6
 PUSH_DISTNAME=         nginx_http_push_module-${PUSH_VERSION}
 PUSH_DISTFILE=         ${PUSH_DISTNAME}.tar.gz
@@ -234,7 +239,7 @@
 .if !empty(PKG_OPTIONS:Mrtmp)
 CONFIGURE_ARGS+=       --add-module=../${RTMP_DISTNAME}
 .endif
-.if !empty(PKG_OPTIONS:Mrtmp) || make(makesum)
+.if !empty(PKG_OPTIONS:Mrtmp) || make(makesum) || make(mdi)
 RTMP_VERSION=          1.2.1
 RTMP_DISTNAME=         nginx-rtmp-module-${RTMP_VERSION}
 RTMP_DISTFILE=         ${RTMP_DISTNAME}.tar.gz



Home | Main Index | Thread Index | Old Index