forked from pool/nginx-module-vts
Provide a module autoloading config fragment
This commit is contained in:
@@ -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>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user