@@ -87,6 +87,13 @@ pipeline:
8787 expected-commit : cb85fbbfbad6adf5ce71ed4f9b585f498c05c19d
8888 destination : nginx-mainline
8989
90+ - uses : git-checkout
91+ with :
92+ repository : https://github.com/openresty/headers-more-nginx-module.git
93+ tag : v0.39
94+ expected-commit : 2b1debde426783b8f42246149d3638644a6347cb
95+ destination : headers-more-src
96+
9097 - name : configure
9198 working-directory : nginx-mainline
9299 runs : |
@@ -139,7 +146,8 @@ pipeline:
139146 --with-stream_ssl_module \
140147 --with-stream_realip_module \
141148 --with-stream_geoip_module=dynamic \
142- --with-stream_ssl_preread_module
149+ --with-stream_ssl_preread_module \
150+ --add-dynamic-module=../headers-more-src
143151
144152 - working-directory : nginx-mainline
145153 runs : |
@@ -453,6 +461,31 @@ subpackages:
453461 - runs : |
454462 readlink -v /etc/nginx/conf.d/default.conf
455463
464+ - name : ${{package.name}}-mod-http_headers_more_filter
465+ description : Nginx third-party module http_headers_more_filter
466+ dependencies :
467+ provides :
468+ - nginx-mod-http_headers_more_filter=${{package.full-version}}
469+ runtime :
470+ - merged-usrsbin
471+ - ${{package.name}}
472+ - wolfi-baselayout
473+ pipeline :
474+ - runs : |
475+ install -d -m 755 \
476+ ${{targets.subpkgdir}}/usr/lib/nginx/modules \
477+ ${{targets.subpkgdir}}/etc/nginx/modules \
478+ ${{targets.subpkgdir}}/var/lib/nginx
479+
480+ ln -sf /usr/lib/nginx/modules ${{targets.subpkgdir}}/var/lib/nginx/modules
481+
482+ mv ${{targets.destdir}}/usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so ${{targets.subpkgdir}}/usr/lib/nginx/modules/
483+
484+ echo "load_module \"modules/ngx_http_headers_more_filter_module.so\";" >> ${{targets.subpkgdir}}/etc/nginx/modules/10_http_headers_more_filter.conf
485+ test :
486+ pipeline :
487+ - uses : test/tw/ldd-check
488+
456489test :
457490 environment :
458491 accounts :
0 commit comments