pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www www/nginx*: implement dynamic modules build



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55a0f816b12c
branches:  trunk
changeset: 375219:55a0f816b12c
user:      osa <osa%pkgsrc.org@localhost>
date:      Thu Mar 10 03:40:30 2022 +0000

description:
www/nginx*: implement dynamic modules build

It's possible now to build an additional module as a dynamic module.
Bump PKGREVISION.

While I'm here take over the maintainership for www/nginx (*).

Approved by:    joerg (*)

diffstat:

 www/nginx-devel/Makefile  |   4 +-
 www/nginx-devel/PLIST     |  23 +++++++++++-
 www/nginx-devel/distinfo  |   8 ++--
 www/nginx/Makefile        |   6 +-
 www/nginx/Makefile.common |   7 +++-
 www/nginx/PLIST           |  23 +++++++++++-
 www/nginx/distinfo        |   8 ++--
 www/nginx/options.mk      |  89 ++++++++++++++++++++++++++++++++++------------
 8 files changed, 129 insertions(+), 39 deletions(-)

diffs (truncated from 415 to 300 lines):

diff -r 8fe599492f01 -r 55a0f816b12c www/nginx-devel/Makefile
--- a/www/nginx-devel/Makefile  Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx-devel/Makefile  Thu Mar 10 03:40:30 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.71 2022/03/09 18:48:17 osa Exp $
+# $NetBSD: Makefile,v 1.72 2022/03/10 03:40:30 osa Exp $
 
 DISTNAME=      nginx-1.21.6
 
 MAINTAINER=    osa%NetBSD.org@localhost
 
-PKGREVISION=   1 
+PKGREVISION=   2 
 .include "../../www/nginx/Makefile.common"
 .include "../../mk/bsd.pkg.mk"
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx-devel/PLIST
--- a/www/nginx-devel/PLIST     Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx-devel/PLIST     Thu Mar 10 03:40:30 2022 +0000
@@ -1,4 +1,25 @@
-@comment $NetBSD: PLIST,v 1.5 2017/10/28 10:57:50 adam Exp $
+@comment $NetBSD: PLIST,v 1.6 2022/03/10 03:40:30 osa Exp $
+${PLIST.dso}${PLIST.arrayvar}libexec/nginx/ngx_http_array_var_module.so
+${PLIST.dso}${PLIST.cprg}libexec/nginx/ngx_http_cache_purge_module.so
+${PLIST.dso}${PLIST.dav}libexec/nginx/ngx_http_dav_ext_module.so
+${PLIST.dso}${PLIST.echo}libexec/nginx/ngx_http_echo_module.so
+${PLIST.dso}${PLIST.encses}libexec/nginx/ngx_http_encrypted_session_module.so
+${PLIST.dso}${PLIST.forminput}libexec/nginx/ngx_http_form_input_module.so
+${PLIST.dso}${PLIST.geoip2}libexec/nginx/ngx_http_geoip2_module.so
+${PLIST.dso}${PLIST.geoip2}libexec/nginx/ngx_stream_geoip2_module.so
+${PLIST.dso}${PLIST.headmore}libexec/nginx/ngx_http_headers_more_filter_module.so
+${PLIST.dso}${PLIST.imagefilter}libexec/nginx/ngx_http_image_filter_module.so
+${PLIST.dso}${PLIST.lua}libexec/nginx/ngx_http_lua_module.so
+${PLIST.dso}${PLIST.mail}libexec/nginx/ngx_mail_module.so
+${PLIST.dso}${PLIST.naxsi}libexec/nginx/ngx_http_naxsi_module.so
+${PLIST.dso}${PLIST.nchan}libexec/nginx/ngx_nchan_module.so
+${PLIST.dso}${PLIST.ndk}libexec/nginx/ndk_http_module.so
+${PLIST.dso}${PLIST.njs}libexec/nginx/ngx_http_js_module.so
+${PLIST.dso}${PLIST.njs}libexec/nginx/ngx_stream_js_module.so
+${PLIST.dso}${PLIST.perl}libexec/nginx/ngx_http_perl_module.so
+${PLIST.dso}${PLIST.rtmp}libexec/nginx/ngx_rtmp_module.so
+${PLIST.dso}${PLIST.setmisc}libexec/nginx/ngx_http_set_misc_module.so
+${PLIST.dso}${PLIST.stream}libexec/nginx/ngx_stream_module.so
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/nginx/nginx.${SOEXT}
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/nginx.pm
 man/man8/nginx.8
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx-devel/distinfo
--- a/www/nginx-devel/distinfo  Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx-devel/distinfo  Thu Mar 10 03:40:30 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.74 2022/03/09 14:10:34 osa Exp $
+$NetBSD: distinfo,v 1.75 2022/03/10 03:40:30 osa Exp $
 
 BLAKE2s (array-var-nginx-module-0.05.tar.gz) = 2f9af1e0eb209b7c20aa58cd8ec2afb1eb1cc122c5f4ea169e34131c463c1c26
 SHA512 (array-var-nginx-module-0.05.tar.gz) = 7c9fa9b76bc7cd2473ceae6d5ffb8de26993be9293ea967908d6c4550e086affa7016df4c936fb0b79f1142dc0aa1a5f2058d417e6433b5a3497a45d7e866e84
