2022-05-31 16:28:58 +00:00
|
|
|
#
|
|
|
|
# spec file for package nginx-module-vts
|
|
|
|
#
|
2025-01-01 08:43:15 +01:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2022-05-31 16:28:58 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2023-07-26 09:43:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2022-05-31 16:28:58 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define project_name nginx-module-vts
|
|
|
|
Name: nginx-module-vts
|
2025-03-18 15:42:21 +01:00
|
|
|
Version: 0.2.4
|
2022-05-31 16:28:58 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Nginx virtual host traffic status module
|
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Productivity/Networking/Web/Proxy
|
|
|
|
URL: https://github.com/vozlt/nginx-module-vts
|
2023-07-26 09:43:09 +00:00
|
|
|
Source: https://github.com/vozlt/nginx-module-vts/archive/refs/tags/v%version.tar.gz
|
2022-05-31 16:28:58 +00:00
|
|
|
BuildRequires: nginx-source
|
|
|
|
%ngx_conditionals
|
|
|
|
%ngx_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is an Nginx module that provides access to virtual host status
|
|
|
|
information. It contains the current status such as servers, upstreams, caches.
|
|
|
|
This is similar to the live activity monitoring of nginx plus. The built-in html
|
|
|
|
is also taken from the demo page of old version.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
cp -r /usr/src/nginx .
|
|
|
|
|
|
|
|
%build
|
|
|
|
cd nginx
|
|
|
|
%ngx_configure --add-dynamic-module=..
|
|
|
|
%make_build modules
|
|
|
|
|
|
|
|
%install
|
2025-05-15 09:30:38 +02:00
|
|
|
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-vts.conf" <<-EOF
|
|
|
|
load_module %ngx_module_dir/ngx_http_vhost_traffic_status_module.so;
|
|
|
|
EOF
|
2022-05-31 16:28:58 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%ngx_module_dir/*.so
|
2025-05-15 09:30:38 +02:00
|
|
|
%_datadir/nginx/
|
2022-05-31 16:28:58 +00:00
|
|
|
|
|
|
|
%changelog
|