Blame SPECS/nginx.spec

d78c9c
%{?scl:%scl_package nginx}
d78c9c
d78c9c
%if 0%{?rhel} > 6
d78c9c
%define use_systemd 1
d78c9c
%else
d78c9c
%define use_systemd 0
d78c9c
%endif
d78c9c
d78c9c
%define use_perl 1
d78c9c
d78c9c
%define use_geoip 0
d78c9c
%global with_gperftools     0
d78c9c
d78c9c
%global  _hardened_build     1
d78c9c
%global  nginx_user          nginx
d78c9c
%global  nginx_group         %{nginx_user}
d78c9c
%global  nginx_home          %{_localstatedir}/lib/nginx
d78c9c
%global  nginx_home_tmp      %{nginx_home}/tmp
d78c9c
%global  nginx_confdir       %{_sysconfdir}/nginx
d78c9c
%global  nginx_datadir       %{_datadir}/nginx
d78c9c
%global  nginx_logdir        %{_localstatedir}/log/nginx
d78c9c
%global  nginx_webroot       %{nginx_datadir}/html
d78c9c
d78c9c
%global service_name %{?scl_prefix}nginx
d78c9c
d78c9c
%if 0%{?scl:1}
d78c9c
%global scl_upper %{lua:print(string.upper(string.gsub(rpm.expand("%{scl}"), "-", "_")))}
d78c9c
%{!?scl_name_version: %global scl_name_version %{lua:print(string.match(rpm.expand("%{scl}"), "%d+$"))}}
d78c9c
%endif
d78c9c
d78c9c
%{!?scl_perl_prefix: %global scl_perl_prefix rh-perl530-}
d78c9c
%{!?_nginx_perl_vendorarch: %global _nginx_perl_vendorarch %perl_vendorarch}
d78c9c
d78c9c
%{?filter_setup:
d78c9c
%filter_requires_in %{_nginx_perl_vendorarch}
d78c9c
%filter_provides_in %{_nginx_perl_vendorarch}
d78c9c
%filter_provides_in %{_libdir}/nginx/modules
d78c9c
%filter_setup
d78c9c
}
d78c9c
d78c9c
Name:              %{?scl:%scl_prefix}nginx
d78c9c
Epoch:             1
d78c9c
Version:           1.18.0
7e74c5
Release:           3%{?dist}
d78c9c
Summary:           A high performance web server and reverse proxy server
d78c9c
Group:             System Environment/Daemons
d78c9c
# BSD License (two clause)
d78c9c
# http://www.freebsd.org/copyright/freebsd-license.html
d78c9c
License:           BSD
d78c9c
URL:               http://nginx.org/
d78c9c
d78c9c
Source0:           http://nginx.org/download/nginx-%{version}.tar.gz
d78c9c
Source2:           scl-register-helper.sh
d78c9c
Source3:           daemon-scl-helper.sh
d78c9c
Source10:          nginx.service
d78c9c
Source11:          nginx.logrotate
d78c9c
Source12:          nginx.conf
d78c9c
Source15:          nginx.init
d78c9c
Source16:          nginx.sysconfig
d78c9c
Source100:         index.html
d78c9c
Source101:         poweredby.png
d78c9c
Source102:         nginx-logo.png
d78c9c
Source103:         404.html
d78c9c
Source104:         50x.html
d78c9c
Source200:         README.dynamic
d78c9c
d78c9c
# removes -Werror in upstream build scripts.  -Werror conflicts with
d78c9c
# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
d78c9c
Patch0:            nginx-auto-cc-gcc.patch
d78c9c
d78c9c
# downstream patch - changing logs permissions to 664 instead
d78c9c
# previous 644
d78c9c
Patch1:            nginx-1.14.0-logs-perm.patch
d78c9c
d78c9c
# PKCS#11 engine fix
d78c9c
Patch2:            nginx-1.16.0-pkcs11.patch
d78c9c
d78c9c
# https://bugzilla.redhat.com/show_bug.cgi?id=1655530
d78c9c
Patch3:            nginx-1.14.1-perl-module-hardening.patch
d78c9c
7e74c5
# https://bugzilla.redhat.com/show_bug.cgi?id=1963121
7e74c5
Patch4:            nginx-1.18.0-CVE-2021-23017.patch
7e74c5
d78c9c
d78c9c
BuildRequires:     gd-devel
d78c9c
%if 0%{?with_gperftools}
d78c9c
BuildRequires:     gperftools-devel
d78c9c
%endif
d78c9c
BuildRequires:     libxslt-devel
d78c9c
BuildRequires:     openssl-devel >= 1:1.0.2k
d78c9c
BuildRequires:     pcre-devel
d78c9c
BuildRequires:     zlib-devel
d78c9c
%if 0%{?use_geoip}
d78c9c
BuildRequires:     GeoIP-devel
d78c9c
%endif
d78c9c
Requires:          gd
d78c9c
Requires(pre):     shadow-utils
d78c9c
Provides:          webserver
d78c9c
d78c9c
%if %{use_systemd}
d78c9c
BuildRequires:     systemd
d78c9c
Requires(post):    systemd
d78c9c
Requires(preun):   systemd
d78c9c
Requires(postun):  systemd
d78c9c
%else
d78c9c
Requires(post):    chkconfig
d78c9c
Requires(preun):   chkconfig, initscripts
d78c9c
Requires(postun):  initscripts
d78c9c
%endif
d78c9c
Requires(post): policycoreutils-python libselinux-utils
d78c9c
%{?scl:Requires:%scl_runtime}
d78c9c
d78c9c
%description
d78c9c
Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and
d78c9c
IMAP protocols, with a strong focus on high concurrency, performance and low
d78c9c
memory usage.
d78c9c
d78c9c
%if 0%{?use_geoip}
d78c9c
%package mod-http-geoip
d78c9c
Group:             System Environment/Daemons
d78c9c
Summary:           Nginx HTTP geoip module
d78c9c
BuildRequires:     GeoIP-devel
d78c9c
Requires:          %{?scl:%scl_prefix}nginx
d78c9c
Requires:          GeoIP
d78c9c
d78c9c
%description mod-http-geoip
d78c9c
%{summary}.
d78c9c
%endif
d78c9c
d78c9c
%package mod-http-image-filter
d78c9c
Group:             System Environment/Daemons
d78c9c
Summary:           Nginx HTTP image filter module
d78c9c
BuildRequires:     gd-devel
d78c9c
Requires:          %{?scl:%scl_prefix}nginx
d78c9c
Requires:          gd
d78c9c
d78c9c
%description mod-http-image-filter
d78c9c
%{summary}.
d78c9c
d78c9c
%if 0%{?use_perl}
d78c9c
%package mod-http-perl
d78c9c
Group:             System Environment/Daemons
d78c9c
Summary:           Nginx HTTP perl module
d78c9c
BuildRequires:     %{scl_perl_prefix}perl-devel
d78c9c
%if 0%{?fedora} >= 24
d78c9c
BuildRequires:     %{scl_perl_prefix}perl-generators
d78c9c
%endif
d78c9c
BuildRequires:     %{scl_perl_prefix}perl(ExtUtils::Embed)
d78c9c
Requires:          %{?scl:%scl_prefix}nginx
d78c9c
Requires:          %{scl_perl_prefix}perl(:MODULE_COMPAT_%(%{?scl:scl enable %{scl_perl} '}eval "`%{__perl} -V:version`"; echo $version%{?scl:'}))
d78c9c
Requires:          %{scl_perl_prefix}perl(constant)
d78c9c
d78c9c
%description mod-http-perl
d78c9c
%{summary}.
d78c9c
%endif
d78c9c
d78c9c
%package mod-http-xslt-filter
d78c9c
Group:             System Environment/Daemons
d78c9c
Summary:           Nginx XSLT module
d78c9c
BuildRequires:     libxslt-devel
d78c9c
Requires:          %{?scl:%scl_prefix}nginx
d78c9c
d78c9c
%description mod-http-xslt-filter
d78c9c
%{summary}.
d78c9c
d78c9c
%package mod-mail
d78c9c
Group:             System Environment/Daemons
d78c9c
Summary:           Nginx mail modules
d78c9c
Requires:          %{?scl:%scl_prefix}nginx
d78c9c
d78c9c
%description mod-mail
d78c9c
%{summary}.
d78c9c
d78c9c
%package mod-stream
d78c9c
Group:             System Environment/Daemons
d78c9c
Summary:           Nginx stream modules
d78c9c
Requires:          %{?scl:%scl_prefix}nginx
d78c9c
d78c9c
%description mod-stream
d78c9c
%{summary}.
d78c9c
d78c9c
d78c9c
%prep
d78c9c
%setup -q -n nginx-%{version}
d78c9c
%patch0 -p0
d78c9c
%patch1 -p1
d78c9c
%patch2 -p1
d78c9c
%patch3 -p1
7e74c5
%patch4 -p1
d78c9c
cp %{SOURCE200} .
d78c9c
d78c9c
%build
d78c9c
%if 0%{?use_perl}
d78c9c
%{?scl:scl enable %{scl_perl} - << \EOF}
d78c9c
%endif
d78c9c
set -x
d78c9c
d78c9c
# nginx does not utilize a standard configure script.  It has its own
d78c9c
# and the standard configure options cause the nginx configure script
d78c9c
# to error out.  This is is also the reason for the DESTDIR environment
d78c9c
# variable.
d78c9c
export DESTDIR=%{buildroot}
d78c9c
./configure \
d78c9c
    --prefix=%{nginx_datadir} \
