1
0

Provide a module autoloading config fragment

This commit is contained in:
2025-05-15 09:30:38 +02:00
parent 4935f4e9d7
commit 841df02b0c
2 changed files with 12 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu May 15 07:15:06 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Provide a module autoloading config fragment
-------------------------------------------------------------------
Thu Mar 27 01:10:28 UTC 2025 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -45,11 +45,16 @@ cd nginx
%make_build modules
%install
mkdir -p %buildroot/%ngx_module_dir
install -D -m 0644 nginx/objs/ngx_http_vhost_traffic_status_module.so %buildroot/%ngx_module_dir
b="%buildroot"
mkdir -p "$b/%ngx_module_dir" "$b/%_datadir/nginx/modules"
install -D -m 0644 nginx/objs/ngx_http_vhost_traffic_status_module.so "$b/%ngx_module_dir/"
cat >"$b/%_datadir/nginx/modules/mod-zstd.conf" <<-EOF
load_module %ngx_module_dir/ngx_http_vhost_traffic_status_module.so;
EOF
%files
%license LICENSE
%ngx_module_dir/*.so
%_datadir/nginx/
%changelog