pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www www/nginx*: cross merging



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e5da28e7b378
branches:  trunk
changeset: 379928:e5da28e7b378
user:      osa <osa%pkgsrc.org@localhost>
date:      Wed May 25 13:57:02 2022 +0000

description:
www/nginx*: cross merging

The third-party upload module has been add to www/nginx-devel.
Merge pcre/pcre2 functional from www/nginx-devel to www/nginx.

I'm going to review patches for the both ports.

Bump PKGREVISIONs.

diffstat:

 www/nginx-devel/Makefile   |   3 ++-
 www/nginx-devel/distinfo   |   5 ++++-
 www/nginx-devel/options.mk |  14 ++++++++++++--
 www/nginx/Makefile         |   3 ++-
 www/nginx/options.mk       |  23 ++++++++++++++++++++---
 5 files changed, 40 insertions(+), 8 deletions(-)

diffs (133 lines):

diff -r 854688c9e773 -r e5da28e7b378 www/nginx-devel/Makefile
--- a/www/nginx-devel/Makefile  Wed May 25 12:21:13 2022 +0000
+++ b/www/nginx-devel/Makefile  Wed May 25 13:57:02 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.81 2022/05/25 11:02:14 osa Exp $
+# $NetBSD: Makefile,v 1.82 2022/05/25 13:57:02 osa Exp $
 
 DISTNAME=      nginx-1.22.0
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  http://nginx.org/download/
 DISTFILES=     ${DEFAULT_DISTFILES}
diff -r 854688c9e773 -r e5da28e7b378 www/nginx-devel/distinfo
--- a/www/nginx-devel/distinfo  Wed May 25 12:21:13 2022 +0000
+++ b/www/nginx-devel/distinfo  Wed May 25 13:57:02 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.77 2022/05/25 11:02:14 osa Exp $
+$NetBSD: distinfo,v 1.78 2022/05/25 13:57:02 osa Exp $
 
 BLAKE2s (array-var-nginx-module-0.05.tar.gz) = 2f9af1e0eb209b7c20aa58cd8ec2afb1eb1cc122c5f4ea169e34131c463c1c26
 SHA512 (array-var-nginx-module-0.05.tar.gz) = 7c9fa9b76bc7cd2473ceae6d5ffb8de26993be9293ea967908d6c4550e086affa7016df4c936fb0b79f1142dc0aa1a5f2058d417e6433b5a3497a45d7e866e84
@@ -33,6 +33,9 @@
 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-upload-module-2.3.0.tar.gz) = cf47b0c86487450473223a5ec793e294b1dd3dcf8a22a02c2a7a0014aff25545
+SHA512 (nginx-upload-module-2.3.0.tar.gz) = a0da355888398f86a6b5d065e58c05f9e057589ee785be9f515d77d7a020ae5a7b0656f5af30fb3b026f457326db2e26f4fed29026221ec5fc8156ef8586da25
+Size (nginx-upload-module-2.3.0.tar.gz) = 40139 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 854688c9e773 -r e5da28e7b378 www/nginx-devel/options.mk
--- a/www/nginx-devel/options.mk        Wed May 25 12:21:13 2022 +0000
+++ b/www/nginx-devel/options.mk        Wed May 25 13:57:02 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.6 2022/05/25 11:02:14 osa Exp $
+# $NetBSD: options.mk,v 1.7 2022/05/25 13:57:02 osa Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nginx-devel
 PKG_SUPPORTED_OPTIONS= array-var auth-request cache-purge dav debug
@@ -7,7 +7,7 @@
 PKG_SUPPORTED_OPTIONS+=        image-filter luajit mail-proxy memcache
 PKG_SUPPORTED_OPTIONS+=        naxsi njs perl push realip rtmp
 PKG_SUPPORTED_OPTIONS+=        secure-link set-misc slice ssl status
-PKG_SUPPORTED_OPTIONS+=        stream-ssl-preread sub uwsgi
+PKG_SUPPORTED_OPTIONS+=        stream-ssl-preread sub upload uwsgi
 
 PKG_SUGGESTED_OPTIONS= auth-request gzip http2 memcache pcre realip
 PKG_SUGGESTED_OPTIONS+=        slice status ssl uwsgi
@@ -339,6 +339,16 @@
 PLIST.njs=             yes
 .endif
 