d78c9c
    --sbin-path=%{_sbindir}/nginx \
d78c9c
    --modules-path=%{_libdir}/nginx/modules \
d78c9c
    --conf-path=%{nginx_confdir}/nginx.conf \
d78c9c
    --error-log-path=%{nginx_logdir}/error.log \
d78c9c
    --http-log-path=%{nginx_logdir}/access.log \
d78c9c
    --http-client-body-temp-path=%{nginx_home_tmp}/client_body \
d78c9c
    --http-proxy-temp-path=%{nginx_home_tmp}/proxy \
d78c9c
    --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
d78c9c
    --http-uwsgi-temp-path=%{nginx_home_tmp}/uwsgi \
d78c9c
    --http-scgi-temp-path=%{nginx_home_tmp}/scgi \
d78c9c
    --pid-path=%{_localstatedir}/run/nginx/nginx.pid \
d78c9c
    --lock-path=%{_localstatedir}/lock/subsys/nginx \
d78c9c
    --user=%{nginx_user} \
d78c9c
    --group=%{nginx_group} \
d78c9c
    --with-file-aio \
d78c9c
    --with-ipv6 \
d78c9c
    --with-http_ssl_module \
d78c9c
    --with-http_v2_module \
d78c9c
    --with-http_auth_request_module \
d78c9c
    --with-http_realip_module \
d78c9c
    --with-stream_ssl_preread_module \
d78c9c
    --with-http_addition_module \
d78c9c
    --with-http_xslt_module=dynamic \
d78c9c
    --with-http_image_filter_module=dynamic \
d78c9c
%if 0%{?use_geoip}
d78c9c
    --with-http_geoip_module=dynamic \
d78c9c
%endif
d78c9c
    --with-http_sub_module \
d78c9c
    --with-http_dav_module \
d78c9c
    --with-http_flv_module \
d78c9c
    --with-http_mp4_module \
d78c9c
    --with-http_gunzip_module \
d78c9c
    --with-http_gzip_static_module \
d78c9c
    --with-http_random_index_module \
d78c9c
    --with-http_secure_link_module \
d78c9c
    --with-http_degradation_module \
d78c9c
    --with-http_slice_module \
d78c9c
    --with-http_stub_status_module \
d78c9c
%if 0%{?use_perl}
d78c9c
    --with-http_perl_module=dynamic \
d78c9c
%endif
d78c9c
    --with-mail=dynamic \
d78c9c
    --with-mail_ssl_module \
d78c9c
    --with-pcre \
d78c9c
    --with-pcre-jit \
d78c9c
    --with-stream=dynamic \
d78c9c
    --with-stream_ssl_module \
d78c9c
%if 0%{?with_gperftools}
d78c9c
    --with-google_perftools_module \
d78c9c
%endif
d78c9c
    --with-debug \
d78c9c
    --with-cc-opt="%{optflags} $(pcre-config --cflags)" \
d78c9c
    --with-ld-opt="$RPM_LD_FLAGS -Wl,-E" # so the perl module finds its symbols
d78c9c
d78c9c
make %{?_smp_mflags}
d78c9c
%if 0%{?use_perl}
d78c9c
%{?scl:EOF}
d78c9c
%endif
d78c9c
d78c9c
%install
d78c9c
#include helper script for creating register stuff
d78c9c
export _SR_BUILDROOT=%{buildroot}
d78c9c
export _SR_SCL_SCRIPTS=%{?_scl_scripts}
d78c9c
source %{SOURCE2}
d78c9c
d78c9c
%if 0%{?use_perl}
d78c9c
%{?scl:scl enable %{scl_perl} - << \EOF}
d78c9c
%endif
d78c9c
set -x
d78c9c
make install DESTDIR=%{buildroot} INSTALLDIRS=vendor \
d78c9c
     INSTALLVENDORARCH=%{_nginx_perl_vendorarch} \
