Blame SPECS/nginx.spec

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