From 841df02b0c1285bc54047232b682501e075bf59f1401785f4b99439bef5e7caa Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 15 May 2025 09:30:38 +0200 Subject: [PATCH] Provide a module autoloading config fragment --- nginx-module-vts.changes | 5 +++++ nginx-module-vts.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/nginx-module-vts.changes b/nginx-module-vts.changes index 7c96eeb..0bbe2b7 100644 --- a/nginx-module-vts.changes +++ b/nginx-module-vts.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 15 07:15:06 UTC 2025 - Jan Engelhardt + +- Provide a module autoloading config fragment + ------------------------------------------------------------------- Thu Mar 27 01:10:28 UTC 2025 - Jan Engelhardt diff --git a/nginx-module-vts.spec b/nginx-module-vts.spec index 69221f2..3596c43 100644 --- a/nginx-module-vts.spec +++ b/nginx-module-vts.spec @@ -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