d78c9c
     INSTALLVENDORMAN3DIR=%{_mandir}/man3
d78c9c
%if 0%{?use_perl}
d78c9c
%{?scl:EOF}
d78c9c
%endif
d78c9c
d78c9c
find %{buildroot} -type f -name .packlist -exec rm -f '{}' \;
d78c9c
find %{buildroot} -type f -name perllocal.pod -exec rm -f '{}' \;
d78c9c
find %{buildroot} -type f -empty -exec rm -f '{}' \;
d78c9c
find %{buildroot} -type f -iname '*.so' -exec chmod 0755 '{}' \;
d78c9c
d78c9c
install -D -p -m 0755 %{SOURCE3} \
d78c9c
    %{buildroot}%{_libexecdir}/nginx-scl-helper
d78c9c
d78c9c
%if %{use_systemd}
d78c9c
install -p -D -m 0644 %{SOURCE10} \
d78c9c
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
d78c9c
sed -i 's|\$sbindir|%{_sbindir}|' \
d78c9c
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
sed -i 's|\$localstatedir|%{_localstatedir}|' \
d78c9c
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
sed -i 's|\$libexecdir|%{_libexecdir}|' \
d78c9c
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
sed -i 's|\$scl_name_version|%{scl_name_version}|g' \
d78c9c
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
d78c9c
touch -r %{SOURCE10} \
d78c9c
    %{buildroot}%{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
d78c9c
scl_reggen %{name} --cpfile %{_unitdir}/%{?scl:%scl_prefix}nginx.service
d78c9c
d78c9c
%else
d78c9c
install -p -D -m 0755 %{SOURCE15} \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
d78c9c
sed -i 's|\$sbindir|%{_sbindir}|' \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
sed -i 's|\$localstatedir|%{_localstatedir}|' \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
sed -i 's|\$sysconfdir|%{_sysconfdir}|' \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
sed -i 's|\$sclprefix|%scl_prefix|g' \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
sed -i 's|\$sclname|%scl|g' \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
sed -i 's|\$upperscl|%{scl_upper}|g' \
d78c9c
    %{buildroot}/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
scl_reggen %{name} --cpfile %{_root_initddir}/%{?scl:%scl_prefix}nginx
d78c9c
d78c9c
install -p -D -m 0644 %{SOURCE16} \
d78c9c
    %{buildroot}/%{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
d78c9c
d78c9c
sed -i 's|\$sysconfdir|%{_sysconfdir}|' \
d78c9c
    %{buildroot}/%{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
d78c9c
scl_reggen %{name} --mkdir %{_sysconfdir}/sysconfig
d78c9c
scl_reggen %{name} --cpfile %{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
d78c9c
%endif
d78c9c
d78c9c
install -p -D -m 0644 %{SOURCE11} \
d78c9c
    %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}nginx
d78c9c
d78c9c
sed -i 's|\$logdir|%{nginx_logdir}|' \
d78c9c
    %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}nginx
d78c9c
sed -i 's|\$localstatedir|%{_localstatedir}|' \
d78c9c
    %{buildroot}/etc/logrotate.d/%{?scl:%scl_prefix}nginx
d78c9c
scl_reggen %{name} --cpfile %{_root_sysconfdir}/logrotate.d/%{?scl:%scl_prefix}nginx
d78c9c
d78c9c
install -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d
d78c9c
install -p -d -m 0755 %{buildroot}%{nginx_confdir}/default.d
d78c9c
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home}
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/client_body
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/proxy
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/fastcgi
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/uwsgi
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_home_tmp}/scgi
d78c9c
install -p -d -m 0700 %{buildroot}%{nginx_logdir}
d78c9c
install -p -d -m 0755 %{buildroot}%{nginx_webroot}
d78c9c
d78c9c
scl_reggen %{name} --mkdir %{nginx_confdir}/conf.d
d78c9c
scl_reggen %{name} --mkdir %{nginx_confdir}/default.d
d78c9c
scl_reggen %{name} --mkdir %{nginx_home}
d78c9c
scl_reggen %{name} --mkdir %{nginx_home_tmp}
d78c9c
scl_reggen %{name} --mkdir %{nginx_home_tmp}/client_body
d78c9c
scl_reggen %{name} --mkdir %{nginx_home_tmp}/proxy
d78c9c
scl_reggen %{name} --mkdir %{nginx_home_tmp}/fastcgi
d78c9c
scl_reggen %{name} --mkdir %{nginx_home_tmp}/uwsgi
d78c9c
scl_reggen %{name} --mkdir %{nginx_home_tmp}/scgi
d78c9c
scl_reggen %{name} --mkdir %{nginx_logdir}
d78c9c
scl_reggen %{name} --mkdir %{nginx_webroot}
d78c9c
d78c9c
scl_reggen %{name} --chmod 0755 %{nginx_confdir}/conf.d
d78c9c
scl_reggen %{name} --chmod 0755 %{nginx_confdir}/default.d
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home}
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/client_body
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/proxy
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/fastcgi
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/uwsgi
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_home_tmp}/scgi
d78c9c
scl_reggen %{name} --chmod 0700 %{nginx_logdir}
d78c9c
scl_reggen %{name} --chmod 0755 %{nginx_webroot}
d78c9c
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi.conf
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi.conf.default
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi_params
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/fastcgi_params.default
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/koi-utf
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/koi-win
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/mime.types
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/mime.types.default
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/nginx.conf
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/nginx.conf.default
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/scgi_params
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/scgi_params.default
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/uwsgi_params
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/uwsgi_params.default
d78c9c
scl_reggen %{name} --cpfile %{nginx_confdir}/win-utf
d78c9c
d78c9c
d78c9c
scl_reggen %{name} --runafterregister "semanage fcontext -a -e /var/log/nginx %{nginx_logdir} >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "restorecon -R %{nginx_logdir} >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_sysconfdir}/nginx %{nginx_confdir} >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "restorecon -R %{nginx_confdir} >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_localstatedir}/lib/nginx %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "semanage fcontext -a -e %{_root_localstatedir}/run/nginx %{_localstatedir}/run/nginx >/dev/null 2>&1 || :"
d78c9c
scl_reggen %{name} --runafterregister "restorecon -R %{_localstatedir}/run/nginx >/dev/null 2>&1 || :"
d78c9c
d78c9c
install -p -m 0644 %{SOURCE12} \
d78c9c
    %{buildroot}%{nginx_confdir}
