1
0

Accepting request 1156791 from home:13ilya

A very useful module that I need in Factory and want to add to the recommended nginx modules.

OBS-URL: https://build.opensuse.org/request/show/1156791
OBS-URL: https://build.opensuse.org/package/show/server:http/nginx-module-echo?expand=0&rev=1
This commit is contained in:
2024-04-27 22:59:13 +00:00
committed by Git OBS Bridge
commit 57edcd222d
5 changed files with 86 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8af374d29592ef95baee53c91959c7b04927f11304c318a94f0ee140760515a4
size 53421

View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Sat Feb 24 04:33:36 UTC 2024 - Илья Индиго <13ilya@gmail.com>
- Initialized 0.63.

55
nginx-module-echo.spec Normal file
View File

@@ -0,0 +1,55 @@
#
# spec file for package nginx-module-echo
#
# Copyright (c) 2024 SUSE LLC
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define project_name echo-nginx-module
%define so_name ngx_http_echo_module.so
Name: nginx-module-echo
Version: 0.63
Release: 0
Summary: NGINX echo module
License: BSD-2-Clause
Group: Productivity/Networking/Web/Proxy
URL: https://github.com/openresty/%{project_name}
Source0: https://github.com/openresty/%{project_name}/archive/refs/tags/v%{version}.tar.gz#/%{project_name}-%{version}.tar.gz
BuildRequires: nginx-source
%{ngx_conditionals}
%{ngx_requires}
%description
Brings "echo", "sleep", "time", "exec" and more shell-style goodies to Nginx config file.
%prep
mkdir %{project_name}
tar -xzf %{SOURCE0} --strip-components=1 -C %{project_name}
cp -r %{_prefix}/src/nginx .
%build
cd nginx
%{ngx_configure} --add-dynamic-module=../%{project_name}
%make_build modules
%install
mkdir -p %{buildroot}%{ngx_module_dir}
install -Dpm0644 nginx/objs/%{so_name} %{buildroot}%{ngx_module_dir}
%files
%license %{project_name}/LICENSE
%doc %{project_name}/README.markdown
%{ngx_module_dir}/%{so_name}
%changelog