Changes of Revision 2
[+] | Deleted | nginx-polarssl.spec |
@@ -1,417 +0,0 @@ -%define nginx_user nginx -%define nginx_group %{nginx_user} -%define nginx_home %{_localstatedir}/lib/nginx -%define nginx_home_tmp %{nginx_home}/tmp -%define nginx_logdir %{_localstatedir}/log/nginx -%define nginx_confdir %{_sysconfdir}/nginx -%define nginx_datadir %{_datadir}/nginx -%define nginx_webroot %{nginx_datadir}/html - - -%define rtmp_ext nginx-rtmp-module -%define rtmp_ext_version 1.0.8 -%define rtmp %{rtmp_ext}-%{rtmp_ext_version} -%define rtmp_nover %{rtmp_ext} -%define with_rtmp_ext 1 -%define sticky_module_version 1.1 - -Name: nginx-polarssl -Version: 1.4.7 -Release: 1 -Summary: Robust, small and high performance http and reverse proxy server - heavy module extended pack incl. a few fixes to make them apply cleanly together. RPM Tag íxhuge from now. - -Group: System Environment/Daemons - -License: BSD -URL: http://nginx.net/ -BuildRoot: %{_tmppath}/%{name}-%{version}-root - -BuildRequires: pcre-devel zlib-devel polarssl polarssl-devel perl(ExtUtils::Embed) openssl-devel -BuildRequires: GeoIP-devel libaio-devel pam-devel - -# Modsec -BuildRequires: httpd-devel lua-devel curl-devel -BuildRequires: libxslt-devel,GeoIP-devel,gd-devel - -BuildRequires: libxml2-devel - - -Requires: pcre zlib openssl pam apr-util apr -Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) -Requires(pre): shadow-utils -Requires(post): chkconfig -Requires(preun): chkconfig initscripts -Requires(postun): initscripts - -Provides: webserver - -Source0: http://sysoev.ru/nginx/nginx-%{version}.tar.gz - -Source1: %{name}.init -Source2: %{name}.logrotate -Source3: virtual.conf -Source4: ssl.conf -Source5: nginx-upstream-fair.tgz -Source6: upstream-fair.conf -Source7: %{name}.sysconfig -Source8: ngx_slowfs_cache-1.5.tar.gz -Source9: Nginx-limit-traffic-rate-module.tar.gz -Source10: proxy.conf -Source11: nginx_upstream_check_module-master.tar.gz -Source12: nginx_tcp_proxy_module-0.4.5.tar.gz -Source13: nginx-upstream-carp-read-only.tar.gz -Source14: %{rtmp}.tar.gz -Source15: nginx-upload-module-2.2.zip -Source16: mod_zip-master.tar.gz -Source17: nginx-upload-progress-module-0.9.0.zip -Source18: ngx_http_auth_pam_module-1.2.tar.gz -Source20: GeoIPCountryWhois.csv -Source21: nginx-http-rdns.tar.gz - -Source100: index.html -Source101: poweredby.png -Source102: nginx-logo.png -Source103: 50x.html -Source104: 404.html -Source105: modsecurity.conf - -Source107: ngx_cache_purge-2.1.tar.gz -Source108: modsecurity-apache_2.7.7.tar.gz -Source109: ngx_pagespeed-release-1.6.29.5-beta.tar.gz - - - -# removes -Werror in upstream build scripts. -Werror conflicts with -# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors. -Patch0: nginx-auto-cc-gcc.patch - -# configuration patch to match all the Fedora paths for logs, pid files -# etc. -Patch1: nginx-conf-0.7.x.patch -Patch2: check_1.2.6+.patch -Patch3: nginx-memset_zero.patch -Patch4: tcp-proxymod.patch -Patch7: nginx-1.3.9-upload.patch -Patch8: nginx-1.3.12-polarssl-20130217.diff - -%description -Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 -proxy server written by Igor Sysoev. - -Following third party modules added: -* nginx-upstream-fair -* mod_zip -* ngx_http_auth_pam_module -* nginx-upload-progress-module -* nginx-upload-module -* nginx-rtmp-module -* nginx-upstream-check -* nginx-tcp-proxy -* nginx-slowfs-cache -* nginx-limit-traffic-rate -* nginx-upstream-carp-read-only -* nginx mod pagespeed -* nginx mod security -* nginx polar ssl patch - -%prep -%setup -q - -%setup -T -D -a 107 -a 108 -a 109 - -%patch0 -p0 -%patch1 -p0 -%patch2 -p1 -%patch4 -p1 -#%patch5 -p1 - -%{__tar} zxvf %{SOURCE5} -%{__tar} zxvf %{SOURCE9} -%{__tar} zxvf %{SOURCE11} -%{__tar} zxvf %{SOURCE12} -%{__tar} zxvf %{SOURCE13} -%{__tar} zxvf %{SOURCE14} -unzip %{SOURCE15} -%{__tar} zxvf %{SOURCE16} -unzip %{SOURCE17} -%{__tar} zxvf %{SOURCE18} - -%patch7 -p0 -%patch8 -p1 - -%build - -pushd modsecurity-apache_2.7.7 -# build mod_security library first -%configure \ -%if 0%{?el5} - --with-libxml=/var/mod_security/usr/ \ -%endif - --enable-standalone-module --enable-pcre-match-limit=no --enable-pcre-match-limit-recursion=no -make || : -cd standalone -make install-exec-hook || : -popd - - - -export DESTDIR=%{buildroot} -./configure \ - --user=%{nginx_user} \ - --group=%{nginx_group} \ - --prefix=%{nginx_datadir} \ - --sbin-path=%{_sbindir}/%{name} \ - --conf-path=%{nginx_confdir}/%{name}.conf \ - --error-log-path=%{nginx_logdir}/error.log \ - --http-log-path=%{nginx_logdir}/access.log \ - --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ - --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ - --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ - --pid-path=%{_localstatedir}/run/%{name}.pid \ - --lock-path=%{_localstatedir}/lock/subsys/%{name} \ - --with-http_secure_link_module \ - --with-http_random_index_module \ - --with-polarssl \ - --with-http_ssl_module \ - --with-http_realip_module \ - --with-http_addition_module \ - --with-http_sub_module \ - --with-http_dav_module \ - --with-http_flv_module \ - --with-http_gzip_static_module \ - --with-http_degradation_module \ - --with-http_stub_status_module \ - --with-http_mp4_module \ - --with-http_geoip_module \ - --with-http_perl_module \ - --with-debug \ - --with-ipv6 \ - --with-http_spdy_module \ - --add-module=%{_builddir}/nginx-%{version}/modsecurity-apache_2.7.7/nginx/modsecurity \ - --add-module=%{_builddir}/nginx-%{version}/ngx_cache_purge-2.1 \ - --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair \ - --add-module=%{_builddir}/nginx-%{version}/nginx_upstream_check_module-master \ - --add-module=%{_builddir}/nginx-%{version}/%{rtmp} \ - --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ - --add-module=%{_builddir}/nginx-%{version}/nginx_tcp_proxy_module-0.4.5 \ - --add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module-master \ - --add-module=%{_builddir}/nginx-%{version}/mod_zip-master \ - --add-module=%{_builddir}/nginx-%{version}/nginx-upload-module-2.2 \ | ||
[-] | Added | nginx.spec ^ |
x 1
2 +%define nginx_user nginx 3 +%define nginx_group %{nginx_user} 4 +%define nginx_home %{_localstatedir}/lib/nginx 5 +%define nginx_home_tmp %{nginx_home}/tmp 6 +%define nginx_logdir %{_localstatedir}/log/nginx 7 +%define nginx_confdir %{_sysconfdir}/nginx 8 +%define nginx_datadir %{_datadir}/nginx 9 +%define nginx_webroot %{nginx_datadir}/html 10 + 11 + 12 +%define rtmp_ext nginx-rtmp-module 13 +%define rtmp_ext_version 1.0.8 14 +%define rtmp %{rtmp_ext}-%{rtmp_ext_version} 15 +%define rtmp_nover %{rtmp_ext} 16 +%define with_rtmp_ext 1 17 +%define sticky_module_version 1.1 18 + 19 +Name: nginx 20 +Version: 1.4.7 21 +Release: 1 22 +Summary: Robust, small and high performance http and reverse proxy server - heavy module extended pack incl. a few fixes to make them apply cleanly together. RPM Tag íxhuge from now. 23 + 24 +Group: System Environment/Daemons 25 + 26 +License: BSD 27 +URL: http://nginx.net/ 28 +BuildRoot: %{_tmppath}/%{name}-%{version}-root 29 + 30 +BuildRequires: pcre-devel zlib-devel polarssl polarssl-devel perl(ExtUtils::Embed) openssl-devel 31 +BuildRequires: GeoIP-devel libaio-devel pam-devel 32 + 33 +# Modsec 34 +BuildRequires: httpd-devel lua-devel curl-devel 35 +BuildRequires: libxslt-devel,GeoIP-devel,gd-devel 36 + 37 +BuildRequires: libxml2-devel 38 + 39 + 40 +Requires: pcre zlib openssl pam apr-util apr 41 +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) 42 +Requires(pre): shadow-utils 43 +Requires(post): chkconfig 44 +Requires(preun): chkconfig initscripts 45 +Requires(postun): initscripts 46 + 47 +Provides: webserver 48 + 49 +Source0: http://sysoev.ru/nginx/nginx-%{version}.tar.gz 50 + 51 +Source1: %{name}.init 52 +Source2: %{name}.logrotate 53 +Source3: virtual.conf 54 +Source4: ssl.conf 55 +Source5: nginx-upstream-fair.tgz 56 +Source6: upstream-fair.conf 57 +Source7: %{name}.sysconfig 58 +Source8: ngx_slowfs_cache-1.5.tar.gz 59 +Source9: Nginx-limit-traffic-rate-module.tar.gz 60 +Source10: proxy.conf 61 +Source11: nginx_upstream_check_module-master.tar.gz 62 +Source12: nginx_tcp_proxy_module-0.4.5.tar.gz 63 +Source13: nginx-upstream-carp-read-only.tar.gz 64 +Source14: %{rtmp}.tar.gz 65 +Source15: nginx-upload-module-2.2.zip 66 +Source16: mod_zip-master.tar.gz 67 +Source17: nginx-upload-progress-module-0.9.0.zip 68 +Source18: ngx_http_auth_pam_module-1.2.tar.gz 69 +Source20: GeoIPCountryWhois.csv 70 +Source21: nginx-http-rdns.tar.gz 71 + 72 +Source100: index.html 73 +Source101: poweredby.png 74 +Source102: nginx-logo.png 75 +Source103: 50x.html 76 +Source104: 404.html 77 +Source105: modsecurity.conf 78 + 79 +Source107: ngx_cache_purge-2.1.tar.gz 80 +Source108: modsecurity-apache_2.7.7.tar.gz 81 +Source109: ngx_pagespeed-release-1.6.29.5-beta.tar.gz 82 + 83 + 84 + 85 +# removes -Werror in upstream build scripts. -Werror conflicts with 86 +# -D_FORTIFY_SOURCE=2 causing warnings to turn into errors. 87 +Patch0: nginx-auto-cc-gcc.patch 88 + 89 +# configuration patch to match all the Fedora paths for logs, pid files 90 +# etc. 91 +Patch1: nginx-conf-0.7.x.patch 92 +Patch2: check_1.2.6+.patch 93 +Patch3: nginx-memset_zero.patch 94 +Patch4: tcp-proxymod.patch 95 +Patch7: nginx-1.3.9-upload.patch 96 +Patch8: nginx-1.3.12-polarssl-20130217.diff 97 + 98 +%description 99 +Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3 100 +proxy server written by Igor Sysoev. 101 + 102 +Following third party modules added: 103 +* nginx-upstream-fair 104 +* mod_zip 105 +* ngx_http_auth_pam_module 106 +* nginx-upload-progress-module 107 +* nginx-upload-module 108 +* nginx-rtmp-module 109 +* nginx-upstream-check 110 +* nginx-tcp-proxy 111 +* nginx-slowfs-cache 112 +* nginx-limit-traffic-rate 113 +* nginx-upstream-carp-read-only 114 +* nginx mod pagespeed 115 +* nginx mod security 116 +* nginx polar ssl patch 117 + 118 +%prep 119 +%setup -q 120 + 121 +%setup -T -D -a 107 -a 108 -a 109 122 + 123 +%patch0 -p0 124 +%patch1 -p0 125 +%patch2 -p1 126 +%patch4 -p1 127 +#%patch5 -p1 128 + 129 +%{__tar} zxvf %{SOURCE5} 130 +%{__tar} zxvf %{SOURCE9} 131 +%{__tar} zxvf %{SOURCE11} 132 +%{__tar} zxvf %{SOURCE12} 133 +%{__tar} zxvf %{SOURCE13} 134 +%{__tar} zxvf %{SOURCE14} 135 +unzip %{SOURCE15} 136 +%{__tar} zxvf %{SOURCE16} 137 +unzip %{SOURCE17} 138 +%{__tar} zxvf %{SOURCE18} 139 + 140 +%patch7 -p0 141 +%patch8 -p1 142 + 143 +%build 144 + 145 +pushd modsecurity-apache_2.7.7 146 +# build mod_security library first 147 +%configure \ 148 +%if 0%{?el5} 149 + --with-libxml=/var/mod_security/usr/ \ 150 +%endif 151 + --enable-standalone-module --enable-pcre-match-limit=no --enable-pcre-match-limit-recursion=no 152 +make || : 153 +cd standalone 154 +make install-exec-hook || : 155 +popd 156 + 157 + 158 + 159 +export DESTDIR=%{buildroot} 160 +./configure \ 161 + --user=%{nginx_user} \ 162 + --group=%{nginx_group} \ 163 + --prefix=%{nginx_datadir} \ 164 + --sbin-path=%{_sbindir}/%{name} \ 165 + --conf-path=%{nginx_confdir}/%{name}.conf \ 166 + --error-log-path=%{nginx_logdir}/error.log \ 167 + --http-log-path=%{nginx_logdir}/access.log \ 168 + --http-client-body-temp-path=%{nginx_home_tmp}/client_body \ 169 + --http-proxy-temp-path=%{nginx_home_tmp}/proxy \ 170 + --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \ 171 + --pid-path=%{_localstatedir}/run/%{name}.pid \ 172 + --lock-path=%{_localstatedir}/lock/subsys/%{name} \ 173 + --with-http_secure_link_module \ 174 + --with-http_random_index_module \ 175 + --with-polarssl \ 176 + --with-http_ssl_module \ 177 + --with-http_realip_module \ 178 + --with-http_addition_module \ 179 + --with-http_sub_module \ 180 + --with-http_dav_module \ 181 + --with-http_flv_module \ 182 + --with-http_gzip_static_module \ 183 + --with-http_degradation_module \ 184 + --with-http_stub_status_module \ 185 + --with-http_mp4_module \ 186 + --with-http_geoip_module \ 187 + --with-http_perl_module \ 188 + --with-debug \ 189 + --with-ipv6 \ 190 + --with-http_spdy_module \ 191 + --add-module=%{_builddir}/nginx-%{version}/modsecurity-apache_2.7.7/nginx/modsecurity \ 192 + --add-module=%{_builddir}/nginx-%{version}/ngx_cache_purge-2.1 \ 193 + --add-module=%{_builddir}/nginx-%{version}/nginx-upstream-fair \ 194 + --add-module=%{_builddir}/nginx-%{version}/nginx_upstream_check_module-master \ 195 + --add-module=%{_builddir}/nginx-%{version}/%{rtmp} \ 196 + --add-module=%{_builddir}/nginx-%{version}/Nginx-limit-traffic-rate-module \ 197 + --add-module=%{_builddir}/nginx-%{version}/nginx_tcp_proxy_module-0.4.5 \ 198 + --add-module=%{_builddir}/nginx-%{version}/nginx-upload-progress-module-master \ 199 + --add-module=%{_builddir}/nginx-%{version}/mod_zip-master \ 200 + --add-module=%{_builddir}/nginx-%{version}/nginx-upload-module-2.2 \ 201 |