@@ -21,6 +21,9 @@
 BLAKE2s (naxsi-1.3.tar.gz) = d3c819d8fbd2a896c56138f028b92fa4b26a51168ff24334f76e3d1d07626927
 SHA512 (naxsi-1.3.tar.gz) = d7aac69b5eceeb1b0db4741201159ade1e0e7f6f7c3e8c4afa2f8959c6c00c3b5285d5185747c2fb0b1400efda02e96799836315e7e492bb4a059b14acb2142d
 Size (naxsi-1.3.tar.gz) = 235626 bytes
+BLAKE2s (nchan-1.2.12.tar.gz) = 1505dd8fa8562643e0b7cfb1c34e12c6044bd604eced52eb6d968ebca9b39d75
+SHA512 (nchan-1.2.12.tar.gz) = 1378ecf7499603319f432a8ea4693f0bc7a18713cd02b7ed9eecd8dfa76b54dcef475b7b028ddfd2750dcb01e2ac73f8605a96950398fbea31ffa8b22fcacfc0
+Size (nchan-1.2.12.tar.gz) = 716150 bytes
 BLAKE2s (nginx-1.21.6.tar.gz) = cc9128aaf36be8c2d678588db95cd623b67746683364729f13e645a0192ed4dd
 SHA512 (nginx-1.21.6.tar.gz) = 10b0cdd13b26687104bf11e6b850fd851e9d8881bdf67f72c062d956e661da4d70482e6ec3123405b324ad7ed821a8bcc67b742dce9f59e972407fa437ddcad4
 Size (nginx-1.21.6.tar.gz) = 1073364 bytes
@@ -30,9 +33,6 @@
 BLAKE2s (nginx-rtmp-module-1.2.2.tar.gz) = 5de03b71bb16b4129f1a2a99446f65ef6eeb3fd48bfc925e94fc27e99da3c069
 SHA512 (nginx-rtmp-module-1.2.2.tar.gz) = 3f8c803221854c4b1a06aadc6313fbfec74bd7179c0ee51d4365b26ffa8875881a6e1e48f777a9c9efbb9170ab7478a82920d5448a2c2df485503d37bb03ab81
 Size (nginx-rtmp-module-1.2.2.tar.gz) = 519934 bytes
-BLAKE2s (nginx_http_push_module-1.2.12.tar.gz) = 1505dd8fa8562643e0b7cfb1c34e12c6044bd604eced52eb6d968ebca9b39d75
-SHA512 (nginx_http_push_module-1.2.12.tar.gz) = 1378ecf7499603319f432a8ea4693f0bc7a18713cd02b7ed9eecd8dfa76b54dcef475b7b028ddfd2750dcb01e2ac73f8605a96950398fbea31ffa8b22fcacfc0
-Size (nginx_http_push_module-1.2.12.tar.gz) = 716150 bytes
 BLAKE2s (ngx_cache_purge-2.5.1.tar.gz) = f89badfa0dbc3c338129291d7c56f978d6db0348d5aaa0d723000881ae9b7b8d
 SHA512 (ngx_cache_purge-2.5.1.tar.gz) = 3ad37b4a251fb85a9a384f87fea5ca640166e3d7173c6ed9a857b191ae5f2e93819483b5d423fcafe8a10239b571677b342cc2d2d5d62315816f1316d7d5bb76
 Size (ngx_cache_purge-2.5.1.tar.gz) = 16614 bytes
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx/Makefile
--- a/www/nginx/Makefile        Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx/Makefile        Thu Mar 10 03:40:30 2022 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.106 2022/03/09 18:48:17 osa Exp $
+# $NetBSD: Makefile,v 1.107 2022/03/10 03:40:30 osa Exp $
 
 DISTNAME=      nginx-1.20.2
 
