- Changed nginx-1.6.1-default_config.patch file (added ngx_http_fancyindex_module.so).
- Updated to 1.27.1 * https://nginx.org/en/CHANGES * Fixed crash in ngx_http_mp4_module via specially crafted mp4 file (CVE-2024-7347). * Now the stream module handler is not mandatory. * Fixed new HTTP/2 connections might ignore graceful shutdown of old worker processes. OBS-URL: https://build.opensuse.org/package/show/server:http/nginx?expand=0&rev=267
This commit is contained in:
commit
6ed1fa8c90
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
14
nginx-1.11.2-html.patch
Normal file
14
nginx-1.11.2-html.patch
Normal file
@ -0,0 +1,14 @@
|
||||
Index: nginx-1.11.2/auto/install
|
||||
===================================================================
|
||||
--- nginx-1.11.2.orig/auto/install
|
||||
+++ nginx-1.11.2/auto/install
|
||||
@@ -154,8 +154,7 @@ install: build $NGX_INSTALL_PERL_MODULES
|
||||
test -d '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`' \\
|
||||
|| mkdir -p '\$(DESTDIR)`dirname "$NGX_HTTP_LOG_PATH"`'
|
||||
|
||||
- test -d '\$(DESTDIR)$NGX_PREFIX/html' \\
|
||||
- || cp -R $NGX_HTML '\$(DESTDIR)$NGX_PREFIX'
|
||||
+ test -d '\$(DESTDIR)/srv/www/htdocs' || install -d '\$(DESTDIR)/srv/www/' && cp -r html '\$(DESTDIR)/srv/www/htdocs'
|
||||
END
|
||||
|
||||
|
26
nginx-1.11.2-no_Werror.patch
Normal file
26
nginx-1.11.2-no_Werror.patch
Normal file
@ -0,0 +1,26 @@
|
||||
Index: nginx-1.11.2/auto/cc/gcc
|
||||
===================================================================
|
||||
--- nginx-1.11.2.orig/auto/cc/gcc
|
||||
+++ nginx-1.11.2/auto/cc/gcc
|
||||
@@ -166,7 +166,7 @@ esac
|
||||
|
||||
|
||||
# stop on warning
|
||||
-CFLAGS="$CFLAGS -Werror"
|
||||
+#CFLAGS="$CFLAGS -Werror"
|
||||
|
||||
# debug
|
||||
CFLAGS="$CFLAGS -g"
|
||||
Index: nginx-1.11.2/auto/cc/icc
|
||||
===================================================================
|
||||
--- nginx-1.11.2.orig/auto/cc/icc
|
||||
+++ nginx-1.11.2/auto/cc/icc
|
||||
@@ -111,7 +111,7 @@ case "$NGX_ICC_VER" in
|
||||
esac
|
||||
|
||||
# stop on warning
|
||||
-CFLAGS="$CFLAGS -Werror"
|
||||
+#CFLAGS="$CFLAGS -Werror"
|
||||
|
||||
# debug
|
||||
CFLAGS="$CFLAGS -g"
|
13
nginx-1.2.4-perl_vendor_install.patch
Normal file
13
nginx-1.2.4-perl_vendor_install.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: auto/install
|
||||
===================================================================
|
||||
--- auto/install.orig
|
||||
+++ auto/install
|
||||
@@ -8,7 +8,7 @@ if [ $USE_PERL = YES ]; then
|
||||
cat << END >> $NGX_MAKEFILE
|
||||
|
||||
install_perl_modules:
|
||||
- cd $NGX_OBJS/src/http/modules/perl && \$(MAKE) install
|
||||
+ cd $NGX_OBJS/src/http/modules/perl && \$(MAKE) install_vendor
|
||||
END
|
||||
|
||||
NGX_INSTALL_PERL_MODULES=install_perl_modules
|
3
nginx-1.27.0.tar.gz
Normal file
3
nginx-1.27.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b7230e3cf87eaa2d4b0bc56aadc920a960c7873b9991a1b66ffcc08fc650129c
|
||||
size 1244887
|
17
nginx-1.27.0.tar.gz.asc
Normal file
17
nginx-1.27.0.tar.gz.asc
Normal file
@ -0,0 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJHBAABCAAxFiEE1nhs4wPZqQIpmNxsyEZNVJr3XAoFAmZXPGwTHHMua2FuZGF1
|
||||
cm92QGY1LmNvbQAKCRDIRk1UmvdcCuP2EACiocOUQaVfOWCfm01ZA47KcW02UUNk
|
||||
U8gIZD4iu6ENVKw6ZwO3CpKpwnhixfmNnvKfsYdV+clgLtSk2F5ism82uXSDR4Bs
|
||||
K8q8SSFnCRltUf9AAddF7fEW3PyWlSW94cICAQLaVBOiRlSmg4ats/pdMR/9za0C
|
||||
0cg8nCnR3xiFr2LAqZgKXUkC1J3XNIg3r8v2YD1mAURi3h//w4UfNOvJ8/dhIDFy
|
||||
+SJuaA8uRjS2T1tEhXd91qqmxyfXliR+aYo4PGtpWp+rlFoOZK8jJK3ux0KmlgSr
|
||||
FpqCIV9uwOt9Ha29bdn8/R0LYnmozoVMkfWjAg6U4pUNXHq8x1TURGahy/TtxqLl
|
||||
F3H3lz39ioNvLqpSr83B+LKsKXgyjfIe+3JJf6GNPQDjdZyEdK78TLl2fDNZA4Pw
|
||||
Q3miCdUnGk/FwcJUVsC8pPCTFDGvnesR5+oXRQe1WhSY7mvv86QMbD6H6MteXq87
|
||||
dY96qleMIw2VS3VYNqmMaGJoRL/DJyYQF1ChdiNN5bqJBJMrrtNjDFDzJrMOcIrD
|
||||
w/L40pgZy7HOPX6Tbd5aV8yc32y7AM59Mttibarc+N8qYyQeUOOAt+3sw4aL0/WC
|
||||
zZznDF4Gj6Pbi9rn4L4RD6Bt5pLal6y4Y4M2m34/x4mfhbFQUnmwzu+F4kD83a9p
|
||||
cfoao+a5Gr4Plw==
|
||||
=SMAJ
|
||||
-----END PGP SIGNATURE-----
|
3
nginx-1.27.1.tar.gz
Normal file
3
nginx-1.27.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:bd7ba68a6ce1ea3768b771c7e2ab4955a59fb1b1ae8d554fedb6c2304104bdfc
|
||||
size 1245244
|
17
nginx-1.27.1.tar.gz.asc
Normal file
17
nginx-1.27.1.tar.gz.asc
Normal file
@ -0,0 +1,17 @@
|
||||
-----BEGIN PGP SIGNATURE-----
|
||||
|
||||
iQJHBAABCAAxFiEE1nhs4wPZqQIpmNxsyEZNVJr3XAoFAma7Vi8THHMua2FuZGF1
|
||||
cm92QGY1LmNvbQAKCRDIRk1UmvdcCtRUEACjv3LHnzN3J1c6h5C9cKTjIIKa4PgA
|
||||
fM8o41QenN6HMQ8a0ww8zH2zdDUxVr9OgNBV0sqtsL5SX+BuMTjGC75M5qgk45yd
|
||||
E6FMk2tJ69wVqmN1zP5sYV5n7dmt89mh7W3J3lO4XpgqCQcogmmyMg+1Z9vvO4Nt
|
||||
VvYO7w45oEqc5rb7IjWtktNS3jjf2Kat6azhOvrbMjuCUt/pOBJiM11diLmURtEx
|
||||
xE5It7bFwoywJUtjF7XUMeOGljH5VnxTLuIlq/5FkAYklu484B2iLHidhCLfq7g7
|
||||
9FJO3XatFrRefA7ryawZ9AnQtrLIt0YZdIEweoOxp16kj3mCmqhF/aeBNAcnQUAM
|
||||
EZLX/BBYA6cog8YuWffan9G5EYvul0tdXK5DQF8vUjBfw54aI4YnA5TDtSMniBEJ
|
||||
SJrUCbKazGFwd+K94IrGD8EwypEC+M3gQovNn34NikLr1Xe8Uz3i2x7y0OgYxbUh
|
||||
hH+ilD5XS0bHfueydYIKl85muwFtiIs3b0EhfvGf4z5d2DmvZ3/cYxjYpzZG0r7L
|
||||
WckCqgj2uVXvR3phDqpm0aNd8C+4sho+PQmXon8PbIpjuVLvQhz0XiH6D7H61wks
|
||||
XWNvBFHNjeBJYjaZQQ/2kAKfdwdpYTYvDd3Rlnscn3BNQvu9prWUDCYiNHMnNnOB
|
||||
ueop2LrbK54ogg==
|
||||
=bwlL
|
||||
-----END PGP SIGNATURE-----
|
117
nginx-1.6.1-default_config.patch
Normal file
117
nginx-1.6.1-default_config.patch
Normal file
@ -0,0 +1,117 @@
|
||||
Index: conf/nginx.conf
|
||||
===================================================================
|
||||
--- conf/nginx.conf.orig
|
||||
+++ conf/nginx.conf
|
||||
@@ -1,16 +1,26 @@
|
||||
|
||||
-#user nobody;
|
||||
+#user nginx;
|
||||
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_fancyindex_module.so;
|
||||
+# load_module #LIBDIR#/nginx/modules/ngx_http_image_filter_module.so;
|
||||
+# load_module #LIBDIR#/nginx/modules/ngx_http_lua_module.so;
|
||||
+# load_module #LIBDIR#/nginx/modules/ngx_http_perl_module.so;
|
||||
+# load_module #LIBDIR#/nginx/modules/ngx_http_xslt_filter_module.so;
|
||||
+# load_module #LIBDIR#/nginx/modules/ngx_mail_module.so;
|
||||
+# load_module #LIBDIR#/nginx/modules/ngx_stream_module.so;
|
||||
+
|
||||
+#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;
|
||||
|
||||
|
||||
events {
|
||||
worker_connections 1024;
|
||||
+ use epoll;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +32,7 @@ http {
|
||||
# '$status $body_bytes_sent "$http_referer" '
|
||||
# '"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
- #access_log logs/access.log main;
|
||||
+ #access_log /var/log/nginx/access.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
@@ -32,16 +42,18 @@ http {
|
||||
|
||||
#gzip on;
|
||||
|
||||
+ include conf.d/*.conf;
|
||||
+
|
||||
server {
|
||||
listen 80;
|
||||
server_name localhost;
|
||||
|
||||
#charset koi8-r;
|
||||
|
||||
- #access_log logs/host.access.log main;
|
||||
+ #access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
location / {
|
||||
- root html;
|
||||
+ root /srv/www/htdocs/;
|
||||
index index.html index.htm;
|
||||
}
|
||||
|
||||
@@ -51,7 +63,7 @@ http {
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
- root html;
|
||||
+ root /srv/www/htdocs/;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
@@ -63,7 +75,7 @@ http {
|
||||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
- # root html;
|
||||
+ # root /srv/www/htdocs/;
|
||||
# fastcgi_pass 127.0.0.1:9000;
|
||||
# fastcgi_index index.php;
|
||||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||
@@ -87,7 +99,7 @@ http {
|
||||
# server_name somename alias another.alias;
|
||||
|
||||
# location / {
|
||||
- # root html;
|
||||
+ # root /srv/www/htdocs/;
|
||||
# index index.html index.htm;
|
||||
# }
|
||||
#}
|
||||
@@ -102,6 +114,10 @@ http {
|
||||
# ssl_certificate cert.pem;
|
||||
# ssl_certificate_key cert.key;
|
||||
|
||||
+ # 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;
|
||||
|
||||
@@ -109,9 +125,11 @@ http {
|
||||
# ssl_prefer_server_ciphers on;
|
||||
|
||||
# location / {
|
||||
- # root html;
|
||||
+ # root /srv/www/htdocs/;
|
||||
# index index.html index.htm;
|
||||
# }
|
||||
#}
|
||||
|
||||
+ include vhosts.d/*.conf;
|
||||
+
|
||||
}
|
45
nginx-aio.patch
Normal file
45
nginx-aio.patch
Normal file
@ -0,0 +1,45 @@
|
||||
Index: nginx-1.19.1/auto/unix
|
||||
===================================================================
|
||||
--- nginx-1.19.1.orig/auto/unix
|
||||
+++ nginx-1.19.1/auto/unix
|
||||
@@ -559,7 +559,12 @@ if [ $NGX_FILE_AIO = YES ]; then
|
||||
ngx_feature="Linux AIO support (SYS_eventfd)"
|
||||
ngx_feature_incs="#include <linux/aio_abi.h>
|
||||
#include <sys/syscall.h>"
|
||||
- ngx_feature_test="struct iocb iocb;
|
||||
+ ngx_feature_test="#ifdef SYS_eventfd
|
||||
+ int n = SYS_eventfd;
|
||||
+ #else
|
||||
+ int n = SYS_eventfd2;
|
||||
+ #endif
|
||||
+ struct iocb iocb;
|
||||
iocb.aio_lio_opcode = IOCB_CMD_PREAD;
|
||||
iocb.aio_flags = IOCB_FLAG_RESFD;
|
||||
iocb.aio_resfd = -1;
|
||||
Index: nginx-1.19.1/src/event/modules/ngx_epoll_module.c
|
||||
===================================================================
|
||||
--- nginx-1.19.1.orig/src/event/modules/ngx_epoll_module.c
|
||||
+++ nginx-1.19.1/src/event/modules/ngx_epoll_module.c
|
||||
@@ -77,9 +77,7 @@ int epoll_wait(int epfd, struct epoll_ev
|
||||
|
||||
#if (NGX_HAVE_FILE_AIO)
|
||||
|
||||
-#define SYS_io_setup 245
|
||||
-#define SYS_io_destroy 246
|
||||
-#define SYS_io_getevents 247
|
||||
+#include <sys/syscall.h>
|
||||
|
||||
typedef u_int aio_context_t;
|
||||
|
||||
@@ -254,7 +252,11 @@ ngx_epoll_aio_init(ngx_cycle_t *cycle, n
|
||||
#if (NGX_HAVE_SYS_EVENTFD_H)
|
||||
ngx_eventfd = eventfd(0, 0);
|
||||
#else
|
||||
+#ifdef SYS_eventfd
|
||||
ngx_eventfd = syscall(SYS_eventfd, 0);
|
||||
+#else
|
||||
+ ngx_eventfd = syscall(SYS_eventfd2, 0, 0);
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
if (ngx_eventfd == -1) {
|
2810
nginx.changes
Normal file
2810
nginx.changes
Normal file
File diff suppressed because it is too large
Load Diff
65
nginx.keyring
Normal file
65
nginx.keyring
Normal file
@ -0,0 +1,65 @@
|
||||
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||
|
||||
mQINBGKE4psBEADpHSM/IxFD1nXBmnODYXzcl2A+6b6m9m1m2Y4Dlr0ed+y5Lxne
|
||||
QidE9I74A2KSm6+eHW2yh4i1ZwZbmwpmQqM+j5BMt7axoXOdKSyN+fYtUakzNbBN
|
||||
EDRKT79q/zIzkgTJradHkCQkwF1W3go+qPXjR2ZEnLma9dZED9VNI6PmOpeYaASo
|
||||
IkEfbKbwa/vPrvnDSSYY6Y02RXSRk5U1NvQgVUTJP9WGK7NlPUcTBDELLQv6fFPU
|
||||
kjBOel6MecsQ+v8iq4RJF2cbVF0hNjbAiNldjLV74Xd7yWVRlCbdb2agyvQjMNrD
|
||||
jHSvbEMiNB3R8yBHVW2Zldv8q0XjcwoDfdiZYFJe3lRUYmv6I2p+/DptD4r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bb
|
||||
mm0wLI2OXl/m7l5QAr7kErnPvGNzcbX6G35Q/MY8mumBWQ9H53R5ZPpi+OS40Wfn
|
||||
pZNKdh/Acwa7+2RokPqoOcJfxVdBOUigXTzb45qZgqEsSR7bkZAy2E80A/sJKPqs
|
||||
OGjp9cog3rBYyNBn5dasfR9KeBtluKnjUbzutXsQoKUSECY00YGrtneSXMku5hoE
|
||||
Dguk68w/L63ZApYHO/JTgJAYvqPOErAVUegPIw2CT1/2qi5vpClBcKkNS7RXrssA
|
||||
X+lElE0zbzX3bNG+lQuXby7jNUFYltkEiz6vTtc4HuHy8u40DHMswzkoDr0T8IE0
|
||||
7ZRAWXwV1nlA/dI337cHCsWMJyqem5wZZO13iqe07qaCg1uvBPeqDo81hOCn1us7
|
||||
l5SYRUTlt7KSFEHZ+Sx4bmVneAuRi5okaQdmrepy/ss/vVpRwWuQxsPkvT8boS7s
|
||||
mqOVsZFcNOuUJPUyOz1dHUL6FMYpk1dw+9n41gO4fLBzJekFTB/fxL6SRbYFWWn7
|
||||
x0VGHDmuaYQ=
|
||||
=HmVo
|
||||
-----END PGP PUBLIC KEY BLOCK-----
|
14
nginx.logrotate
Normal file
14
nginx.logrotate
Normal file
@ -0,0 +1,14 @@
|
||||
/var/log/nginx/*.log {
|
||||
compress
|
||||
dateext
|
||||
maxage 365
|
||||
rotate 99
|
||||
size=+4096k
|
||||
missingok
|
||||
notifempty
|
||||
delaycompress
|
||||
lastaction
|
||||
# "-s reopen" will use the pid file passed in the config file or the compiled in default path
|
||||
[ -f /run/nginx.pid ] && /usr/sbin/nginx -s reopen
|
||||
endscript
|
||||
}
|
5
nginx.rpmlintrc
Normal file
5
nginx.rpmlintrc
Normal file
@ -0,0 +1,5 @@
|
||||
# user nginx needs write permissions to /var/log/nginx so nginx is able to reopen the logs
|
||||
addFilter("nginx.*: W: suse-logrotate-user-writable-log-dir /var/log/nginx nginx:nginx 0750")
|
||||
# nginx sources need to be installed in /usr/src/nginx
|
||||
addFilter("nginx.* W: suse-filelist-forbidden-fhs23 /usr/src/nginx")
|
||||
|
31
nginx.service
Normal file
31
nginx.service
Normal file
@ -0,0 +1,31 @@
|
||||
[Unit]
|
||||
Description=The nginx HTTP and reverse proxy server
|
||||
After=network-online.target remote-fs.target nss-lookup.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
RuntimeDirectory=nginx
|
||||
PIDFile=/run/nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t
|
||||
ExecStart=/usr/sbin/nginx -g "daemon off;"
|
||||
ExecReload=/bin/kill -s HUP $MAINPID
|
||||
KillSignal=SIGQUIT
|
||||
TimeoutStopSec=5
|
||||
KillMode=mixed
|
||||
PrivateTmp=true
|
||||
# added automatically, for details please see
|
||||
# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
|
||||
ProtectSystem=full
|
||||
ProtectHome=read-only
|
||||
PrivateDevices=true
|
||||
ProtectHostname=true
|
||||
ProtectClock=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectKernelModules=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectControlGroups=true
|
||||
RestrictRealtime=true
|
||||
# end of automatic additions
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
218
nginx.spec
Normal file
218
nginx.spec
Normal file
@ -0,0 +1,218 @@
|
||||
#
|
||||
# spec file for package nginx
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
%{!?vim_data_dir:%global vim_data_dir %{_datadir}/vim/%(readlink %{_datadir}/vim/current)}
|
||||
%define src_install_dir %{_prefix}/src/%{name}
|
||||
# keep in sync with #ngx_conditionals
|
||||
%bcond_with ngx_cpp_test
|
||||
%bcond_with ngx_google_perftools
|
||||
#
|
||||
Name: nginx
|
||||
Version: 1.27.1
|
||||
Release: 0
|
||||
Summary: A HTTP server and IMAP/POP3 proxy server
|
||||
License: BSD-2-Clause
|
||||
Group: Productivity/Networking/Web/Proxy
|
||||
URL: https://nginx.org
|
||||
Source0: https://nginx.org/download/%{name}-%{version}.tar.gz
|
||||
Source1: https://nginx.org/download/%{name}-%{version}.tar.gz.asc
|
||||
Source2: https://nginx.org/keys/pluknet.key#/%{name}.keyring
|
||||
Source3: %{name}.rpmlintrc
|
||||
Source4: %{name}.logrotate
|
||||
Source5: %{name}.service
|
||||
Source6: %{name}.sysusers
|
||||
# PATCH-FIX-UPSTREAM nginx-1.11.2-no_Werror.patch
|
||||
Patch0: %{name}-1.11.2-no_Werror.patch
|
||||
# PATCH-FIX-OPENSUSE nginx-1.11.2-html.patch
|
||||
Patch1: %{name}-1.11.2-html.patch
|
||||
# PATCH-FIX-UPSTREAM nginx-1.2.4-perl_vendor_install.patch
|
||||
Patch2: %{name}-1.2.4-perl_vendor_install.patch
|
||||
# PATCH-FIX-UPSTREAM fix /etc/nginx/nginx.conf to suit Linux env
|
||||
Patch3: %{name}-1.6.1-default_config.patch
|
||||
# PATCH-FIX-UPSTREAM nginx-aio.patch fix support for Linux AIO
|
||||
Patch4: %{name}-aio.patch
|
||||
BuildRequires: %{name}-macros
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libatomic-ops-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: sysuser-shadow
|
||||
BuildRequires: sysuser-tools
|
||||
BuildRequires: vim
|
||||
BuildRequires: pkgconfig(gdlib)
|
||||
BuildRequires: pkgconfig(libpcre2-8)
|
||||
BuildRequires: pkgconfig(libxslt)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(systemd)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
%requires_eq perl
|
||||
Recommends: %{name}-module-echo
|
||||
Recommends: %{name}-module-lua
|
||||
Recommends: logrotate
|
||||
Provides: http_daemon
|
||||
Provides: httpd
|
||||
%{?systemd_ordering}
|
||||
%sysusers_requires
|
||||
#
|
||||
%if %{with ngx_google_perftools}
|
||||
BuildRequires: google-perftools-devel
|
||||
%endif
|
||||
|
||||
%description
|
||||
%{name} [engine x] is a HTTP server and IMAP/POP3 proxy server written by Igor Sysoev.
|
||||
It has been running on many heavily loaded Russian sites for more than two years.
|
||||
|
||||
%package source
|
||||
Summary: The nginx source
|
||||
Group: Development/Sources
|
||||
Requires: gcc-c++
|
||||
Requires: libatomic-ops-devel
|
||||
Requires: nginx = %{version}
|
||||
Requires: pkgconfig
|
||||
Requires: vim
|
||||
Requires: pkgconfig(gdlib)
|
||||
Requires: pkgconfig(libpcre2-8)
|
||||
Requires: pkgconfig(libxslt)
|
||||
Requires: pkgconfig(openssl)
|
||||
Requires: pkgconfig(zlib)
|
||||
%requires_ge %{name}-macros
|
||||
BuildArch: noarch
|
||||
|
||||
%description source
|
||||
The source of %{name} [engine x] HTTP server and IMAP/POP3 proxy server.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch -P 0 -p1
|
||||
%patch -P 1 -p1
|
||||
%patch -P 2
|
||||
%patch -P 3
|
||||
%patch -P 4 -p1
|
||||
|
||||
perl -pi -e 's|\r\n|\n|g' contrib/geo2nginx.pl
|
||||
# we just use lib here because nginx loads them relative to _prefix
|
||||
perl -pi -e 's|#LIBDIR#|%{_lib}|g' conf/nginx.conf
|
||||
|
||||
%if %{with systemd}
|
||||
sed -i "s/\/var\/run/\/run/" conf/nginx.conf
|
||||
%endif
|
||||
|
||||
sed -i 's/^\(#define NGX_LISTEN_BACKLOG \).*/\1-1/' src/os/unix/ngx_linux_config.h
|
||||
|
||||
%build
|
||||
%{ngx_configure}
|
||||
|
||||
%make_build
|
||||
%sysusers_generate_pre %{SOURCE6} %{name} %{name}.conf
|
||||
|
||||
%install
|
||||
%make_install
|
||||
%perl_process_packlist
|
||||
|
||||
install -dpm0750 %{buildroot}%{ngx_home}/{,tmp,proxy,fastcgi,scgi,uwsgi}
|
||||
install -Dpm0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
|
||||
install -Dpm0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
|
||||
install -Dpm0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
|
||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
||||
|
||||
rm %{buildroot}/srv/www/htdocs/index.html
|
||||
|
||||
mkdir -p %{buildroot}%{ngx_doc_dir}
|
||||
cp -av CHANGES* LICENSE \
|
||||
%{buildroot}%{ngx_doc_dir}
|
||||
|
||||
mkdir -p %{buildroot}%{_datadir}/%{name}/
|
||||
mkdir -p %{buildroot}%{ngx_conf_dir}/vhosts.d/
|
||||
mkdir -p %{buildroot}%{ngx_conf_dir}/conf.d/
|
||||
|
||||
chmod a+rx contrib/geo2nginx.pl
|
||||
cp -av contrib/geo2nginx.pl contrib/unicode2nginx/ \
|
||||
%{buildroot}%{_datadir}/%{name}/
|
||||
|
||||
mkdir -p %{buildroot}%{src_install_dir}
|
||||
tar -xzf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir}
|
||||
|
||||
copydocs() {
|
||||
subdir=$1;
|
||||
shift;
|
||||
mkdir -p %{buildroot}%{ngx_doc_dir}/$subdir/
|
||||
pushd $subdir
|
||||
cp -av $* %{buildroot}%{ngx_doc_dir}/$subdir/
|
||||
popd
|
||||
}
|
||||
|
||||
%pre -f %{name}.pre
|
||||
%service_add_pre %{name}.service
|
||||
|
||||
%preun
|
||||
%service_del_preun %{name}.service
|
||||
|
||||
%post
|
||||
%service_add_post %{name}.service
|
||||
|
||||
%postun
|
||||
%service_del_postun %{name}.service
|
||||
|
||||
%files
|
||||
%dir %{ngx_conf_dir}/
|
||||
%dir %{ngx_conf_dir}/vhosts.d
|
||||
%dir %{ngx_conf_dir}/conf.d
|
||||
%config(noreplace) %{ngx_conf_dir}/koi-utf
|
||||
%config(noreplace) %{ngx_conf_dir}/koi-win
|
||||
%config(noreplace) %{ngx_conf_dir}/fastcgi_params
|
||||
%config %{ngx_conf_dir}/fastcgi_params.default
|
||||
%config(noreplace) %{ngx_conf_dir}/mime.types
|
||||
%config %{ngx_conf_dir}/mime.types.default
|
||||
%config(noreplace) %{ngx_conf_dir}/nginx.conf
|
||||
%config %{ngx_conf_dir}/%{name}.conf.default
|
||||
%config(noreplace) %{ngx_conf_dir}/fastcgi.conf
|
||||
%config %{ngx_conf_dir}/fastcgi.conf.default
|
||||
%config(noreplace) %{ngx_conf_dir}/win-utf
|
||||
%config(noreplace) %{ngx_conf_dir}/scgi_params
|
||||
%config %{ngx_conf_dir}/scgi_params.default
|
||||
%config(noreplace) %{ngx_conf_dir}/uwsgi_params
|
||||
%config %{ngx_conf_dir}/uwsgi_params.default
|
||||
%{perl_vendorarch}/auto/%{name}/
|
||||
%{perl_vendorarch}/%{name}.pm
|
||||
%{ngx_sbin_path}
|
||||
%dir %{_libdir}/%{name}/
|
||||
%dir %{ngx_module_dir}/
|
||||
%{ngx_module_dir}/ngx_http_image_filter_module.so
|
||||
%{ngx_module_dir}/ngx_http_perl_module.so
|
||||
%{ngx_module_dir}/ngx_http_xslt_filter_module.so
|
||||
%{ngx_module_dir}/ngx_mail_module.so
|
||||
%{ngx_module_dir}/ngx_stream_module.so
|
||||
%{_mandir}/man3/%{name}.3pm*
|
||||
/srv/www/htdocs/50x.html
|
||||
%{_sbindir}/rc%{name}
|
||||
%config(noreplace) %{_sysconfdir}/logrotate.d/%{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_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_fcgi}
|
||||
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_scgi}
|
||||
%dir %attr(750,%{ngx_user_group},%{ngx_user_group}) %{ngx_tmp_uwsgi}
|
||||
%doc %{ngx_doc_dir}
|
||||
%{_unitdir}/%{name}.service
|
||||
%{_sysusersdir}/%{name}.conf
|
||||
%{_datadir}/%{name}/
|
||||
|
||||
%files source
|
||||
%{src_install_dir}
|
||||
|
||||
%changelog
|
2
nginx.sysusers
Normal file
2
nginx.sysusers
Normal file
@ -0,0 +1,2 @@
|
||||
# Type Name ID GECOS [HOME]
|
||||
u nginx - "User for nginx" /var/lib/nginx
|
Loading…
Reference in New Issue
Block a user