1 Commits

Author SHA256 Message Date
838981f651 Sync changes to SLFO-1.2 branch 2025-08-20 09:55:24 +02:00
10 changed files with 124 additions and 332 deletions

BIN
nginx-1.27.2.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

17
nginx-1.27.2.tar.gz.asc Normal file
View File

@@ -0,0 +1,17 @@
-----BEGIN PGP SIGNATURE-----
iQJHBAABCAAxFiEE1nhs4wPZqQIpmNxsyEZNVJr3XAoFAmb9Z0ATHHMua2FuZGF1
cm92QGY1LmNvbQAKCRDIRk1UmvdcCg6nD/9JY+oE21aFArOQQ3xjFQh1sIZVVzE0
JrRqYtzj6Rd834+bHW2Q2dXIgkxRoau//9+bP3sjGfDzqtjUOTwc0Eu85GK+8PV9
eqdLJDjBTMFd1L1Zha07N1Eimcb/M4+ttPtKszC/u6L6zHKvGzMWPq6xt/jqN2Bo
697Z26fTGV8k1oFmZj8Y7dZodIhykMjjea98R/uOKXsSqZGPw2u5xTWpab6ITB7i
vAnkV5d51roGmYfFXdBbxq3BvnpBWAVLL4FEWDWcNyMVAoW+GP68aaSyn4K4Enaq
fxyc6zcVeqhQsWdumE7EbT7cQIGBh+MbSYuApZQmr59sFOwHo+i/BBOHpzlv4LWH
Jo1tEOJWZNjliXGVKdf2v4nwfQOacsa36MMU0INO200c4PC6UZvGdJ8jPzARNSHK
EZy7VYTZ1l3UDnL3v+IqmIOWQNjyPNOjWvLgq9aZOp24GvzXMPGXiIL1JvTeM/po
u3vJR57w3Ioxfddmr4aqQQRVQDfNg9F/AnZXFk6Dss6h3C0L8cyi+NO+jpgf1h5a
Mv6nAaPyuzvgI5leKLnA5pMrfWxCJ2ZLgqPy0wz9Ckmd/ALAvT7FHv73XEEz5CJb
TQP1jloxJHsNmjMfkFX6rKuOwEYaSgQU8i7GCt0qYiv7y+C5GeHQSdAZk9apO0Q4
063qFKVdOSNphQ==
=PkLy
-----END PGP SIGNATURE-----

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:109754dfe8e5169a7a0cf0db6718e7da2db495753308f933f161e525a579a664
size 1284291

View File

@@ -1,17 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQJHBAABCAAxFiEE1nhs4wPZqQIpmNxsyEZNVJr3XAoFAmha4MkTHHMua2FuZGF1
cm92QGY1LmNvbQAKCRDIRk1UmvdcCjDJD/90SPlO0ZrSY4uv+FlwdxjIfGX46uNi
Tx7ZkIRwUDv/dwEPq3WtpS88mOuDHMKL5EtdjHwf/njJ/xjMecgyIFYKKOi3uGpr
G++DEMQ5o80isYc1jM5GKtYl9HtzsGxhFHeABaKpzCHKAWnVLygrLtPERzY9LN3+
d4Z2FAogPY7Uy1w+H/B48IIFQdTsOwvcffJLCEklxQTZh6ILF2MlWU2tSJEHJ0L0
9VbfZvlPaKXzK09p4nG9PytvXfd3JKO5evi2BoxuFvjruSjNBHsF89uhy+bhgqyM
TBF9my9tkQdMc/HQ/vBhjo29VtnQ87+ZIlVJCqrh7Ln8y1dRX6lcSVfcVjAUdDs9
rPyLrbHMORGgvfVo17MHpV+L2JdTJ+EZR3GFr7/kJuGXp8atfWGowZfmImWOyYss
63GudvV5MhaUF7Ka6BXK5GaMRFMzbouUN5TMGD3/TZETcDM0EKucrEu40t/ucNDn
Do2O+KX6jk9k5tFcWegVZWcoyV2VncSt8uRQXTnXq9DM/Uw37H7xGgi5N/UKyjNL
1KH0n22BxiMSE8J6BEiDWgZJqQ4LBdrbThCN3BWMiGjwzDkcq+Ukb7BYxncrEBpm
Rk4TXOLGRdZOQhCVFOx4ZcA5zzZqhPQT4WDVpDpJTw4+ls2TflKqst3n8yMEsRYq
fB3ZvaTfOOt06g==
=i+ek
-----END PGP SIGNATURE-----

