Logoj0ke.net Open Build Service > Projects > home:jg:http-testing:polarssl > nginx > Changes
Sign Up | Log In

Changes of Revision 2

[+] Deleted nginx-polarssl.spec
[-] Added nginx.spec ^
x
 
1
@@ -0,0 +1,417 @@
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