+.if !empty(PKG_OPTIONS:Mupload) || make(makesum) || make(mdi) || make(distclean)
+UPLOAD_VERSION=                2.3.0
+UPLOAD_DISTNAME=               nginx-upload-module-${UPLOAD_VERSION}
+UPLOAD_DISTFILE=               ${UPLOAD_DISTNAME}.tar.gz
+SITES.${UPLOAD_DISTFILE}=      -${MASTER_SITE_GITHUB:=vkholodkov/nginx-upload-module/archive/refs/tags/}${UPLOAD_VERSION}.tar.gz
+DISTFILES+=            ${UPLOAD_DISTFILE}
+DSO_EXTMODS+=          upload
+PLIST.upload=          yes
+.endif
+
 .for mod in ${DSO_BASEMODS}
 CONFIGURE_ARGS+=       --with-${mod}${_addbasemod}
 .endfor
diff -r 854688c9e773 -r e5da28e7b378 www/nginx/Makefile
--- a/www/nginx/Makefile        Wed May 25 12:21:13 2022 +0000
+++ b/www/nginx/Makefile        Wed May 25 13:57:02 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.116 2022/05/25 10:48:47 osa Exp $
+# $NetBSD: Makefile,v 1.117 2022/05/25 13:57:02 osa Exp $
 
 DISTNAME=      nginx-1.22.0
+PKGREVISION=   1
 CATEGORIES=    www
 MASTER_SITES=  http://nginx.org/download/
 DISTFILES=     ${DEFAULT_DISTFILES}
diff -r 854688c9e773 -r e5da28e7b378 www/nginx/options.mk
--- a/www/nginx/options.mk      Wed May 25 12:21:13 2022 +0000
+++ b/www/nginx/options.mk      Wed May 25 13:57:02 2022 +0000
@@ -1,11 +1,11 @@
-# $NetBSD: options.mk,v 1.80 2022/05/25 10:48:47 osa Exp $
+# $NetBSD: options.mk,v 1.81 2022/05/25 13:57:02 osa Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nginx
 PKG_SUPPORTED_OPTIONS= array-var auth-request cache-purge dav debug
 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
+PKG_SUPPORTED_OPTIONS+=        naxsi njs perl push realip rtmp
 PKG_SUPPORTED_OPTIONS+=        secure-link set-misc slice ssl status
 PKG_SUPPORTED_OPTIONS+=        stream-ssl-preread sub upload uwsgi
 
@@ -14,6 +14,9 @@
 
 PKG_OPTIONS_LEGACY_OPTS+=      v2:http2
 
+PKG_OPTIONS_OPTIONAL_GROUPS=   pcre
+PKG_OPTIONS_GROUP.pcre=                pcre pcre2
+
 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
@@ -58,12 +61,26 @@
 
 .if !empty(PKG_OPTIONS:Mpcre)
 .include "../../devel/pcre/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-pcre
+CONFIGURE_ARGS+=       --without-pcre2
 SUBST_CLASSES+=                fix-pcre
 SUBST_STAGE.fix-pcre=  pre-configure
 SUBST_FILES.fix-pcre=  auto/lib/pcre/conf
 SUBST_SED.fix-pcre=    -e 's,/usr/pkg,${BUILDLINK_PREFIX.pcre},g'
 SUBST_NOOP_OK.fix-pcre=        yes
-.else
+.endif
+
+.if !empty(PKG_OPTIONS:Mpcre2)
+.include "../../devel/pcre2/buildlink3.mk"
+CONFIGURE_ARGS+=       --with-pcre
+SUBST_CLASSES+=                fix-pcre2
+SUBST_STAGE.fix-pcre2= pre-configure
+SUBST_FILES.fix-pcre2= auto/lib/pcre/conf
+SUBST_SED.fix-pcre2=   -e 's,/usr/pkg,${BUILDLINK_PREFIX.pcre2},g'
+SUBST_NOOP_OK.fix-pcre2=yes
+.endif
+
+.if empty(PKG_OPTIONS:Mpcre) && empty(PKG_OPTIONS:Mpcre2)
 CONFIGURE_ARGS+=       --without-pcre
 CONFIGURE_ARGS+=       --without-http_rewrite_module
 .endif



Home | Main Index | Thread Index | Old Index