-MAINTAINER=    joerg%NetBSD.org@localhost
+MAINTAINER=    osa%NetBSD.org@localhost
 
-PKGREVISION=   2
+PKGREVISION=   3
 .include "../../www/nginx/Makefile.common"
 .include "../../mk/bsd.pkg.mk"
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx/Makefile.common
--- a/www/nginx/Makefile.common Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx/Makefile.common Thu Mar 10 03:40:30 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.20 2020/11/25 11:40:06 jperkin Exp $
+# $NetBSD: Makefile.common,v 1.21 2022/03/10 03:40:30 osa Exp $
 # used by www/nginx/Makefile
 # used by www/nginx-devel/Makefile
 
@@ -114,5 +114,10 @@
        ${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
                ${DESTDIR}${PERL5_INSTALLVENDORARCH}
 .endif
+.if !empty(PKG_OPTIONS:Mdso)
+       ${INSTALL_LIB_DIR} ${DESTDIR}${PREFIX}/libexec/nginx
+       (cd ${WRKSRC}/objs/ && ${FIND} . -name '*.so' -maxdepth 1 -type f \
+               -exec ${INSTALL_PROGRAM} {} ${DESTDIR}${PREFIX}/libexec/nginx \;)
+.endif
 
 .include "../../devel/zlib/buildlink3.mk"
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx/PLIST
--- a/www/nginx/PLIST   Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx/PLIST   Thu Mar 10 03:40:30 2022 +0000
@@ -1,4 +1,25 @@
-@comment $NetBSD: PLIST,v 1.11 2020/06/01 06:18:51 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2022/03/10 03:40:30 osa Exp $
+${PLIST.dso}${PLIST.arrayvar}libexec/nginx/ngx_http_array_var_module.so
+${PLIST.dso}${PLIST.cprg}libexec/nginx/ngx_http_cache_purge_module.so
+${PLIST.dso}${PLIST.dav}libexec/nginx/ngx_http_dav_ext_module.so
+${PLIST.dso}${PLIST.echo}libexec/nginx/ngx_http_echo_module.so
+${PLIST.dso}${PLIST.encses}libexec/nginx/ngx_http_encrypted_session_module.so
+${PLIST.dso}${PLIST.forminput}libexec/nginx/ngx_http_form_input_module.so
+${PLIST.dso}${PLIST.geoip2}libexec/nginx/ngx_http_geoip2_module.so
+${PLIST.dso}${PLIST.geoip2}libexec/nginx/ngx_stream_geoip2_module.so
+${PLIST.dso}${PLIST.headmore}libexec/nginx/ngx_http_headers_more_filter_module.so
+${PLIST.dso}${PLIST.imagefilter}libexec/nginx/ngx_http_image_filter_module.so
+${PLIST.dso}${PLIST.lua}libexec/nginx/ngx_http_lua_module.so
+${PLIST.dso}${PLIST.mail}libexec/nginx/ngx_mail_module.so
+${PLIST.dso}${PLIST.naxsi}libexec/nginx/ngx_http_naxsi_module.so
+${PLIST.dso}${PLIST.nchan}libexec/nginx/ngx_nchan_module.so
+${PLIST.dso}${PLIST.ndk}libexec/nginx/ndk_http_module.so
+${PLIST.dso}${PLIST.njs}libexec/nginx/ngx_http_js_module.so
+${PLIST.dso}${PLIST.njs}libexec/nginx/ngx_stream_js_module.so
+${PLIST.dso}${PLIST.perl}libexec/nginx/ngx_http_perl_module.so
+${PLIST.dso}${PLIST.rtmp}libexec/nginx/ngx_rtmp_module.so
+${PLIST.dso}${PLIST.setmisc}libexec/nginx/ngx_http_set_misc_module.so
+${PLIST.dso}${PLIST.stream}libexec/nginx/ngx_stream_module.so
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/auto/nginx/nginx.${SOEXT}
 ${PLIST.perl}${PERL5_SUB_INSTALLVENDORARCH}/nginx.pm
 man/man8/nginx.8
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx/distinfo
--- a/www/nginx/distinfo        Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx/distinfo        Thu Mar 10 03:40:30 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.92 2022/03/09 14:10:34 osa Exp $
+$NetBSD: distinfo,v 1.93 2022/03/10 03:40:30 osa Exp $
 
 BLAKE2s (array-var-nginx-module-0.05.tar.gz) = 2f9af1e0eb209b7c20aa58cd8ec2afb1eb1cc122c5f4ea169e34131c463c1c26
 SHA512 (array-var-nginx-module-0.05.tar.gz) = 7c9fa9b76bc7cd2473ceae6d5ffb8de26993be9293ea967908d6c4550e086affa7016df4c936fb0b79f1142dc0aa1a5f2058d417e6433b5a3497a45d7e866e84
@@ -21,6 +21,9 @@
 BLAKE2s (naxsi-1.3.tar.gz) = d3c819d8fbd2a896c56138f028b92fa4b26a51168ff24334f76e3d1d07626927
 SHA512 (naxsi-1.3.tar.gz) = d7aac69b5eceeb1b0db4741201159ade1e0e7f6f7c3e8c4afa2f8959c6c00c3b5285d5185747c2fb0b1400efda02e96799836315e7e492bb4a059b14acb2142d
 Size (naxsi-1.3.tar.gz) = 235626 bytes
+BLAKE2s (nchan-1.2.12.tar.gz) = 1505dd8fa8562643e0b7cfb1c34e12c6044bd604eced52eb6d968ebca9b39d75
+SHA512 (nchan-1.2.12.tar.gz) = 1378ecf7499603319f432a8ea4693f0bc7a18713cd02b7ed9eecd8dfa76b54dcef475b7b028ddfd2750dcb01e2ac73f8605a96950398fbea31ffa8b22fcacfc0
+Size (nchan-1.2.12.tar.gz) = 716150 bytes
 BLAKE2s (nginx-1.20.2.tar.gz) = 6b437b200e57db3988bd6737740c11833e5091e3b84eef1fbd95168a4f5914b2
 SHA512 (nginx-1.20.2.tar.gz) = 8b65e881ea4ac6162cbf32e5e95cf47a6d5418819f8763ca4a781cffa38187dd7886d4bc195d000a7046111a27121ff25800f8645405174995247e6738b4279a
 Size (nginx-1.20.2.tar.gz) = 1062124 bytes
@@ -30,9 +33,6 @@
 BLAKE2s (nginx-rtmp-module-1.2.2.tar.gz) = 5de03b71bb16b4129f1a2a99446f65ef6eeb3fd48bfc925e94fc27e99da3c069
 SHA512 (nginx-rtmp-module-1.2.2.tar.gz) = 3f8c803221854c4b1a06aadc6313fbfec74bd7179c0ee51d4365b26ffa8875881a6e1e48f777a9c9efbb9170ab7478a82920d5448a2c2df485503d37bb03ab81
 Size (nginx-rtmp-module-1.2.2.tar.gz) = 519934 bytes
-BLAKE2s (nginx_http_push_module-1.2.12.tar.gz) = 1505dd8fa8562643e0b7cfb1c34e12c6044bd604eced52eb6d968ebca9b39d75
-SHA512 (nginx_http_push_module-1.2.12.tar.gz) = 1378ecf7499603319f432a8ea4693f0bc7a18713cd02b7ed9eecd8dfa76b54dcef475b7b028ddfd2750dcb01e2ac73f8605a96950398fbea31ffa8b22fcacfc0
-Size (nginx_http_push_module-1.2.12.tar.gz) = 716150 bytes
 BLAKE2s (ngx_cache_purge-2.5.1.tar.gz) = f89badfa0dbc3c338129291d7c56f978d6db0348d5aaa0d723000881ae9b7b8d
 SHA512 (ngx_cache_purge-2.5.1.tar.gz) = 3ad37b4a251fb85a9a384f87fea5ca640166e3d7173c6ed9a857b191ae5f2e93819483b5d423fcafe8a10239b571677b342cc2d2d5d62315816f1316d7d5bb76
 Size (ngx_cache_purge-2.5.1.tar.gz) = 16614 bytes
diff -r 8fe599492f01 -r 55a0f816b12c www/nginx/options.mk
--- a/www/nginx/options.mk      Thu Mar 10 01:38:43 2022 +0000
+++ b/www/nginx/options.mk      Thu Mar 10 03:40:30 2022 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.72 2022/03/09 14:10:34 osa Exp $
+# $NetBSD: options.mk,v 1.73 2022/03/10 03:40:30 osa Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nginx
 PKG_SUPPORTED_OPTIONS= array-var auth-request cache-purge dav debug
-PKG_SUPPORTED_OPTIONS+=        echo encrypted-session flv form-input
+PKG_SUPPORTED_OPTIONS+=        dso echo encrypted-session flv form-input
 PKG_SUPPORTED_OPTIONS+=        geoip geoip2 gtools gzip headers-more http2
 PKG_SUPPORTED_OPTIONS+=        image-filter luajit mail-proxy memcache
 PKG_SUPPORTED_OPTIONS+=        naxsi njs pcre perl push realip rtmp
@@ -12,10 +12,21 @@
 
 PKG_OPTIONS_LEGACY_OPTS+=      v2:http2
 
-PLIST_VARS+=           naxsi perl uwsgi
+PLIST_VARS+=           arrayvar cprg dav dso echo encses forminput geoip2
+PLIST_VARS+=           headmore imagefilter lua mail naxsi nchan ndk njs
+PLIST_VARS+=           perl rtmp setmisc stream uwsgi
 
 .include "../../mk/bsd.options.mk"
 
+.if !empty(PKG_OPTIONS:Mdso)
+CONFIGURE_ARGS+=       --modules-path=${PREFIX}/libexec/nginx
+_addbasemod=           =dynamic
+_addextmod=            add-dynamic-module
+PLIST.dso=             yes
+.else
+_addextmod=            add-module
+.endif
+
 # documentation says naxsi must be the first module
 .if !empty(PKG_OPTIONS:Mnaxsi) || make(makesum) || make(mdi) || make(distclean)
 NAXSI_VERSION=                 1.3
@@ -24,7 +35,8 @@
 SITES.${NAXSI_DISTFILE}=       -${MASTER_SITE_GITHUB:=nbs-system/naxsi/archive/}${NAXSI_VERSION}.tar.gz
 DISTFILES+=                    ${NAXSI_DISTFILE}
 PLIST.naxsi=                   yes
-CONFIGURE_ARGS+=               --add-module=../${NAXSI_DISTNAME}/naxsi_src
+DSO_EXTMODS+=                  naxsi
+NAXSI_SUBDIR=                  /naxsi_src
 .endif
 
 .if !empty(PKG_OPTIONS:Mdebug)
@@ -62,7 +74,8 @@
 SITES.${DAV_DISTFILE}= -${MASTER_SITE_GITHUB:=arut/nginx-dav-ext-module/archive/}v${DAV_VERSION}.tar.gz
 DISTFILES+=            ${DAV_DISTFILE}
 CONFIGURE_ARGS+=       --with-http_dav_module
-CONFIGURE_ARGS+=       --add-module=../${DAV_DISTNAME}
+DSO_EXTMODS+=          dav
+PLIST.dav=             yes
 .include "../../textproc/libxslt/buildlink3.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 SUBST_CLASSES+=                fix-xslt
@@ -100,7 +113,8 @@
 .endif
 
 .if !empty(PKG_OPTIONS:Mmail-proxy)
-CONFIGURE_ARGS+=       --with-mail
+DSO_BASEMODS+=         mail
+PLIST.mail=            yes
 .endif
 
 .if empty(PKG_OPTIONS:Mmemcache)
@@ -114,8 +128,9 @@
 # NDK must be added once and before 3rd party modules needing it
 .for mod in luajit set-misc array-var form-input encrypted-session
 .  if !defined(NEED_NDK) && !empty(PKG_OPTIONS:M${mod}:O)
-CONFIGURE_ARGS+=       --add-module=../${NDK_DISTNAME}
+FIRST_DSO_EXTMODS+=    ndk
 NEED_NDK=              yes
+PLIST.ndk=             yes
 .  endif
 .endfor
 .if defined(NEED_NDK) || make(makesum) || make(mdi) || make(distclean)
@@ -135,7 +150,8 @@
 .include "../../lang/LuaJIT2/buildlink3.mk"
 CONFIGURE_ENV+=                LUAJIT_LIB=${PREFIX}/lib
 CONFIGURE_ENV+=                LUAJIT_INC=${PREFIX}/include/luajit-2.0
-CONFIGURE_ARGS+=       --add-module=../${LUA_DISTNAME}
+DSO_EXTMODS+=          lua
+PLIST.lua=             yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mecho) || make(makesum) || make(mdi) || make(distclean)
@@ -144,7 +160,8 @@
 ECHOMOD_DISTFILE=              ${ECHOMOD_DISTNAME}.tar.gz
 SITES.${ECHOMOD_DISTFILE}=     -${MASTER_SITE_GITHUB:=openresty/echo-nginx-module/archive/}v${ECHOMOD_VERSION}.tar.gz
 DISTFILES+=                    ${ECHOMOD_DISTFILE}