View File

@@ -1,17 +1,13 @@
diff -Pdpru nginx-1.27.4.orig/conf/nginx.conf nginx-1.27.4/conf/nginx.conf diff -Pdpru nginx-1.27.1.orig/conf/nginx.conf nginx-1.27.1/conf/nginx.conf
--- nginx-1.27.4.orig/conf/nginx.conf 2025-02-05 14:06:32.000000000 +0300 --- nginx-1.27.1.orig/conf/nginx.conf 2024-08-12 17:21:01.000000000 +0300
+++ nginx-1.27.4/conf/nginx.conf 2025-03-30 05:11:05.303755904 +0300 +++ nginx-1.27.1/conf/nginx.conf 2024-08-16 02:08:46.680107766 +0300
@@ -1,117 +1,130 @@ @@ -1,16 +1,28 @@
+#user USER GROUP; +#user nginx nginx;
+#worker_processes 1; +#worker_processes 1;
+#pcre_jit off; +#pcre_jit off;
-#user nobody; -#user nobody;
-worker_processes 1; -worker_processes 1;
-
-#error_log logs/error.log;
-#error_log logs/error.log notice;
-#error_log logs/error.log info;
+# load_module #LIBDIR#/nginx/modules/ngx_http_echo_module.so; +# load_module #LIBDIR#/nginx/modules/ngx_http_echo_module.so;
+# load_module #LIBDIR#/nginx/modules/ngx_http_fancyindex_module.so; +# load_module #LIBDIR#/nginx/modules/ngx_http_fancyindex_module.so;
+# load_module #LIBDIR#/nginx/modules/ngx_http_geoip2_module.so; +# load_module #LIBDIR#/nginx/modules/ngx_http_geoip2_module.so;
@@ -23,197 +19,101 @@ diff -Pdpru nginx-1.27.4.orig/conf/nginx.conf nginx-1.27.4/conf/nginx.conf
+# load_module #LIBDIR#/nginx/modules/ngx_stream_geoip2_module.so; +# load_module #LIBDIR#/nginx/modules/ngx_stream_geoip2_module.so;
+# load_module #LIBDIR#/nginx/modules/ngx_stream_module.so; +# load_module #LIBDIR#/nginx/modules/ngx_stream_module.so;
-#pid logs/nginx.pid; -#error_log logs/error.log;
+#error_log /var/log/nginx/error.log; -#error_log logs/error.log notice;
+#error_log /var/log/nginx/error.log notice; -#error_log logs/error.log info;
+#error_log /var/log/nginx/error.log info; +#error_log /var/log/nginx/error.log;
+#error_log /var/log/nginx/error.log notice;
+#error_log /var/log/nginx/error.log info;
-#pid logs/nginx.pid;
+#pid /var/run/nginx.pid;
+#pid /run/nginx.pid;
events { events {
- worker_connections 1024; worker_connections 1024;
+ multi_accept on; + use epoll;
+ worker_connections 1024;
} }
-
http { @@ -22,7 +34,7 @@ http {
- include mime.types; # '$status $body_bytes_sent "$http_referer" '
- default_type application/octet-stream; # '"$http_user_agent" "$http_x_forwarded_for"';
-
- #log_format main '$remote_addr - $remote_user [$time_local] "$request" '
- # '$status $body_bytes_sent "$http_referer" '
- # '"$http_user_agent" "$http_x_forwarded_for"';
+ include mime.types;
+ default_type application/octet-stream;
- #access_log logs/access.log main; - #access_log logs/access.log main;
+ #log_format main '$time_local - $http_host - $remote_addr - $status "$request" $body_bytes_sent - $http_referer - "$http_user_agent"'; + #access_log /var/log/nginx/access.log main;
+ #access_log /var/log/nginx/access.log main;
- sendfile on; sendfile on;
- #tcp_nopush on; #tcp_nopush on;
+ http2 on; @@ -32,16 +44,18 @@ http {
+ sendfile on;
+ #tcp_nopush on;
+ #tcp_nodelay on;
- #keepalive_timeout 0; #gzip on;
- keepalive_timeout 65;
+ #keepalive_timeout 0;
+ keepalive_timeout 70;
- #gzip on; + include conf.d/*.conf;
+ #gzip on; +
server {
listen 80;
server_name localhost;
- server { #charset koi8-r;
- listen 80;
- server_name localhost;
+ include conf.d/*.conf;
- #charset koi8-r;
+ server {
+ listen 80;
+ server_name localhost;
- #access_log logs/host.access.log main; - #access_log logs/host.access.log main;
+ #access_log /var/log/nginx/host.access.log main; + #access_log /var/log/nginx/host.access.log main;
- location / { location / {
- root html; - root html;
- index index.html index.htm; + root /srv/www/htdocs/;
- } index index.html index.htm;
+ location / { }
+ root /srv/www/htdocs;
+ index index.html index.htm;
+ }
- #error_page 404 /404.html; @@ -51,7 +65,7 @@ http {
+ #error_page 404 /404.html; #
error_page 500 502 503 504 /50x.html;
- # redirect server error pages to the static page /50x.html location = /50x.html {
- #
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root html; - root html;
- } + root /srv/www/htdocs/;
+ # redirect server error pages to the static page /50x.html }
+ #
+ #error_page 500 502 503 504 /50x.html;
+ #location = /50x.html {
+ # root /srv/www/htdocs;
+ #}
- # proxy the PHP scripts to Apache listening on 127.0.0.1:80 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
- # @@ -63,7 +77,7 @@ http {
- #location ~ \.php$ { # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- # proxy_pass http://127.0.0.1; #
- #} #location ~ \.php$ {
+ # proxy the PHP scripts to Apache listening on 127.0.0.1:80
+ #
+ #location ~ \.php$ {
+ # proxy_pass http://127.0.0.1;
+ #}
- # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
- #
- #location ~ \.php$ {
- # root html; - # root html;
- # fastcgi_pass 127.0.0.1:9000; + # root /srv/www/htdocs/;
- # fastcgi_index index.php; # fastcgi_pass 127.0.0.1:9000;
- # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name; # fastcgi_index index.php;
- # include fastcgi_params; # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
- #} @@ -87,7 +101,7 @@ http {
+ # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 # server_name somename alias another.alias;
+ #
+ #location ~ \.php$ {
+ # root /srv/www/htdocs;
+ # fastcgi_pass 127.0.0.1:9000;
+ # fastcgi_index index.php;
+ # fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
+ # include fastcgi_params;
+ #}
- # deny access to .htaccess files, if Apache's document root # location / {
- # concurs with nginx's one
- #
- #location ~ /\.ht {
- # deny all;
- #}
- }
+ # deny access to hidden files
+ #
+ #location ^~ /. {
+ # deny all;
+ #}
+ }
+ # another virtual host using mix of IP-, name-, and port-based configuration
+ #
+ #server {
+ # listen 8000;
+ # listen somename:8080;
+ # server_name somename alias another.alias;
+ # location / {
+ # root /srv/www/htdocs;
+ # index index.html index.htm;
+ # }
+ #}
- # another virtual host using mix of IP-, name-, and port-based configuration
- #
- #server {
- # listen 8000;
- # listen somename:8080;
- # server_name somename alias another.alias;
+ # HTTPS server
+ #
+ #server {
+ # listen 443 ssl;
+ # server_name localhost;
- # location / {
- # root html; - # root html;
- # index index.html index.htm; + # root /srv/www/htdocs/;
- # } # index index.html index.htm;
- #} # }
+ # ssl_certificate cert.crt; #}
+ # ssl_certificate_key cert.key; @@ -102,6 +116,10 @@ http {
# ssl_certificate cert.pem;
# ssl_certificate_key cert.key;
+ # ssl_protocols TLSv1.2 TLSv1.3; + # Allow TLS version 1.2 only, which is a recommended default these days
+ # by international information security standards.
+ # ssl_protocols TLSv1.2;
+
# ssl_session_cache shared:SSL:1m;
# ssl_session_timeout 5m;
- # HTTPS server @@ -109,9 +127,11 @@ http {
- # # ssl_prefer_server_ciphers on;
- #server {
- # listen 443 ssl;
- # server_name localhost;
+ # ssl_ciphers ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384;
+ # ssl_conf_command Ciphersuites TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384;
+ # ssl_prefer_server_ciphers on;
- # ssl_certificate cert.pem; # location / {
- # ssl_certificate_key cert.key;
+ # ssl_ecdh_curve prime256v1;
- # ssl_session_cache shared:SSL:1m;
- # ssl_session_timeout 5m;
+ # ssl_early_data on;
- # ssl_ciphers HIGH:!aNULL:!MD5;
- # ssl_prefer_server_ciphers on;
+ # ssl_session_cache shared:SSL:10m;
+ # ssl_session_timeout 10m;
- # location / {
- # root html; - # root html;
- # index index.html index.htm; + # root /srv/www/htdocs/;
- # } # index index.html index.htm;
- #} # }
+ # location / { #}
+ # root /srv/www/htdocs;
+ # index index.html index.htm;
+ # }
+ #
+ include vhosts.d/*.conf; + include vhosts.d/*.conf;
+
} }

View File

@@ -1,17 +0,0 @@
Index: nginx-1.27.4/auto/install
===================================================================
--- nginx-1.27.4.orig/auto/install
+++ nginx-1.27.4/auto/install
@@ -104,9 +104,11 @@ $NGX_OBJS/nginx.8: $NGX_MAN $NGX_AUTO_CO
-e "s|%%ERROR_LOG_PATH%%|${NGX_ERROR_LOG_PATH:-stderr}|" \\
< $NGX_MAN > \$@
-install: build $NGX_INSTALL_PERL_MODULES
+install: build $NGX_INSTALL_PERL_MODULES manpage
test -d '\$(DESTDIR)$NGX_PREFIX' || mkdir -p '\$(DESTDIR)$NGX_PREFIX'
+ install -D -m 0644 -t '\$(DESTDIR)/usr/share/man/man8' $NGX_OBJS/nginx.8
+
test -d '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`' \\
|| mkdir -p '\$(DESTDIR)`dirname "$NGX_SBIN_PATH"`'
test ! -f '\$(DESTDIR)$NGX_SBIN_PATH' \\

View File

@@ -1,94 +1,7 @@
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 16 22:29:54 UTC 2025 - Илья Индиго <ilya@ilya.top> Wed Aug 13 09:18:21 UTC 2025 - Felix Schnizlein <fschnizlein@suse.com>
- Changed nginx.logrotate and nginx-conf.patch files. - Drop root priviledges while running logrotate (bsc#1246090)
* Removed hardcoded user and group definitions.
- Removed ending slashes wherever possible.
-------------------------------------------------------------------
Wed Jul 16 21:33:02 UTC 2025 - Parag Jain <parag.jain@suse.com>
- Removed root privileges when running logrotate (bsc#1246090).
-------------------------------------------------------------------
Fri Jun 27 09:33:06 UTC 2025 - Илья Индиго <ilya@ilya.top>
- Updated to 1.29.0
* https://nginx.org/en/CHANGES
* Added support for response code 103 from proxy and gRPC backends;
the "early_hints" directive.
* Added loading of secret keys from hardware tokens with OpenSSL provider.
* Changed the logging level of SSL errors in a QUIC handshake has been
changed from "error" to "crit" for critical errors, and to "info" for
the rest; the logging level of unsupported QUIC transport parameters
has been lowered from "info" to "debug".
* Disabled OpenSSL 3.5 QUIC API support by default.
-------------------------------------------------------------------
Mon Jun 2 13:28:14 UTC 2025 - Richard Rahl <rrahl0@opensuse.org>
- Updated to 1.28.0:
* Fixed -Wunterminated-string-initialization with gcc15
* HTTP/3: fixed NGX_HTTP_V3_VARLEN_INT_LEN value
-------------------------------------------------------------------
Thu May 22 13:53:07 UTC 2025 - Oliver Kurz <okurz@suse.com>
- Changed service to prevent "timed out. Killing" messages on service stopping
-------------------------------------------------------------------
Wed Apr 16 14:49:23 UTC 2025 - Илья Индиго <ilya@ilya.top>
- Updated to 1.27.5
* https://nginx.org/en/CHANGES
* Changed the maximum size limit for SSL sessions cached in shared
memory has been raised to 8192.
* Fixed in the "grpc_ssl_password_file", "proxy_ssl_password_file",
and "uwsgi_ssl_password_file" directives when loading SSL certificates
and encrypted keys from variables; the bug had appeared in 1.23.1.
* Fixed in the $ssl_curve and $ssl_curves variables when using pluggable
curves in OpenSSL.
-------------------------------------------------------------------
Thu Apr 3 23:21:51 UTC 2025 - Marcus Rueckert <mrueckert@suse.de>
- Added nginx-man.patch to enable manpage 8 (boo#1240675).
-------------------------------------------------------------------
Sun Mar 30 02:11:41 UTC 2025 - Илья Индиго <ilya@ilya.top>
- Removed rudiment /srv/www/htdocs/50x.html (boo#1240166).
- Changed nginx-conf.patch to refresh default config.
-------------------------------------------------------------------
Thu Feb 6 04:45:46 UTC 2025 - Илья Индиго <ilya@ilya.top>
- Changed URL's from nginx.org to github.com .
- Updated to 1.27.4
* https://nginx.org/en/CHANGES
* Fixed insufficient check in virtual servers handling with TLSv1.3
SNI allowed to reuse SSL sessions in a different virtual server, to
bypass client SSL certificates verification (CVE-2025-23419).
* Added the "ssl_object_cache_inheritable", "ssl_certificate_cache",
"proxy_ssl_certificate_cache", "grpc_ssl_certificate_cache", and
"uwsgi_ssl_certificate_cache", "keepalive_min_timeout" directives.
* Fixed nginx could not build libatomic library using the library
sources if the --with-libatomic=DIR option was used.
-------------------------------------------------------------------
Wed Nov 27 04:14:02 UTC 2024 - Илья Индиго <ilya@ilya.top>
- Updated to 1.27.3
* https://github.com/nginx/nginx/releases/tag/release-1.27.3
* Added the "server" directive in the "upstream" block supports the "resolve" parameter.
* Added the "resolver" and "resolver_timeout" directives in the "upstream" block.
* Added SmarterMail specific mode support for IMAP LOGIN with
untagged CAPABILITY response in the mail proxy module.
* Changed TLSv1 and TLSv1.1 protocols are disabled by default.
* Changed IPv6 address in square brackets and no port can be specified in the
"proxy_bind", "fastcgi_bind", "grpc_bind", "memcached_bind", "scgi_bind",
and "uwsgi_bind" directives, and as client address in ngx_http_realip_module.
* Fixed ngx_http_mp4_module and "proxy_store" directive.
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Oct 3 06:22:15 UTC 2024 - Илья Индиго <ilya@ilya.top> Thu Oct 3 06:22:15 UTC 2024 - Илья Индиго <ilya@ilya.top>

View File

@@ -1,5 +1,5 @@
/var/log/nginx/*.log { /var/log/nginx/*.log {
su USER GROUP su nginx nginx
compress compress
dateext dateext
maxage 365 maxage 365

View File

@@ -9,9 +9,7 @@ PIDFile=/run/nginx.pid
ExecStartPre=/usr/sbin/nginx -t ExecStartPre=/usr/sbin/nginx -t
ExecStart=/usr/sbin/nginx -g "daemon off;" ExecStart=/usr/sbin/nginx -g "daemon off;"
ExecReload=/bin/kill -s HUP $MAINPID ExecReload=/bin/kill -s HUP $MAINPID
# Try graceful shutdown first, otherwise forced shutdown to not need to resort KillSignal=SIGQUIT
# to SIGKILL
ExecStop=/bin/sh -c "kill -s QUIT $MAINPID && waitpid --timeout 3 --exited $MAINPID || kill -s TERM $MAINPID"
TimeoutStopSec=5 TimeoutStopSec=5
KillMode=mixed KillMode=mixed
PrivateTmp=true PrivateTmp=true

View File

@@ -1,7 +1,7 @@
# #
# spec file for package nginx # spec file for package nginx
# #
# Copyright (c) 2025 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -23,14 +23,14 @@
%bcond_with ngx_google_perftools %bcond_with ngx_google_perftools
# #
Name: nginx Name: nginx
Version: 1.29.0 Version: 1.27.2
Release: 0 Release: 0
Summary: A HTTP server and IMAP/POP3 proxy server Summary: A HTTP server and IMAP/POP3 proxy server
License: BSD-2-Clause License: BSD-2-Clause
Group: Productivity/Networking/Web/Proxy Group: Productivity/Networking/Web/Proxy
URL: https://github.com/nginx/nginx URL: https://nginx.org
Source0: https://github.com/nginx/nginx/releases/download/release-%{version}/%{name}-%{version}.tar.gz Source0: https://nginx.org/download/%{name}-%{version}.tar.gz
Source1: https://github.com/nginx/nginx/releases/download/release-%{version}/%{name}-%{version}.tar.gz.asc Source1: https://nginx.org/download/%{name}-%{version}.tar.gz.asc
Source2: https://nginx.org/keys/pluknet.key#/%{name}.keyring Source2: https://nginx.org/keys/pluknet.key#/%{name}.keyring
Source3: %{name}.rpmlintrc Source3: %{name}.rpmlintrc
Source4: %{name}.logrotate Source4: %{name}.logrotate
@@ -46,8 +46,6 @@ Patch2: %{name}-perl.patch
Patch3: %{name}-conf.patch Patch3: %{name}-conf.patch
# PATCH-FIX-UPSTREAM nginx-aio.patch fix support for Linux AIO # PATCH-FIX-UPSTREAM nginx-aio.patch fix support for Linux AIO
Patch4: %{name}-aio.patch Patch4: %{name}-aio.patch
# PATCH-FIX-OPENSUSE nginx-man.patch install the manpage
Patch5: %{name}-man.patch
BuildRequires: %{name}-macros BuildRequires: %{name}-macros
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gpg2 BuildRequires: gpg2
@@ -100,9 +98,8 @@ The source of %{name} [engine x] HTTP server and IMAP/POP3 proxy server.
%prep %prep
%autosetup -p1 %autosetup -p1
sed -i 's/\r//' contrib/geo2nginx.pl sed -i 's/\r//g' contrib/geo2nginx.pl
sed -i -e 's/USER/%{ngx_user_group}/' -e 's/GROUP/%{ngx_user_group}/' %{SOURCE4} conf/%{name}.conf sed -i -e 's|#LIBDIR#|%{_libdir}|g' -e 's|/var/run|/run|' conf/nginx.conf
sed -i -e 's|#LIBDIR#|%{_libdir}|' -e 's|/var/run|/run|' conf/%{name}.conf
sed -i 's/^\(#define NGX_LISTEN_BACKLOG \).*/\1-1/' src/os/unix/ngx_linux_config.h sed -i 's/^\(#define NGX_LISTEN_BACKLOG \).*/\1-1/' src/os/unix/ngx_linux_config.h
%build %build
@@ -120,17 +117,17 @@ install -Dpm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
rm %{buildroot}/srv/www/htdocs/{50x,index}.html rm %{buildroot}/srv/www/htdocs/index.html
mkdir -p %{buildroot}%{ngx_doc_dir} mkdir -p %{buildroot}%{ngx_doc_dir}
cp -av CHANGES* LICENSE %{buildroot}%{ngx_doc_dir} cp -av CHANGES* LICENSE %{buildroot}%{ngx_doc_dir}
mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_datadir}/%{name}/
mkdir -p %{buildroot}%{ngx_conf_dir}/vhosts.d mkdir -p %{buildroot}%{ngx_conf_dir}/vhosts.d/
mkdir -p %{buildroot}%{ngx_conf_dir}/conf.d mkdir -p %{buildroot}%{ngx_conf_dir}/conf.d/
chmod a+rx contrib/geo2nginx.pl chmod a+rx contrib/geo2nginx.pl
cp -av contrib/geo2nginx.pl contrib/unicode2nginx/ %{buildroot}%{_datadir}/%{name} cp -av contrib/geo2nginx.pl contrib/unicode2nginx/ %{buildroot}%{_datadir}/%{name}/
mkdir -p %{buildroot}%{src_install_dir} mkdir -p %{buildroot}%{src_install_dir}
tar -xzf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir} tar -xzf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir}
@@ -138,9 +135,9 @@ tar -xzf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir}
copydocs() { copydocs() {
subdir=$1; subdir=$1;
shift; shift;
mkdir -p %{buildroot}%{ngx_doc_dir}/$subdir mkdir -p %{buildroot}%{ngx_doc_dir}/$subdir/
pushd $subdir pushd $subdir
cp -av $* %{buildroot}%{ngx_doc_dir}/$subdir cp -av $* %{buildroot}%{ngx_doc_dir}/$subdir/
popd popd
} }
@@ -163,7 +160,7 @@ rm -r $GPGTMP
%service_del_postun %{name}.service %service_del_postun %{name}.service
%files %files
%dir %{ngx_conf_dir} %dir %{ngx_conf_dir}/
%dir %{ngx_conf_dir}/vhosts.d %dir %{ngx_conf_dir}/vhosts.d
%dir %{ngx_conf_dir}/conf.d %dir %{ngx_conf_dir}/conf.d
%config(noreplace) %{ngx_conf_dir}/koi-utf %config(noreplace) %{ngx_conf_dir}/koi-utf
@@ -172,7 +169,7 @@ rm -r $GPGTMP
%config %{ngx_conf_dir}/fastcgi_params.default %config %{ngx_conf_dir}/fastcgi_params.default
%config(noreplace) %{ngx_conf_dir}/mime.types %config(noreplace) %{ngx_conf_dir}/mime.types
%config %{ngx_conf_dir}/mime.types.default %config %{ngx_conf_dir}/mime.types.default
%config(noreplace) %{ngx_conf_dir}/%{name}.conf %config(noreplace) %{ngx_conf_dir}/nginx.conf
%config %{ngx_conf_dir}/%{name}.conf.default %config %{ngx_conf_dir}/%{name}.conf.default
%config(noreplace) %{ngx_conf_dir}/fastcgi.conf %config(noreplace) %{ngx_conf_dir}/fastcgi.conf
%config %{ngx_conf_dir}/fastcgi.conf.default %config %{ngx_conf_dir}/fastcgi.conf.default
@@ -181,22 +178,23 @@ rm -r $GPGTMP
%config %{ngx_conf_dir}/scgi_params.default %config %{ngx_conf_dir}/scgi_params.default
%config(noreplace) %{ngx_conf_dir}/uwsgi_params %config(noreplace) %{ngx_conf_dir}/uwsgi_params
%config %{ngx_conf_dir}/uwsgi_params.default %config %{ngx_conf_dir}/uwsgi_params.default
%{perl_vendorarch}/auto/%{name} %{perl_vendorarch}/auto/%{name}/
%{perl_vendorarch}/%{name}.pm %{perl_vendorarch}/%{name}.pm
%{ngx_sbin_path} %{ngx_sbin_path}
%dir %{_libdir}/%{name} %dir %{_libdir}/%{name}/
%dir %{ngx_module_dir} %dir %{ngx_module_dir}/
%{ngx_module_dir}/ngx_http_image_filter_module.so %{ngx_module_dir}/ngx_http_image_filter_module.so
%{ngx_module_dir}/ngx_http_perl_module.so %{ngx_module_dir}/ngx_http_perl_module.so
%{ngx_module_dir}/ngx_http_xslt_filter_module.so %{ngx_module_dir}/ngx_http_xslt_filter_module.so
%{ngx_module_dir}/ngx_mail_module.so %{ngx_module_dir}/ngx_mail_module.so
%{ngx_module_dir}/ngx_stream_module.so %{ngx_module_dir}/ngx_stream_module.so
%{_mandir}/man{3,8}/%{name}.{3pm,8}%{?ext_man} %{_mandir}/man3/%{name}.3pm*
%dir /srv/www %dir /srv/www
%dir /srv/www/htdocs %dir /srv/www/htdocs
/srv/www/htdocs/50x.html
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{_localstatedir}/log/%{name} %dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{_localstatedir}/log/nginx/
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_home} %dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_home}/
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_http} %dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_http}
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_proxy} %dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_proxy}
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_fcgi} %dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_fcgi}
@@ -205,7 +203,7 @@ rm -r $GPGTMP
%doc %{ngx_doc_dir} %doc %{ngx_doc_dir}
%{_unitdir}/%{name}.service %{_unitdir}/%{name}.service
%{_sysusersdir}/%{name}.conf %{_sysusersdir}/%{name}.conf
%{_datadir}/%{name} %{_datadir}/%{name}/
%files source %files source
%{src_install_dir} %{src_install_dir}