pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/www/nginx nginx: support the upload module



details:   https://anonhg.NetBSD.org/pkgsrc/rev/318207556d42
branches:  trunk
changeset: 378050:318207556d42
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Wed Apr 27 20:39:38 2022 +0000

description:
nginx: support the upload module

not enable by default, no PKGREVISION bump

diffstat:

 www/nginx/distinfo   |   5 ++++-
 www/nginx/options.mk |  14 ++++++++++++--
 2 files changed, 16 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r dafd64041e26 -r 318207556d42 www/nginx/distinfo
--- a/www/nginx/distinfo        Wed Apr 27 17:43:34 2022 +0000
+++ b/www/nginx/distinfo        Wed Apr 27 20:39:38 2022 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.94 2022/04/12 13:09:46 osa Exp $
+$NetBSD: distinfo,v 1.95 2022/04/27 20:39:38 wiz 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 dafd64041e26 -r 318207556d42 www/nginx/options.mk
--- a/www/nginx/options.mk      Wed Apr 27 17:43:34 2022 +0000
+++ b/www/nginx/options.mk      Wed Apr 27 20:39:38 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.76 2022/04/12 13:09:46 osa Exp $
+# $NetBSD: options.mk,v 1.77 2022/04/27 20:39:38 wiz Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.nginx
 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 pcre 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= pcre ssl
 
 PKG_OPTIONS_LEGACY_OPTS+=      v2:http2
@@ -320,6 +320,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



Home | Main Index | Thread Index | Old Index