d78c9c
d78c9c
# Change the nginx.conf paths
d78c9c
sed -i 's|\$datadir|%{_datadir}|' \
d78c9c
    %{buildroot}%{nginx_confdir}/nginx.conf
d78c9c
sed -i 's|\$docdir|%{_docdir}|' \
d78c9c
    %{buildroot}%{nginx_confdir}/nginx.conf
d78c9c
sed -i 's|\$sysconfdir|%{_sysconfdir}|' \
d78c9c
    %{buildroot}%{nginx_confdir}/nginx.conf
d78c9c
sed -i 's|\$localstatedir|%{_localstatedir}|' \
d78c9c
    %{buildroot}%{nginx_confdir}/nginx.conf
d78c9c
sed -i 's|\$logdir|%{nginx_logdir}|' \
d78c9c
    %{buildroot}%{nginx_confdir}/nginx.conf
d78c9c
d78c9c
install -p -d -m 0755 %{buildroot}%{_datadir}/nginx/modules
d78c9c
install -p -d -m 0755 %{buildroot}%{_libdir}/nginx/modules
d78c9c
d78c9c
%if 0%{?use_geoip}
d78c9c
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_geoip_module.so";' \
d78c9c
    > %{buildroot}%{_datadir}/nginx/modules/mod-http-geoip.conf
d78c9c
%endif
d78c9c
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_image_filter_module.so";' \
d78c9c
    > %{buildroot}%{_datadir}/nginx/modules/mod-http-image-filter.conf
d78c9c
%if 0%{?use_perl}
d78c9c
cat > %{buildroot}%{_datadir}/nginx/modules/mod-http-perl.conf <
d78c9c
load_module "%{_libdir}/nginx/modules/ngx_http_perl_module.so";
d78c9c
env PERL5LIB;
d78c9c
env LD_LIBRARY_PATH;
d78c9c
EOF
d78c9c
%endif
d78c9c
echo 'load_module "%{_libdir}/nginx/modules/ngx_http_xslt_filter_module.so";' \
d78c9c
    > %{buildroot}%{_datadir}/nginx/modules/mod-http-xslt-filter.conf
d78c9c
echo 'load_module "%{_libdir}/nginx/modules/ngx_mail_module.so";' \
d78c9c
    > %{buildroot}%{_datadir}/nginx/modules/mod-mail.conf
d78c9c
echo 'load_module "%{_libdir}/nginx/modules/ngx_stream_module.so";' \
d78c9c
    > %{buildroot}%{_datadir}/nginx/modules/mod-stream.conf
