pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/www/nginx-devel
Module Name: pkgsrc
Committed By: osa
Date: Tue Sep 9 13:26:02 UTC 2025
Modified Files:
pkgsrc/www/nginx-devel: Makefile PLIST distinfo options.mk
Added Files:
pkgsrc/www/nginx-devel/patches: extra-patch-ngx_brotli_filter_config
Log Message:
www/nginx-devel: add third-party brotli module
Bump PKGREVISION.
Requested by: kim
Tested by: kim
To generate a diff of this commit:
cvs rdiff -u -r1.158 -r1.159 pkgsrc/www/nginx-devel/Makefile
cvs rdiff -u -r1.14 -r1.15 pkgsrc/www/nginx-devel/PLIST
cvs rdiff -u -r1.128 -r1.129 pkgsrc/www/nginx-devel/distinfo
cvs rdiff -u -r1.46 -r1.47 pkgsrc/www/nginx-devel/options.mk
cvs rdiff -u -r0 -r1.1 \
pkgsrc/www/nginx-devel/patches/extra-patch-ngx_brotli_filter_config
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/www/nginx-devel/Makefile
diff -u pkgsrc/www/nginx-devel/Makefile:1.158 pkgsrc/www/nginx-devel/Makefile:1.159
--- pkgsrc/www/nginx-devel/Makefile:1.158 Sat Aug 30 22:46:31 2025
+++ pkgsrc/www/nginx-devel/Makefile Tue Sep 9 13:26:01 2025
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.158 2025/08/30 22:46:31 wiz Exp $
+# $NetBSD: Makefile,v 1.159 2025/09/09 13:26:01 osa Exp $
DISTNAME= nginx-1.29.1
PKGNAME= ${DISTNAME:S/-/-devel-/1}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= www
MASTER_SITES= https://nginx.org/download/
DISTFILES= ${DEFAULT_DISTFILES}
@@ -104,6 +104,9 @@ SOEXT= so
PLIST_SUBST+= SOEXT=${SOEXT}
post-patch:
+.if !empty(PKG_OPTIONS:Mnginx-brotli)
+ cd ${WRKSRC} && ${PATCH} < ${PATCHDIR}/extra-patch-ngx_brotli_filter_config
+.endif
.if !empty(PKG_OPTIONS:Mnginx-gssapi)
${SED} -i.bak '4d;5d;6d' ${WRKDIR}/${GSSAPI_DISTNAME}/config
.endif
Index: pkgsrc/www/nginx-devel/PLIST
diff -u pkgsrc/www/nginx-devel/PLIST:1.14 pkgsrc/www/nginx-devel/PLIST:1.15
--- pkgsrc/www/nginx-devel/PLIST:1.14 Wed Feb 19 16:54:48 2025
+++ pkgsrc/www/nginx-devel/PLIST Tue Sep 9 13:26:01 2025
@@ -1,6 +1,8 @@
-@comment $NetBSD: PLIST,v 1.14 2025/02/19 16:54:48 wiz Exp $
+@comment $NetBSD: PLIST,v 1.15 2025/09/09 13:26:01 osa Exp $
${PLIST.dso}${PLIST.ndk}libexec/nginx/ndk_http_module.so
${PLIST.dso}${PLIST.arrayvar}libexec/nginx/ngx_http_array_var_module.so
+${PLIST.dso}${PLIST.brotli}libexec/nginx/ngx_http_brotli_filter_module.so
+${PLIST.dso}${PLIST.brotli}libexec/nginx/ngx_http_brotli_static_module.so
${PLIST.dso}${PLIST.gssapi}libexec/nginx/ngx_http_auth_spnego_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
Index: pkgsrc/www/nginx-devel/distinfo
diff -u pkgsrc/www/nginx-devel/distinfo:1.128 pkgsrc/www/nginx-devel/distinfo:1.129
--- pkgsrc/www/nginx-devel/distinfo:1.128 Fri Aug 15 20:33:45 2025
+++ pkgsrc/www/nginx-devel/distinfo Tue Sep 9 13:26:01 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.128 2025/08/15 20:33:45 osa Exp $
+$NetBSD: distinfo,v 1.129 2025/09/09 13:26:01 osa Exp $
BLAKE2s (array-var-nginx-module-0.06.tar.gz) = fa6ad2a2ce3c3eba3f69287b224e9c01fcaca29a083394ab74f2f655d3e2138b
SHA512 (array-var-nginx-module-0.06.tar.gz) = bc72158856a1be18a26ee04c6b5b0f0a20bcce688610a493bf31e2a133e7eb12e11f7c18197a09a72b1513f6a08348ee5281b9d5b84cf43603539040ebd23c26
@@ -12,6 +12,9 @@ Size (encrypted-session-nginx-module-0.0
BLAKE2s (form-input-nginx-module-0.12.tar.gz) = b08fc95c3e15bfdc0846e2d1e8157171954f353bd301f4ac4aca56113620e91d
SHA512 (form-input-nginx-module-0.12.tar.gz) = 1c5c5ab74156cac09da44a2dcdd84f7c03c9919a23a847e63613e00e3781ecd73d5ad12446174b4fdef9d064257a31570a8dbcccc00d8266f7048e3dcde0362e
Size (form-input-nginx-module-0.12.tar.gz) = 11090 bytes
+BLAKE2s (google-ngx_brotli-a71f931_GH.tar.gz) = c30d6cbd94abb6f5c1d48275ed964e32f43d9cadd602f95b227a40e62dadbd0d
+SHA512 (google-ngx_brotli-a71f931_GH.tar.gz) = 1cb73a89b53b29d37cbc4d811d5d5cd7b051ec4db98900f593abc8d5b53761b95713212e083334785d9625d4705a78ed476113b244476a9cd5f46dcd9f1177ff
+Size (google-ngx_brotli-a71f931_GH.tar.gz) = 16376 bytes
BLAKE2s (headers-more-nginx-module-0.38.tar.gz) = cef0db963a951c8e33f2fadadcd262552a266f876d1f2585703392da292933df
SHA512 (headers-more-nginx-module-0.38.tar.gz) = 90948a79b88bbe2004dc1a53a5189474405787d518ba4e0ee802992b29372f3d08a3a1cf3dc0d5a2089de38b3a99e6133a4d6ac2feaf018f7b23600d7ef23948
Size (headers-more-nginx-module-0.38.tar.gz) = 29472 bytes
Index: pkgsrc/www/nginx-devel/options.mk
diff -u pkgsrc/www/nginx-devel/options.mk:1.46 pkgsrc/www/nginx-devel/options.mk:1.47
--- pkgsrc/www/nginx-devel/options.mk:1.46 Thu Jul 10 20:54:15 2025
+++ pkgsrc/www/nginx-devel/options.mk Tue Sep 9 13:26:01 2025
@@ -1,9 +1,9 @@
-# $NetBSD: options.mk,v 1.46 2025/07/10 20:54:15 osa Exp $
+# $NetBSD: options.mk,v 1.47 2025/09/09 13:26:01 osa Exp $
CODELOAD_SITE_GITHUB= https://codeload.github.com/
PKG_OPTIONS_VAR= PKG_OPTIONS.nginx-devel
-PKG_SUPPORTED_OPTIONS= nginx-array-var nginx-auth-request nginx-cache-purge nginx-dav nginx-debug
+PKG_SUPPORTED_OPTIONS= nginx-array-var nginx-auth-request nginx-brotli nginx-cache-purge nginx-dav nginx-debug
PKG_SUPPORTED_OPTIONS+= nginx-dso nginx-echo nginx-encrypted-session nginx-flv nginx-form-input
PKG_SUPPORTED_OPTIONS+= nginx-geoip nginx-geoip2 nginx-gssapi nginx-gtools nginx-gzip nginx-headers-more nginx-http2
PKG_SUPPORTED_OPTIONS+= nginx-http3 nginx-image-filter nginx-luajit nginx-mail-proxy nginx-memcache
@@ -11,10 +11,10 @@ PKG_SUPPORTED_OPTIONS+= nginx-naxsi ngin
PKG_SUPPORTED_OPTIONS+= nginx-secure-link nginx-set-misc nginx-slice nginx-ssl nginx-status
PKG_SUPPORTED_OPTIONS+= nginx-stream-ssl-preread nginx-sts nginx-sub nginx-upload nginx-uwsgi nginx-vts
-PKG_SUGGESTED_OPTIONS= nginx-auth-request nginx-gzip nginx-http2 nginx-http3 nginx-memcache nginx-realip
-PKG_SUGGESTED_OPTIONS+= nginx-slice nginx-status nginx-ssl nginx-uwsgi
+PKG_SUGGESTED_OPTIONS= nginx-auth-request nginx-brotli nginx-gzip nginx-http2 nginx-http3 nginx-memcache
+PKG_SUGGESTED_OPTIONS+= nginx-realip nginx-slice nginx-status nginx-ssl nginx-uwsgi
-PLIST_VARS+= arrayvar cprg dav dso echo encses forminput geoip2
+PLIST_VARS+= arrayvar brotli cprg dav dso echo encses forminput geoip2
PLIST_VARS+= gssapi headmore imagefilter lua mail naxsi nchan ndk njs
PLIST_VARS+= perl redis rtmp setmisc stream sts upload uwsgi vts
@@ -98,6 +98,24 @@ SUBST_SED.fix-ssl= -e 's,/usr/pkg,${BUIL
SUBST_NOOP_OK.fix-ssl= yes
.endif
+.if !empty(PKG_OPTIONS:Mnginx-brotli) || make(makesum) || make(mdi) || make(distclean)
+.include "../../archivers/brotli/buildlink3.mk"
+BROTLI_GH_ACCOUNT= google
+BROTLI_GH_PROJECT= ngx_brotli
+BROTLI_VERSION= a71f931
+BROTLI_DISTNAME= ${BROTLI_GH_PROJECT}-${BROTLI_VERSION}
+BROTLI_DISTFILE= ${BROTLI_GH_ACCOUNT}-${BROTLI_DISTNAME}_GH.tar.gz
+SITES.${BROTLI_DISTFILE}= -${CODELOAD_SITE_GITHUB:=${BROTLI_GH_ACCOUNT}/${BROTLI_GH_PROJECT}/tar.gz/${BROTLI_VERSION}?dummy=${BROTLI_DISTFILE}}
+DISTFILES+= ${BROTLI_DISTFILE}
+DSO_EXTMODS+= brotli
+SUBST_CLASSES+= fix-brotli
+SUBST_STAGE.fix-brotli= pre-configure
+SUBST_FILES.fix-brotli= ../${BROTLI_DISTNAME}/filter/config
+SUBST_SED.fix-brotli= -e 's,%%PREFIX%%,${BUILDLINK_PREFIX.brotli},g'
+SUBST_NOOP_OK.fix-brotli= yes
+PLIST.brotli= yes
+.endif
+
.if !empty(PKG_OPTIONS:Mnginx-dav) || make(makesum) || make(mdi) || make(distclean)
DAV_VERSION= 3.0.0
DAV_DISTNAME= nginx-dav-ext-module-3.0.0
Added files:
Index: pkgsrc/www/nginx-devel/patches/extra-patch-ngx_brotli_filter_config
diff -u /dev/null pkgsrc/www/nginx-devel/patches/extra-patch-ngx_brotli_filter_config:1.1
--- /dev/null Tue Sep 9 13:26:02 2025
+++ pkgsrc/www/nginx-devel/patches/extra-patch-ngx_brotli_filter_config Tue Sep 9 13:26:01 2025
@@ -0,0 +1,40 @@
+--- ../ngx_brotli-a71f931/filter/config.orig 2023-10-09 02:44:27.000000000 -0400
++++ ../ngx_brotli-a71f931/filter/config 2025-09-08 09:29:11.776714842 -0400
+@@ -42,33 +42,16 @@
+ ngx_module_type=HTTP_FILTER
+ ngx_module_name=ngx_http_brotli_filter_module
+
+-brotli="$ngx_addon_dir/deps/brotli/c"
+-if [ ! -f "$brotli/include/brotli/encode.h" ]; then
+-cat << END
+-
+-$0: error: \
+-Brotli library is missing from the $brotli directory.
+-
+-Please make sure that the git submodule has been checked out:
+-
+- cd $ngx_addon_dir && git submodule update --init && cd $PWD
+-
+-END
+- exit 1
+-fi
+-
+-BROTLI_OUTPUT_DIRECTORY="$brotli/../out"
+-BROTLI_ENC_H="$brotli/include/brotli/encode.h \
+- $brotli/include/brotli/port.h \
+- $brotli/include/brotli/types.h"
++BROTLI_ENC_H="%%PREFIX%%/include/brotli/encode.h \
++ %%PREFIX%%/include/brotli/port.h \
++ %%PREFIX%%/include/brotli/types.h"
+
+
+ ngx_module_incs="$brotli/include"
+ ngx_module_deps="$BROTLI_ENC_H"
+ ngx_module_srcs="$BROTLI_MODULE_SRC_DIR/ngx_http_brotli_filter_module.c"
+-ngx_module_libs="-L$BROTLI_OUTPUT_DIRECTORY -lbrotlienc -lbrotlicommon -lm"
++ngx_module_libs="-L%%PREFIX%%/lib -lbrotlienc -lbrotlicommon -lm"
+ ngx_module_order="$ngx_module_name \
+- ngx_pagespeed \
+ ngx_http_postpone_filter_module \
+ ngx_http_ssi_filter_module \
+ ngx_http_charset_filter_module \
Home |
Main Index |
Thread Index |
Old Index