-CONFIGURE_ARGS+=               --add-module=../${ECHOMOD_DISTNAME}
+DSO_EXTMODS+=                  echomod
+PLIST.echo=                    yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mset-misc) || make(makesum) || make(mdi) || make(distclean)
@@ -153,7 +170,8 @@
 SETMISC_DISTFILE=              ${SETMISC_DISTNAME}.tar.gz
 SITES.${SETMISC_DISTFILE}=     -${MASTER_SITE_GITHUB:=openresty/set-misc-nginx-module/archive/}v${SETMISC_VERSION}.tar.gz
 DISTFILES+=                    ${SETMISC_DISTFILE}
-CONFIGURE_ARGS+=               --add-module=../${SETMISC_DISTNAME}
+DSO_EXTMODS+=                  setmisc
+PLIST.setmisc=                 yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mgeoip2) || make(makesum) || make(mdi) || make(distclean)
@@ -162,7 +180,8 @@
 GEOIP2_DISTFILE=               ${GEOIP2_DISTNAME}.tar.gz
 SITES.${GEOIP2_DISTFILE}=      -${MASTER_SITE_GITHUB:=leev/ngx_http_geoip2_module/archive/}${GEOIP2_VERSION}.tar.gz
 DISTFILES+=                    ${GEOIP2_DISTFILE}