d78c9c
d78c9c
touch -r %{SOURCE12} %{buildroot}%{nginx_confdir}/nginx.conf \
d78c9c
      %{buildroot}%{_datadir}/nginx/modules/*.conf
d78c9c
d78c9c
install -p -m 0644 %{SOURCE100} \
d78c9c
    %{buildroot}%{nginx_webroot}
d78c9c
install -p -m 0644 %{SOURCE101} %{SOURCE102} \
d78c9c
    %{buildroot}%{nginx_webroot}
d78c9c
install -p -m 0644 %{SOURCE103} %{SOURCE104} \
d78c9c
    %{buildroot}%{nginx_webroot}
d78c9c
d78c9c
# Replaces variables in html files with prober values
d78c9c
%if 0%{?scl:1}
d78c9c
d78c9c
# in all html files
d78c9c
for f in %{SOURCE100} %{SOURCE103} %{SOURCE104}; do
d78c9c
    sed -i 's|\$scl_name_version|%{scl_name_version}|g' \
d78c9c
        %{buildroot}%{nginx_webroot}/`basename $f`
d78c9c
d78c9c
    touch -r $f \
d78c9c
        %{buildroot}%{nginx_webroot}/`basename $f`
d78c9c
done
d78c9c
%endif
d78c9c
d78c9c
install -p -D -m 0644 %{_builddir}/nginx-%{version}/man/nginx.8 \
d78c9c
    %{buildroot}%{_mandir}/man8/nginx.8
d78c9c
d78c9c
mkdir -p %{buildroot}%{_localstatedir}/run/nginx
d78c9c
d78c9c
# Replaces variables in man page with proper values
d78c9c
sed -i 's|\%\%PREFIX\%\%|%{nginx_datadir}|' \
d78c9c
    %{buildroot}%{_mandir}/man8/nginx.8
d78c9c
sed -i 's|\%\%PID_PATH\%\%|%{_localstatedir}/run/nginx/nginx.pid|' \
d78c9c
    %{buildroot}%{_mandir}/man8/nginx.8
d78c9c
sed -i 's|\%\%CONF_PATH\%\%|%{nginx_confdir}/nginx.conf|' \
d78c9c
    %{buildroot}%{_mandir}/man8/nginx.8
d78c9c
sed -i 's|\%\%ERROR_LOG_PATH\%\%|%{nginx_logdir}/error.log|' \
d78c9c
    %{buildroot}%{_mandir}/man8/nginx.8
d78c9c
d78c9c
%if 0%{?scl:1}
d78c9c
cat << EOF | tee -a %{buildroot}%{?_scl_scripts}/service-environment
d78c9c
# Services are started in a fresh environment without any influence of user's
d78c9c
# environment (like environment variable values). As a consequence,
d78c9c
# information of all enabled collections will be lost during service start up.
d78c9c
# If user needs to run a service under any software collection enabled, this
d78c9c
# collection has to be written into %{scl_upper}_SCLS_ENABLED variable
d78c9c
# in %{?_scl_scripts}/service-environment.
d78c9c
%{scl_upper}_SCLS_ENABLED="%{scl}"
d78c9c
EOF
d78c9c
%endif #scl
d78c9c
d78c9c
%pre
d78c9c
getent group %{nginx_group} > /dev/null || groupadd -r %{nginx_group}
d78c9c
getent passwd %{nginx_user} > /dev/null || \
d78c9c
    useradd -r -d %{nginx_home} -g %{nginx_group} \
d78c9c
    -s /sbin/nologin -c "Nginx web server" %{nginx_user}
d78c9c
exit 0
d78c9c
d78c9c
%post
d78c9c
restorecon -R %{_scl_root} >/dev/null 2>&1 || :
d78c9c
semanage fcontext -a -e /var/log/nginx %{nginx_logdir} >/dev/null 2>&1 || :
d78c9c
restorecon -R %{nginx_logdir} >/dev/null 2>&1 || :
d78c9c
d78c9c
semanage fcontext -a -e %{_root_sysconfdir}/nginx %{nginx_confdir} >/dev/null 2>&1 || :
d78c9c
restorecon -R %{nginx_confdir} >/dev/null 2>&1 || :
d78c9c
d78c9c
semanage fcontext -a -e %{_root_localstatedir}/lib/nginx %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :
d78c9c
restorecon -R %{_localstatedir}/lib/nginx >/dev/null 2>&1 || :
d78c9c
d78c9c
semanage fcontext -a -e %{_root_localstatedir}/run/nginx %{_localstatedir}/run/nginx >/dev/null 2>&1 || :
d78c9c
restorecon -R %{_localstatedir}/run/nginx >/dev/null 2>&1 || :
d78c9c
d78c9c
%if %{use_systemd}
d78c9c
# Ensure the helper script has the right context.
d78c9c
semanage fcontext -a -t httpd_exec_t %{_root_libexecdir}/nginx-scl-helper >/dev/null 2>&1 || :
d78c9c
restorecon -R %{_libexecdir}/nginx-scl-helper >/dev/null 2>&1 || :
d78c9c
%systemd_post %{service_name}.service
d78c9c
%else
d78c9c
semanage fcontext -a -e /etc/rc.d/init.d/nginx /etc/rc.d/init.d/%{?scl:%scl_prefix}nginx >/dev/null 2>&1 || :
d78c9c
restorecon -R /etc/rc.d/init.d/%{?scl:%scl_prefix}nginx >/dev/null 2>&1 || :
d78c9c
if [ $1 -eq 1 ]; then
d78c9c
    /sbin/chkconfig --add %{name}
d78c9c
fi
d78c9c
%endif
d78c9c
if [ $1 -eq 2 ]; then
d78c9c
    # Make sure these directories are not world readable.
d78c9c
    chmod 700 %{nginx_home}
d78c9c
    chmod -R 700 %{nginx_home_tmp}
d78c9c
    chmod 700 %{nginx_logdir}
d78c9c
fi
d78c9c
d78c9c
%preun
d78c9c
%if %{use_systemd}
d78c9c
%systemd_preun %{service_name}.service
d78c9c
%else
d78c9c
if [ $1 -eq 0 ]; then
d78c9c
    /sbin/service %{name} stop >/dev/null 2>&1
d78c9c
    /sbin/chkconfig --del %{name}
d78c9c
fi
d78c9c
%endif
d78c9c
d78c9c
%postun
d78c9c
%if %{use_systemd}
d78c9c
%systemd_postun %{service_name}.service
d78c9c
%else
d78c9c
if [ $1 -eq 2 ]; then
d78c9c
    /sbin/service %{name} upgrade || :
d78c9c
fi
d78c9c
%endif
d78c9c
d78c9c
%files
d78c9c
%doc LICENSE CHANGES README README.dynamic
d78c9c
%dir %{nginx_datadir}
d78c9c
%{nginx_datadir}/html
d78c9c
%dir %{nginx_datadir}/modules
d78c9c
%{_sbindir}/nginx
d78c9c
%{_mandir}/man8/nginx.8*
d78c9c
%{?scl:%{_libexecdir}/nginx-scl-helper}
d78c9c
%if %{use_systemd}
d78c9c
%{_unitdir}/%{service_name}.service
d78c9c
%else
d78c9c
/etc/rc.d/init.d/%{?scl:%scl_prefix}nginx
d78c9c
%config(noreplace) %{_sysconfdir}/sysconfig/%{?scl:%scl_prefix}nginx
d78c9c
%endif
d78c9c
%dir %{nginx_confdir}
d78c9c
%dir %{nginx_confdir}/conf.d
d78c9c
%dir %{nginx_confdir}/default.d
d78c9c
%config(noreplace) %{nginx_confdir}/fastcgi.conf
d78c9c
%config(noreplace) %{nginx_confdir}/fastcgi.conf.default
d78c9c
%config(noreplace) %{nginx_confdir}/fastcgi_params
d78c9c
%config(noreplace) %{nginx_confdir}/fastcgi_params.default
d78c9c
%config(noreplace) %{nginx_confdir}/koi-utf
d78c9c
%config(noreplace) %{nginx_confdir}/koi-win
d78c9c
%config(noreplace) %{nginx_confdir}/mime.types
d78c9c
%config(noreplace) %{nginx_confdir}/mime.types.default
d78c9c
%config(noreplace) %{nginx_confdir}/nginx.conf
d78c9c
%config(noreplace) %{nginx_confdir}/nginx.conf.default
d78c9c
%config(noreplace) %{nginx_confdir}/scgi_params
d78c9c
%config(noreplace) %{nginx_confdir}/scgi_params.default
d78c9c
%config(noreplace) %{nginx_confdir}/uwsgi_params
d78c9c
%config(noreplace) %{nginx_confdir}/uwsgi_params.default
d78c9c
%config(noreplace) %{nginx_confdir}/win-utf
d78c9c
%config(noreplace) /etc/logrotate.d/%{?scl:%scl_prefix}nginx
d78c9c
%attr(700,%{nginx_user},%{nginx_group}) %dir %{nginx_home}
d78c9c
%attr(700,%{nginx_user},%{nginx_group}) %{nginx_home_tmp}
d78c9c
%attr(700,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir}
d78c9c
%attr(700,%{nginx_user},%{nginx_group}) %dir %{_localstatedir}/run/nginx
d78c9c
%dir %{_libdir}/nginx
d78c9c
%dir %{_libdir}/nginx/modules
d78c9c
d78c9c
%{?scl: %{_scl_scripts}/register.d/*}
d78c9c
%{?scl: %{_scl_scripts}/register.content/*}
d78c9c
%{?scl: %{_scl_scripts}/deregister.d/*}
d78c9c
%{?scl:%config(noreplace) %{?_scl_scripts}/service-environment}
d78c9c
d78c9c
%if 0%{?use_geoip}
d78c9c
%files mod-http-geoip
d78c9c
%{_datadir}/nginx/modules/mod-http-geoip.conf
d78c9c
%{_libdir}/nginx/modules/ngx_http_geoip_module.so
d78c9c
%endif
d78c9c
d78c9c
%files mod-http-image-filter
d78c9c
%{_datadir}/nginx/modules/mod-http-image-filter.conf
d78c9c
%{_libdir}/nginx/modules/ngx_http_image_filter_module.so
d78c9c
d78c9c
%if 0%{?use_perl}
d78c9c
%files mod-http-perl
d78c9c
%{_datadir}/nginx/modules/mod-http-perl.conf
d78c9c
%{_libdir}/nginx/modules/ngx_http_perl_module.so
d78c9c
%{_nginx_perl_vendorarch}/*
d78c9c
%{_mandir}/man3/nginx.3pm.*
d78c9c
%endif
d78c9c
d78c9c
%files mod-http-xslt-filter
d78c9c
%{_datadir}/nginx/modules/mod-http-xslt-filter.conf
d78c9c
%{_libdir}/nginx/modules/ngx_http_xslt_filter_module.so
d78c9c
d78c9c
%files mod-mail
d78c9c
%{_datadir}/nginx/modules/mod-mail.conf
d78c9c
%{_libdir}/nginx/modules/ngx_mail_module.so
d78c9c
d78c9c
%files mod-stream
d78c9c
%{_datadir}/nginx/modules/mod-stream.conf
d78c9c
%{_libdir}/nginx/modules/ngx_stream_module.so
d78c9c
d78c9c
%changelog
7e74c5
* Tue May 25 2021 Luboš Uhliarik <luhliari@redhat.com> - 1:1.18.0-3
7e74c5
- Resolves: #1963183 - CVE-2021-23017 rh-nginx118-nginx: nginx: Off-by-one
7e74c5
  in ngx_resolver_copy() when labels are followed by a pointer to a root 
7e74c5
  domain name
7e74c5
d78c9c
* Wed Sep 16 2020 Lubos Uhliarik <luhliari@redhat.com> - 1:1.18.0-2
d78c9c
- switch rh-nginx118 to rh-perl530
d78c9c
d78c9c
* Tue Jul 21 2020 Lubos Uhliarik <luhliari@redhat.com> - 1:1.18.0-1
d78c9c
- Resolves: #1853206 - RFE: add collection for NGINX 1.18
d78c9c
- Increased types_hash_max_size to 4096 in default config
d78c9c
- Drop location / from default config (rhbz#1564768)
d78c9c
- Drop default_sever from default config (rhbz#1373822)
d78c9c
d78c9c
* Tue Jun 23 2020 Lubos Uhliarik <luhliari@redhat.com> - 1:1.16.1-5
d78c9c
- Resolves: #1798233 - CVE-2019-20372 rh-nginx116-nginx: nginx: HTTP request
d78c9c
  smuggling via error pages in http/ngx_http_special_response.c
d78c9c
d78c9c
* Mon Oct 07 2019 Lubos Uhliarik <luhliari@redhat.com> - 1:1.16.1-4
d78c9c
- Resolves: #1758809 - Nginx service does not start (wrong version used in the
d78c9c
  systemd unit file)
d78c9c
d78c9c
* Thu Aug 29 2019 Lubos Uhliarik <luhliari@redhat.com> - 1:1.16.1-3
d78c9c
- Resolves: #1745696 - CVE-2019-9511 rh-nginx116-nginx: HTTP/2: large amount
d78c9c
  of data request leads to denial of service
d78c9c
- Resolves: #1745689 - CVE-2019-9513 rh-nginx116-nginx: HTTP/2: flood using
d78c9c
  PRIORITY frames resulting in excessive resource consumption
d78c9c
- Resolves: #1745668 - CVE-2019-9516 rh-nginx116-nginx: HTTP/2: 0-length
d78c9c
  headers leads to denial of service
d78c9c
d78c9c
* Tue Aug 06 2019 Luboš Uhliarik <luhliari@redhat.com> - 1:1.16.0-1
d78c9c
- Resolves: #1721187 - RFE: add collection for nginx 1.16
d78c9c
- enable ngx_stream_ssl_preread module
d78c9c
d78c9c
* Wed Aug 08 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.0-3
d78c9c
- fixed service file and error documents
d78c9c
d78c9c
* Wed Jul 18 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.0-2
d78c9c
- Resolves: #1470746 - rh-nginx112: unexpected initscpript action
d78c9c
d78c9c
* Thu Jul 12 2018 Luboš Uhliarik <luhliari@redhat.com> - 1:1.14.0-1
d78c9c
- update to version 1.14.0
d78c9c
- Resolves: #1601544 - Switch rh-nginx114 to rh-perl526
d78c9c
d78c9c
* Tue Aug 08 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-2
d78c9c
- Resolves: #1468712 - missing dependency for perl package
d78c9c
d78c9c
* Wed Jul 12 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.1-1
d78c9c
- update to 1.12.1
d78c9c
- Resolves: CVE-2017-7529 nginx: Integer overflow in nginx range filter module
d78c9c
  leading to memory disclosure
d78c9c
d78c9c
* Tue Jun 13 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.0-4
d78c9c
- Resolved: #1323835 - RFE: add nginx-auth-ldap to rh-nginx18
d78c9c
d78c9c
* Tue Jun 06 2017 Luboš Uhliarik <luhliari@redhat.com> - 1:1.12.0-1
d78c9c
- update to 1.12.0 (#1447400)
d78c9c
d78c9c
* Thu Mar 23 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-7
d78c9c
- filter auto-provides from module subpackages (#1434349)
d78c9c
- drop perl vendorarch directory ownership (#1434333)
d78c9c
d78c9c
* Thu Mar  2 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-6
d78c9c
- run nginx under SCL environment from SysV init script
d78c9c
d78c9c
* Thu Mar  2 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-5
d78c9c
- filter perl(*) req/prov (#1421927)
d78c9c
d78c9c
* Wed Mar  1 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-4
d78c9c
- drop explicit Requires for openssl, gd
d78c9c
- run nginx under SCL environment from systemd service
d78c9c
- fix module .conf path in nginx.conf
d78c9c
- pass PERL5LIB, LD_LIBRARY_PATH from env when perl is loaded (#1421927)
d78c9c
d78c9c
* Wed Feb  8 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-3
d78c9c
- add mod-http-perl
d78c9c
d78c9c
* Thu Jan 19 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-2
d78c9c
- own libdir/nginx
d78c9c
d78c9c
* Thu Jan 19 2017 Joe Orton <jorton@redhat.com> - 1:1.10.2-1
d78c9c
- update to 1.10.2 (#1404779)
d78c9c
- merge changes from Fedora
d78c9c
d78c9c
* Mon Jun 20 2016 Joe Orton <jorton@redhat.com> - 1:1.8.1-1
d78c9c
- update to 1.8.1 (CVE-2016-0742 CVE-2016-0746 CVE-2016-0747)
d78c9c
- add security fix for CVE-2016-4450
d78c9c
d78c9c
* Fri Nov 13 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-4
d78c9c
- fix SELinux context of /var/opt and /etc/opt directories (#1280221)
d78c9c
d78c9c
* Fri Sep 11 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-3
d78c9c
- fix bad path to nginx.pid in logrotate configuration (#1260595)
d78c9c
d78c9c
* Tue Aug 11 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-2
d78c9c
- move logs to /var/opt/rh/rh-nginx18/log (#1250095)
d78c9c
d78c9c
* Wed Jul 08 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.8.0-1
d78c9c
- update to version 1.8.0
d78c9c
d78c9c
* Wed Jan 21 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.2-3
d78c9c
- set use_systemd only on RHEL7
d78c9c
d78c9c
* Mon Jan 19 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.2-2
d78c9c
- add support for Phusion Passenger
d78c9c
d78c9c
* Tue Jan 06 2015 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.2-1
d78c9c
- update to version 1.6.2
d78c9c
- do not use conditionals in systemd macros (#1152514)
d78c9c
d78c9c
* Wed Sep 17 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.1-2
d78c9c
- prevent SSL session reuse in unrelated server{} blocks (CVE-2014-3616)
d78c9c
d78c9c
* Wed Aug 06 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.1-1
d78c9c
- update to 1.6.1 (CVE-2014-3556)
d78c9c
d78c9c
* Wed Jul 02 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.0-4
d78c9c
- correct the path for previous SELinux fix (#1088912)
d78c9c
d78c9c
* Wed Jul 02 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.0-3
d78c9c
- fix SELinux context of initscript (#1088912)
d78c9c
d78c9c
* Tue Jun 24 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.6.0-2
d78c9c
- rebuild because of rename to nginx16
d78c9c
d78c9c
* Mon Jun  9 2014 Joe Orton <jorton@redhat.com> - 1:1.6.0-1
d78c9c
- update to 1.6.0 (#1101921)
d78c9c
d78c9c
* Tue Mar  4 2014 Joe Orton <jorton@redhat.com> - 1:1.4.4-10
d78c9c
- run restorecon in %%post for #1072266
d78c9c
d78c9c
* Tue Mar  4 2014 Joe Orton <jorton@redhat.com> - 1:1.4.4-9
d78c9c
- fix SELinux context for log directory (#1072266)
d78c9c
d78c9c
* Thu Feb 20 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.4-8
d78c9c
- update poweredby logo and show it on default pages (#1065981)
d78c9c
d78c9c
* Wed Jan 15 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.4-7
d78c9c
- call restorecon in post script (#1052935)
d78c9c
d78c9c
* Mon Jan 06 2014 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.4-6
d78c9c
- create temp subdirectories in nginx_home_tmp during installation (#1040470)
d78c9c
d78c9c
* Tue Nov 26 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-5
d78c9c
- further default config tweak
d78c9c
d78c9c
* Tue Nov 26 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-4
d78c9c
- update config file for log directory
d78c9c
d78c9c
* Tue Nov 26 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-3
d78c9c
- change log directory
d78c9c
d78c9c
* Tue Nov 19 2013 Joe Orton <jorton@redhat.com> - 1:1.4.4-1
d78c9c
- update to 1.4.4 (CVE-2013-4547)
d78c9c
d78c9c
* Mon Nov 18 2013 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.2-6
d78c9c
- require scl_runtime
d78c9c
d78c9c
* Mon Nov 18 2013 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.2-5
d78c9c
- improved index.html
d78c9c
d78c9c
* Mon Nov 18 2013 Jan Kaluza <jkaluza@redhat.com> - 1:1.4.2-4
d78c9c
- support for software collections
d78c9c
d78c9c
* Fri Aug 09 2013 Jonathan Steffan <jsteffan@fedoraproject.org> - 1:1.4.2-3
d78c9c
- Add in conditionals to build for non-systemd targets
d78c9c
d78c9c
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.2-2
d78c9c
- Perl 5.18 rebuild
d78c9c
d78c9c
* Fri Jul 19 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.2-1
d78c9c
- update to upstream release 1.4.2
d78c9c
d78c9c
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1:1.4.1-3
d78c9c
- Perl 5.18 rebuild
d78c9c
d78c9c
* Tue Jun 11 2013 Remi Collet <rcollet@redhat.com> - 1:1.4.1-2
d78c9c
- rebuild for new GD 2.1.0
d78c9c
d78c9c
* Tue May 07 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.1-1
d78c9c
- update to upstream release 1.4.1 (#960605, #960606):
d78c9c
  CVE-2013-2028 stack-based buffer overflow when handling certain chunked
d78c9c
  transfer encoding requests
d78c9c
d78c9c
* Sun Apr 28 2013 Dan Horák <dan[at]danny.cz> - 1:1.4.0-2
d78c9c
- gperftools exist only on selected arches
d78c9c
d78c9c
* Fri Apr 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.4.0-1
d78c9c
- update to upstream release 1.4.0
d78c9c
- enable SPDY module (new in this version)
d78c9c
- enable http gunzip module (new in this version)
d78c9c
- enable google perftools module and add gperftools-devel to BR
d78c9c
- enable debugging (#956845)
d78c9c
- trim changelog
d78c9c
d78c9c
* Tue Apr 02 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.8-1
d78c9c
- update to upstream release 1.2.8
d78c9c
d78c9c
* Fri Feb 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-2
d78c9c
- make sure nginx directories are not world readable (#913724, #913735)
d78c9c
d78c9c
* Sat Feb 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.7-1
d78c9c
- update to upstream release 1.2.7
d78c9c
- add .asc file
d78c9c
d78c9c
* Tue Feb 05 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-6
d78c9c
- use 'kill' instead of 'systemctl' when rotating log files to workaround
d78c9c
  SELinux issue (#889151)
d78c9c
d78c9c
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-5
d78c9c
- uncomment "include /etc/nginx/conf.d/*.conf" by default but leave the
d78c9c
  conf.d directory empty (#903065)
d78c9c
d78c9c
* Wed Jan 23 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-4
d78c9c
- add comment in nginx.conf regarding "include /etc/nginf/conf.d/*.conf"
d78c9c
  (#903065)
d78c9c
d78c9c
* Wed Dec 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-3
d78c9c
- use correct file ownership when rotating log files
d78c9c
d78c9c
* Tue Dec 18 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-2
d78c9c
- send correct kill signal and use correct file permissions when rotating
d78c9c
  log files (#888225)
d78c9c
- send correct kill signal in nginx-upgrade
d78c9c
d78c9c
* Tue Dec 11 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.6-1
d78c9c
- update to upstream release 1.2.6
d78c9c
d78c9c
* Sat Nov 17 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.5-1
d78c9c
- update to upstream release 1.2.5
d78c9c
d78c9c
* Sun Oct 28 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.4-1
d78c9c
- update to upstream release 1.2.4
d78c9c
- introduce new systemd-rpm macros (#850228)
d78c9c
- link to official documentation not the community wiki (#870733)
d78c9c
- do not run systemctl try-restart after package upgrade to allow the
d78c9c
  administrator to run nginx-upgrade and avoid downtime
d78c9c
- add nginx man page (#870738)
d78c9c
- add nginx-upgrade man page and remove README.fedora
d78c9c
- remove chkconfig from Requires(post/preun)
d78c9c
- remove initscripts from Requires(preun/postun)
d78c9c
- remove separate configuration files in "/etc/nginx/conf.d" directory
d78c9c
  and revert to upstream default of a centralized nginx.conf file
d78c9c
  (#803635) (#842738)
d78c9c
d78c9c
* Fri Sep 21 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.3-1
d78c9c
- update to upstream release 1.2.3
d78c9c
d78c9c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.1-3
d78c9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d78c9c
d78c9c
* Thu Jun 28 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.1-2
d78c9c
- Perl 5.16 rebuild
d78c9c
d78c9c
* Sun Jun 10 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.1-1
d78c9c
- update to upstream release 1.2.1
d78c9c
d78c9c
* Fri Jun 08 2012 Petr Pisar <ppisar@redhat.com> - 1:1.2.0-2
d78c9c
- Perl 5.16 rebuild
d78c9c
d78c9c
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.2.0-1
d78c9c
- update to upstream release 1.2.0
d78c9c
d78c9c
* Wed May 16 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-4
d78c9c
- add nginx-upgrade to replace functionality from the nginx initscript
d78c9c
  that was lost after migration to systemd
d78c9c
- add README.fedora to describe usage of nginx-upgrade
d78c9c
- nginx.logrotate: use built-in systemd kill command in postrotate script
d78c9c
- nginx.service: start after syslog.target and network.target
d78c9c
- nginx.service: remove unnecessary references to config file location
d78c9c
- nginx.service: use /bin/kill instead of "/usr/sbin/nginx -s" following
d78c9c
  advice from nginx-devel
d78c9c
- nginx.service: use private /tmp
d78c9c
d78c9c
* Mon May 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-3
d78c9c
- fix incorrect postrotate script in nginx.logrotate
d78c9c
d78c9c
* Thu Apr 19 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-2
d78c9c
- renable auto-cc-gcc patch due to warnings on rawhide
d78c9c
d78c9c
* Sat Apr 14 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.15-1
d78c9c
- update to upstream release 1.0.15
d78c9c
- no need to apply auto-cc-gcc patch
d78c9c
- add %%global _hardened_build 1
d78c9c
d78c9c
* Thu Mar 15 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.14-1
d78c9c
- update to upstream release 1.0.14
d78c9c
- amend some %%changelog formatting
d78c9c
d78c9c
* Tue Mar 06 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.13-1
d78c9c
- update to upstream release 1.0.13
d78c9c
- amend --pid-path and --log-path
d78c9c
d78c9c
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-5
d78c9c
- change pid path in nginx.conf to match systemd service file
d78c9c
d78c9c
* Sun Mar 04 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-3
d78c9c
- fix %%pre scriptlet
d78c9c
d78c9c
* Mon Feb 20 2012 Jamie Nguyen <jamielinux@fedoraproject.org> - 1:1.0.12-2
d78c9c
- update upstream URL
d78c9c
- replace %%define with %%global
d78c9c
- remove obsolete BuildRoot tag, %%clean section and %%defattr
d78c9c
- remove various unnecessary commands
d78c9c
- add systemd service file and update scriptlets
d78c9c
- add Epoch to accommodate %%triggerun as part of systemd migration
d78c9c
d78c9c
* Sun Feb 19 2012 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.12-1
d78c9c
- Update to 1.0.12
d78c9c
d78c9c
* Thu Nov 17 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.10-1
d78c9c
- Bugfix: a segmentation fault might occur in a worker process if resolver got a big DNS response. Thanks to Ben Hawkes.
d78c9c
- Bugfix: in cache key calculation if internal MD5 implementation wasused; the bug had appeared in 1.0.4.
d78c9c
- Bugfix: the module ngx_http_mp4_module sent incorrect "Content-Length" response header line if the "start" argument was used. Thanks to Piotr Sikora.
d78c9c
d78c9c
* Thu Oct 27 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.8-1
d78c9c
- Update to new 1.0.8 stable release
d78c9c
d78c9c
* Fri Aug 26 2011 Keiran "Affix" Smith <fedora@affix.me> - 1.0.5-1
d78c9c
- Update nginx to Latest Stable Release
d78c9c
d78c9c
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-3
d78c9c
- Perl mass rebuild
d78c9c
d78c9c
* Thu Jun 09 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.0.0-2
d78c9c
- Perl 5.14 mass rebuild
d78c9c
d78c9c
* Wed Apr 27 2011 Jeremy Hinegardner <jeremy at hinegardner dot org> - 1.0.0-1
d78c9c
- Update to 1.0.0
d78c9c
d78c9c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.53-6
d78c9c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d78c9c
d78c9c
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53.5
d78c9c
- Extract out default config into its own file (bug #635776)
d78c9c
d78c9c
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-4
d78c9c
- Revert ownership of log dir
d78c9c
d78c9c
* Sun Dec 12 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-3
d78c9c
- Change ownership of /var/log/nginx to be 0700 nginx:nginx
d78c9c
- update init script to use killproc -p
d78c9c
- add reopen_logs command to init script
d78c9c
- update init script to use nginx -q option
d78c9c
d78c9c
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-2
d78c9c
- Fix linking of perl module
d78c9c
d78c9c
* Sun Oct 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.8.53-1
d78c9c
- Update to new stable 0.8.53
d78c9c
d78c9c
* Sat Jul 31 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-2
d78c9c
- add Provides: webserver (bug #619693)
d78c9c
d78c9c
* Sun Jun 20 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.67-1
d78c9c
- Update to new stable 0.7.67
d78c9c
- fix bugzilla #591543
d78c9c
d78c9c
* Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.7.65-2
d78c9c
- Mass rebuild with perl-5.12.0
d78c9c
d78c9c
* Mon Feb 15 2010 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.65-1
d78c9c
- Update to new stable 0.7.65
d78c9c
- change ownership of logdir to root:root
d78c9c
- add support for ipv6 (bug #561248)
d78c9c
- add random_index_module
d78c9c
- add secure_link_module
d78c9c
d78c9c
* Fri Dec 04 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.7.64-1
d78c9c
- Update to new stable 0.7.64