package created using the webbuild interface [release 1.15.5-1mamba;Sat Oct 06 2018]
This commit is contained in:
parent
b216eaf7b3
commit
6e5ac0ad71
@ -1,2 +1,4 @@
|
||||
# nginx
|
||||
|
||||
High Performance Load Balancer, Web Server and Reverse Proxy.
|
||||
|
||||
|
15
nginx.service
Normal file
15
nginx.service
Normal file
@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=The NGINX HTTP and reverse proxy server
|
||||
After=syslog.target network.target remote-fs.target nss-lookup.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/run/nginx.pid
|
||||
ExecStartPre=/usr/sbin/nginx -t
|
||||
ExecStart=/usr/sbin/nginx
|
||||
ExecReload=/usr/sbin/nginx -s reload
|
||||
ExecStop=/bin/kill -s QUIT $MAINPID
|
||||
PrivateTmp=true
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
139
nginx.spec
Normal file
139
nginx.spec
Normal file
@ -0,0 +1,139 @@
|
||||
Name: nginx
|
||||
Version: 1.15.5
|
||||
Release: 1mamba
|
||||
Summary: High Performance Load Balancer, Web Server and Reverse Proxy
|
||||
Group: System/Servers
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://nginx.org/
|
||||
## GITSOURCE https://github.com/nginx/nginx.git release-1.15.5
|
||||
Source: https://github.com/nginx/nginx.git/release-%{version}/nginx-%{version}.tar.bz2
|
||||
Source1: nginx.service
|
||||
License: BSD
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libGeoIP-devel
|
||||
BuildRequires: libgd-devel
|
||||
BuildRequires: libnsl-devel
|
||||
BuildRequires: libopenssl-devel
|
||||
BuildRequires: libpcre-devel
|
||||
BuildRequires: libperl
|
||||
BuildRequires: libxml2-devel
|
||||
BuildRequires: libxslt-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: perl-devel
|
||||
## AUTOBUILDREQ-END
|
||||
%systemd_requires
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
High Performance Load Balancer, Web Server and Reverse Proxy.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%build
|
||||
auto/configure \
|
||||
--prefix=%{_localstatedir}/www/nginx \
|
||||
--sbin-path=%{_sbindir}/nginx \
|
||||
--conf-path=%{_sysconfdir}/nginx/nginx.conf \
|
||||
--modules-path=%{_libdir}/nginx/ \
|
||||
--error-log-path=%{_localstatedir}/log/nginx/error_log \
|
||||
--http-log-path=%{_localstatedir}/log/nginx/access_log \
|
||||
--pid-path=/run/nginx.pid \
|
||||
--with-select_module \
|
||||
--with-poll_module \
|
||||
--with-http_ssl_module \
|
||||
--with-http_v2_module \
|
||||
--with-http_realip_module \
|
||||
--with-http_addition_module \
|
||||
--with-http_xslt_module=dynamic \
|
||||
--with-http_image_filter_module=dynamic \
|
||||
--with-http_geoip_module=dynamic \
|
||||
--with-http_sub_module \
|
||||
--with-http_dav_module \
|
||||
--with-http_flv_module \
|
||||
--with-http_mp4_module \
|
||||
--with-http_gunzip_module \
|
||||
--with-http_gzip_static_module \
|
||||
--with-http_auth_request_module \
|
||||
--with-http_random_index_module \
|
||||
--with-http_secure_link_module \
|
||||
--with-http_degradation_module \
|
||||
--with-http_slice_module \
|
||||
--with-http_stub_status_module \
|
||||
--with-http_perl_module=dynamic \
|
||||
--with-mail=dynamic \
|
||||
--with-mail_ssl_module \
|
||||
--with-stream=dynamic \
|
||||
--with-stream_ssl_module \
|
||||
--with-stream_realip_module \
|
||||
--with-stream_geoip_module=dynamic \
|
||||
--with-stream_ssl_preread_module
|
||||
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall
|
||||
|
||||
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/nginx.service
|
||||
|
||||
find %{buildroot} -type f -name perllocal.pod -exec rm -f {} ';'
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%post
|
||||
%systemd_post nginx
|
||||
:
|
||||
|
||||
%preun
|
||||
%systemd_preun nginx
|
||||
:
|
||||
|
||||
%postun
|
||||
%systemd_postun nginx
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%dir %{_sysconfdir}/nginx
|
||||
%config(noreplace) %{_sysconfdir}/nginx/fastcgi.conf
|
||||
%{_sysconfdir}/nginx/fastcgi.conf.default
|
||||
%config(noreplace) %{_sysconfdir}/nginx/fastcgi_params
|
||||
%{_sysconfdir}/nginx/fastcgi_params.default
|
||||
%{_sysconfdir}/nginx/koi-utf
|
||||
%{_sysconfdir}/nginx/koi-win
|
||||
%config(noreplace) %{_sysconfdir}/nginx/mime.types
|
||||
%{_sysconfdir}/nginx/mime.types.default
|
||||
%config(noreplace) %{_sysconfdir}/nginx/nginx.conf
|
||||
%{_sysconfdir}/nginx/nginx.conf.default
|
||||
%config(noreplace) %{_sysconfdir}/nginx/scgi_params
|
||||
%{_sysconfdir}/nginx/scgi_params.default
|
||||
%config(noreplace) %{_sysconfdir}/nginx/uwsgi_params
|
||||
%{_sysconfdir}/nginx/uwsgi_params.default
|
||||
%{_sysconfdir}/nginx/win-utf
|
||||
%{_sbindir}/nginx
|
||||
%{_unitdir}/nginx.service
|
||||
%dir %{_libdir}/nginx
|
||||
%{_libdir}/nginx/ngx_mail_module.so
|
||||
%{_libdir}/nginx/ngx_stream_module.so
|
||||
%{_libdir}/nginx/ngx_http_geoip_module.so
|
||||
%{_libdir}/nginx/ngx_http_image_filter_module.so
|
||||
%{_libdir}/nginx/ngx_http_perl_module.so
|
||||
%{_libdir}/nginx/ngx_http_xslt_filter_module.so
|
||||
%{_libdir}/nginx/ngx_stream_geoip_module.so
|
||||
%{perl_sitearch}/*
|
||||
%dir %{_localstatedir}/www/nginx
|
||||
%dir %{_localstatedir}/www/nginx/html
|
||||
%{_localstatedir}/www/nginx/html/*.html
|
||||
%dir %{_localstatedir}/log/nginx
|
||||
%{_mandir}/man3/nginx.3pm*
|
||||
|
||||
%changelog
|
||||
* Sat Oct 06 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 1.15.5-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user