-CONFIGURE_ARGS+=               --add-module=../${GEOIP2_DISTNAME}
+DSO_EXTMODS+=                  geoip2
+PLIST.geoip2=                  yes
 .include "../../geography/libmaxminddb/buildlink3.mk"
 .endif
 
@@ -172,7 +191,8 @@
 ARRAYVAR_DISTFILE=             ${ARRAYVAR_DISTNAME}.tar.gz
 SITES.${ARRAYVAR_DISTFILE}=    -${MASTER_SITE_GITHUB:=openresty/array-var-nginx-module/archive/}v${ARRAYVAR_VERSION}.tar.gz
 DISTFILES+=                    ${ARRAYVAR_DISTFILE}
-CONFIGURE_ARGS+=               --add-module=../${ARRAYVAR_DISTNAME}
+DSO_EXTMODS+=                  arrayvar
+PLIST.arrayvar=                        yes
 .endif
 
 .if !empty(PKG_OPTIONS:Mencrypted-session) || make(makesum) || make(mdi) || make(distclean)
@@ -181,7 +201,8 @@
 ENCSESS_DISTFILE=              ${ENCSESS_DISTNAME}.tar.gz
 SITES.${ENCSESS_DISTFILE}=     -${MASTER_SITE_GITHUB:=openresty/encrypted-session-nginx-module/archive/}v${ENCSESS_VERSION}.tar.gz



Home | Main Index | Thread Index | Old Index