http-upload module added to nginx
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
%global with_vts_module 1
|
%global with_vts_module 1
|
||||||
%global with_header_more_module 1
|
%global with_header_more_module 1
|
||||||
%global with_set_misc_module 1
|
%global with_set_misc_module 1
|
||||||
|
%global with_http_upload_module 1
|
||||||
%global modsecver 3.0.2
|
%global modsecver 3.0.2
|
||||||
%global vtsversion 0.1.18
|
%global vtsversion 0.1.18
|
||||||
%global headervers 0.33
|
%global headervers 0.33
|
||||||
@@ -44,6 +45,7 @@ Source15: headers-more-nginx-module-%{headervers}.tar.gz
|
|||||||
Source16: set-misc-nginx-module.tar.gz
|
Source16: set-misc-nginx-module.tar.gz
|
||||||
Source17: ngx_devel_kit.tar.gz
|
Source17: ngx_devel_kit.tar.gz
|
||||||
Source18: echo-nginx-module-%{mod_echo_vers}.tar.gz
|
Source18: echo-nginx-module-%{mod_echo_vers}.tar.gz
|
||||||
|
Source30: nginx-upload-module.tar.gz
|
||||||
Source100: index.html
|
Source100: index.html
|
||||||
Source101: poweredby.png
|
Source101: poweredby.png
|
||||||
Source102: nginx-logo.png
|
Source102: nginx-logo.png
|
||||||
@@ -205,6 +207,16 @@ Requires: nginx
|
|||||||
Nginx ndk module
|
Nginx ndk module
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_http_upload_module}
|
||||||
|
%package mod-http-upload
|
||||||
|
Group: System Environment/Daemons
|
||||||
|
Summary: Nginx http upload module
|
||||||
|
Requires: nginx
|
||||||
|
|
||||||
|
%description mod-http-upload
|
||||||
|
Nginx http upload module
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_vts_module}
|
%if 0%{?with_vts_module}
|
||||||
%package mod-vts
|
%package mod-vts
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
@@ -274,6 +286,9 @@ Echo module for nginx
|
|||||||
%setup -q -b 16 -n set-misc-nginx-module-master
|
%setup -q -b 16 -n set-misc-nginx-module-master
|
||||||
%setup -q -b 17 -n ngx_devel_kit-master
|
%setup -q -b 17 -n ngx_devel_kit-master
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?with_http_upload_module}
|
||||||
|
%setup -q -b 30 -n nginx-upload-module
|
||||||
|
%endif
|
||||||
%if 0%{?with_echo_module}
|
%if 0%{?with_echo_module}
|
||||||
%setup -q -b 18 -n echo-nginx-module-%{mod_echo_vers}
|
%setup -q -b 18 -n echo-nginx-module-%{mod_echo_vers}
|
||||||
%endif
|
%endif
|
||||||
@@ -359,6 +374,9 @@ if ! ./configure \
|
|||||||
%if 0%{?with_set_misc_module}
|
%if 0%{?with_set_misc_module}
|
||||||
--add-dynamic-module=%{_builddir}/ngx_devel_kit-master \
|
--add-dynamic-module=%{_builddir}/ngx_devel_kit-master \
|
||||||
--add-dynamic-module=%{_builddir}/set-misc-nginx-module-master \
|
--add-dynamic-module=%{_builddir}/set-misc-nginx-module-master \
|
||||||
|
%if 0%{?with_http_upload_module}
|
||||||
|
--add-dynamic-module=%{_builddir}/nginx-upload-module \
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
--with-debug \
|
--with-debug \
|
||||||
--with-threads \
|
--with-threads \
|
||||||
@@ -468,6 +486,10 @@ echo 'load_module "%{_libdir}/nginx/modules/ndk_http_module.so";' \
|
|||||||
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_set_misc_module.so";' \
|
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_set_misc_module.so";' \
|
||||||
>> %{buildroot}%{_datadir}/nginx/modules/mod-set-misc.conf
|
>> %{buildroot}%{_datadir}/nginx/modules/mod-set-misc.conf
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?with_http_upload_module}
|
||||||
|
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_upload_module.so";' \
|
||||||
|
> %{buildroot}%{_datadir}/nginx/modules/mod-http-upload.conf
|
||||||
|
%endif
|
||||||
|
|
||||||
%pre filesystem
|
%pre filesystem
|
||||||
getent group %{nginx_user} > /dev/null || groupadd -r %{nginx_user}
|
getent group %{nginx_user} > /dev/null || groupadd -r %{nginx_user}
|
||||||
@@ -551,6 +573,13 @@ if [ $1 -eq 1 ]; then
|
|||||||
fi
|
fi
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_http_upload_module}
|
||||||
|
%post mod-http-upload
|
||||||
|
if [ $1 -eq 1 ]; then
|
||||||
|
/usr/bin/systemctl reload nginx.service >/dev/null 2>&1 || :
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun nginx.service
|
%systemd_preun nginx.service
|
||||||
|
|
||||||
@@ -665,6 +694,12 @@ fi
|
|||||||
%{_libdir}/nginx/modules/ndk_http_module.so
|
%{_libdir}/nginx/modules/ndk_http_module.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?with_http_upload_module}
|
||||||
|
%files mod-http-upload
|
||||||
|
%{_datadir}/nginx/modules/mod-http-upload.conf
|
||||||
|
%{_libdir}/nginx/modules/ngx_http_upload_module.so
|
||||||
|
%endif
|
||||||
|
|
||||||
%if 0%{?with_modsecurity_module}
|
%if 0%{?with_modsecurity_module}
|
||||||
%files mod-security
|
%files mod-security
|
||||||
%{_defaultdocdir}/%{name}-mod-security/*
|
%{_defaultdocdir}/%{name}-mod-security/*
|
||||||
@@ -680,6 +715,9 @@ fi
|
|||||||
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
[ "%{_builddir}" != "/" ] && [ -d "%{_builddir}" ] && rm -rf %{_builddir}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Oct 19 2021 Daniel Steiner <daniel.steiner@threema.ch>
|
||||||
|
- Nginx upload module added.
|
||||||
|
|
||||||
* Tue Oct 12 2021 Daniel Steiner <daniel.steiner@threema.ch>
|
* Tue Oct 12 2021 Daniel Steiner <daniel.steiner@threema.ch>
|
||||||
- Upadate to mainline version 1.20.1.
|
- Upadate to mainline version 1.20.1.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user