summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorosa <osa@pkgsrc.org>2022-05-25 13:57:02 +0000
committerosa <osa@pkgsrc.org>2022-05-25 13:57:02 +0000
commitf38cee0dd03bf7b9272087641022a6ce67b44cd5 (patch)
tree6a148d1323897830f32baee8d0e3028b43990b27 /www
parent29d473eaa50287921bdbb23932da66b6a27746d4 (diff)
downloadpkgsrc-f38cee0dd03bf7b9272087641022a6ce67b44cd5.tar.gz
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 (limited to 'www')
-rw-r--r--www/nginx-devel/Makefile3
-rw-r--r--www/nginx-devel/distinfo5
-rw-r--r--www/nginx-devel/options.mk14
-rw-r--r--www/nginx/Makefile3
-rw-r--r--www/nginx/options.mk23
5 files changed, 40 insertions, 8 deletions
diff --git a/www/nginx-devel/Makefile b/www/nginx-devel/Makefile
index fd25a7f5e83..5cbe215c272 100644
--- a/www/nginx-devel/Makefile
+++ b/www/nginx-devel/Makefile
@@ -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 --git a/www/nginx-devel/distinfo b/www/nginx-devel/distinfo
index 9a663c521c7..34d82748ba9 100644
--- a/www/nginx-devel/distinfo
+++ b/www/nginx-devel/distinfo
@@ -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 @@ Size (nginx-dav-ext-module-3.0.0.tar.gz) = 14558 bytes
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 --git a/www/nginx-devel/options.mk b/www/nginx-devel/options.mk
index 4d1cf3a58f4..680845ec9a3 100644
--- a/www/nginx-devel/options.mk
+++ b/www/nginx-devel/options.mk
@@ -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+= geoip geoip2 gtools gzip headers-more http2
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 @@ NJS_SUBDIR= /nginx
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 --git a/www/nginx/Makefile b/www/nginx/Makefile
index 40eacb15a8f..a20b7a26c1c 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -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 --git a/www/nginx/options.mk b/www/nginx/options.mk
index f9c24abd0c5..09f008e516c 100644
--- a/www/nginx/options.mk
+++ b/www/nginx/options.mk
@@ -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_SUGGESTED_OPTIONS+= slice status ssl uwsgi
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 @@ SUBST_NOOP_OK.fix-ssl= yes
.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