]>
Commit | Line | Data |
---|---|---|
f9e65082 | 1 | # TODO |
ee4f2132 | 2 | # - /etc/sysconfig/nginx file |
1c438d78 | 3 | # - missing perl build/install requires |
ee4f2132 | 4 | # |
362f5ab2 | 5 | # Conditional build for nginx: |
d2732616 ER |
6 | # Features |
7 | %bcond_with debug # enable debug logging: http://nginx.org/en/docs/debugging_log.html | |
d54a9642 | 8 | %bcond_without threads # thread pool support |
d2732616 ER |
9 | # Modules |
10 | %bcond_without addition # http addition module | |
11 | %bcond_without auth_request # auth_request module | |
12 | %bcond_without dav # WebDAV | |
13 | %bcond_without flv # http FLV module | |
278483d6 | 14 | %bcond_without gd # without http image filter module |
82f38dc6 | 15 | %bcond_without geoip # without http geoip module and stream geoip module |
d2732616 ER |
16 | %bcond_without http2 # HTTP/2 module |
17 | %bcond_without mail # don't build imap/mail proxy | |
18 | %bcond_without perl # don't build with perl module | |
19 | %bcond_without poll # poll module | |
20 | %bcond_without realip # real ip (behind proxy) | |
21 | %bcond_without select # select module | |
22 | %bcond_without ssl # ssl support and http ssl module | |
23 | %bcond_without stream # TCP/UDP proxy module | |
24 | %bcond_without stub_status # http stub status module | |
25 | %bcond_without sub # ngx_http_sub_module | |
278483d6 | 26 | %bcond_without xslt # without http xslt module |
d2732616 | 27 | %bcond_with http_browser # http browser module (header "User-agent" parser) |
ba5570e8 | 28 | %bcond_with modsecurity # modsecurity module |
d2732616 | 29 | %bcond_with rtmp # rtmp support |
fb649fe5 | 30 | |
8cf64677 WF |
31 | %ifarch x32 |
32 | %undefine with_rtsig | |
33 | %endif | |
34 | ||
27ce902f | 35 | %define ssl_version 1.0.2 |
5d0d957d | 36 | %define rtmp_version 1.1.7 |
aa6a1e55 | 37 | %define modsecurity_version 2.9.1 |
8e1389c7 | 38 | Summary: High perfomance HTTP and reverse proxy server |
185313bb | 39 | Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności |
3dfa1ca2 AM |
40 | # nginx lines: |
41 | # - stable: production quality with stable API | |
42 | # - mainline: production quality but API can change | |
f9e65082 | 43 | Name: nginx |
69afa2ca | 44 | Version: 1.11.5 |
57aa9c0a | 45 | Release: 0.5 |
51ef519b | 46 | License: BSD-like |
cbf76340 | 47 | Group: Networking/Daemons/HTTP |
06e274b9 | 48 | Source0: http://nginx.org/download/%{name}-%{version}.tar.gz |
69afa2ca | 49 | # Source0-md5: db43f2b19746f6f47401c3afc3924dc6 |
06e274b9 | 50 | Source1: http://nginx.net/favicon.ico |
87404bf2 | 51 | # Source1-md5: 2aaf2115c752cbdbfb8a2f0b3c3189ab |
06e274b9 | 52 | Source2: proxy.conf |
226bcc40 | 53 | Source3: %{name}.logrotate |
54 | Source4: %{name}.mime | |
7f97359c | 55 | Source6: %{name}.monitrc |
2cb3d9b2 | 56 | Source7: %{name}.init |
5d9f0850 | 57 | Source14: %{name}.conf |
7d80c773 | 58 | Source17: %{name}-mime.types.sh |
8d0ed4b0 | 59 | Source18: %{name}.service |
ba5570e8 | 60 | Source22: http://www.modsecurity.org/tarball/%{modsecurity_version}/modsecurity-%{modsecurity_version}.tar.gz |
aa6a1e55 | 61 | # Source22-md5: 0fa92b852abc857a20b9e24f83f814cf |
278483d6 | 62 | Source101: https://github.com/arut/nginx-rtmp-module/archive/v%{rtmp_version}/%{name}-rtmp-module-%{rtmp_version}.tar.gz |
5d0d957d | 63 | # Source101-md5: 8006de2560db3e55bb15d110220076ac |
5ca9795d | 64 | Patch0: %{name}-no-Werror.patch |
7ce2935c | 65 | Patch1: %{name}-modsecurity-xheaders.patch |
51ef519b | 66 | URL: http://nginx.net/ |
dfef7372 | 67 | BuildRequires: mailcap |
f1fc9780 | 68 | BuildRequires: pcre-devel |
d323480a | 69 | BuildRequires: rpmbuild(macros) >= 1.644 |
f9e65082 | 70 | BuildRequires: zlib-devel |
278483d6 ER |
71 | %if %{with geoip} |
72 | BuildRequires: GeoIP-devel | |
73 | %endif | |
74 | %if %{with gd} | |
75 | BuildRequires: gd-devel | |
76 | %endif | |
77 | %if %{with modsecurity} | |
78 | BuildRequires: lua-devel | |
79 | %endif | |
80 | %if %{with perl} | |
81 | BuildRequires: perl-CGI | |
82 | BuildRequires: perl-devel | |
83 | BuildRequires: python | |
84 | BuildRequires: rpm-perlprov | |
85 | %endif | |
86 | %if %{with ssl} | |
87 | BuildRequires: openssl-devel >= %{ssl_version} | |
88 | Requires: openssl >= %{ssl_version} | |
89 | %endif | |
90 | %if %{with xslt} | |
91 | BuildRequires: libxslt-devel | |
92 | %endif | |
1a973791 JK |
93 | Provides: group(http) |
94 | Provides: group(nginx) | |
95 | Provides: user(nginx) | |
4ac1d45f | 96 | Provides: webserver |
9b47506f AM |
97 | Provides: webserver(access) |
98 | Provides: webserver(alias) | |
81d5057a JK |
99 | Provides: webserver(auth) |
100 | Provides: webserver(expires) | |
101 | Provides: webserver(headers) | |
1e42c256 | 102 | Provides: webserver(indexfile) |
81d5057a JK |
103 | Provides: webserver(log) |
104 | Provides: webserver(mime) | |
105 | Provides: webserver(reqtimeout) | |
106 | Provides: webserver(rewrite) | |
107 | Provides: webserver(setenv) | |
1a973791 | 108 | Conflicts: logrotate < 3.8.0 |
85600569 | 109 | Requires(post,preun): /sbin/chkconfig |
1a973791 | 110 | Requires(post,preun,postun): systemd-units >= 38 |
4ac1d45f ER |
111 | Requires(postun): /usr/sbin/groupdel |
112 | Requires(postun): /usr/sbin/userdel | |
113 | Requires(pre): /bin/id | |
114 | Requires(pre): /usr/bin/getgid | |
115 | Requires(pre): /usr/sbin/groupadd | |
116 | Requires(pre): /usr/sbin/useradd | |
117 | Requires: rc-scripts >= 0.2.0 | |
118 | Requires: systemd-units >= 38 | |
119 | Suggests: vim-syntax-nginx | |
120 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
2ee780b1 | 121 | |
4ac1d45f ER |
122 | %define _sysconfdir /etc/%{name} |
123 | %define _nginxdir /home/services/%{name} | |
124 | ||
125 | %description | |
1a973791 JK |
126 | nginx ("engine x") is a high-performance HTTP server and reverse |
127 | proxy, as well as an IMAP/POP3 proxy server. nginx was written by Igor | |
128 | Sysoev for Rambler.ru, Russia's second-most visited website, where it | |
129 | has been running in production for over two and a half years. Igor has | |
130 | released the source code under a BSD-like license. Although still in | |
131 | beta, nginx is known for its stability, rich feature set, simple | |
132 | configuration, and low resource consumption. | |
133 | ||
4ac1d45f | 134 | %description -l pl.UTF-8 |
1a973791 | 135 | nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy |
5ca9795d ER |
136 | a także IMAP/POP3 proxy. nginx został napisany przez Igora Sysoeva na |
137 | potrzeby serwisu Rambler.ru. Jest to drugi pod względem ilości | |
1a973791 | 138 | odwiedzin serwis w Rosji i działa od ponad dwóch i pół roku. Igor |
5ca9795d ER |
139 | opublikował źródła na licencji BSD. Mimo, że projekt jest ciągle w |
140 | fazie beta, już zasłynął dzięki stabilności, bogactwu dodatków, | |
1a973791 JK |
141 | prostej konfiguracji oraz małej "zasobożerności". |
142 | ||
278483d6 ER |
143 | %package mod_http_geoip |
144 | Summary: Nginx HTTP geoip module | |
145 | Group: Daemons | |
146 | Requires: %{name} = %{version}-%{release} | |
147 | Requires: GeoIP | |
148 | ||
149 | %description mod_http_geoip | |
150 | Nginx HTTP geoip module. | |
151 | ||
82f38dc6 ER |
152 | %package mod_stream_geoip |
153 | Summary: Nginx stream geoip module | |
154 | Group: Daemons | |
155 | Requires: %{name} = %{version}-%{release} | |
57aa9c0a | 156 | Requires: %{name}-mod_stream = %{version}-%{release} |
82f38dc6 ER |
157 | Requires: GeoIP |
158 | ||
159 | %description mod_stream_geoip | |
160 | Nginx stream geoip module. | |
161 | ||
278483d6 ER |
162 | %package mod_http_image_filter |
163 | Summary: Nginx HTTP image filter module | |
164 | Group: Daemons | |
165 | Requires: %{name} = %{version}-%{release} | |
166 | ||
167 | %description mod_http_image_filter | |
168 | Nginx HTTP image filter module. | |
169 | ||
f5d76ba0 ER |
170 | %package mod_http_perl |
171 | Summary: Nginx HTTP Perl module | |
cbf76340 | 172 | Group: Networking/Daemons/HTTP |
4ac1d45f | 173 | Requires: %{name} = %{version}-%{release} |
2ee780b1 | 174 | |
f5d76ba0 ER |
175 | %description mod_http_perl |
176 | Nginx HTTP Perl module. | |
2ee780b1 | 177 | |
278483d6 ER |
178 | %package mod_http_xslt_filter |
179 | Summary: Nginx XSLT module | |
180 | Group: Daemons | |
181 | Requires: %{name} = %{version}-%{release} | |
182 | ||
183 | %description mod_http_xslt_filter | |
184 | Nginx XSLT module. | |
185 | ||
f5d76ba0 ER |
186 | %package mod_mail |
187 | Summary: Nginx mail module | |
cbf76340 | 188 | Group: Networking/Daemons/HTTP |
4ac1d45f | 189 | Requires: %{name} = %{version}-%{release} |
2ee780b1 | 190 | |
f5d76ba0 ER |
191 | %description mod_mail |
192 | Nginx mail module. | |
2ee780b1 | 193 | |
278483d6 ER |
194 | %package mod_stream |
195 | Summary: Nginx stream modules | |
196 | Group: Daemons | |
197 | Requires: %{name} = %{version}-%{release} | |
198 | ||
199 | %description mod_stream | |
200 | Nginx stream modules. | |
201 | ||
dd7459ac | 202 | %package -n monit-rc-nginx |
57f21172 | 203 | Summary: nginx support for monit |
204 | Summary(pl.UTF-8): Wsparcie nginx dla monit | |
60b8f836 | 205 | Group: Applications/System |
4ac1d45f | 206 | Requires: %{name} = %{version}-%{release} |
1cf92547 | 207 | Requires: monit |
dd7459ac | 208 | |
209 | %description -n monit-rc-nginx | |
57f21172 | 210 | monitrc file for monitoring nginx webserver. |
dd7459ac | 211 | |
212 | %description -n monit-rc-nginx -l pl.UTF-8 | |
57f21172 | 213 | Plik monitrc do monitorowania serwera WWW nginx. |
dd7459ac | 214 | |
f9e65082 | 215 | %prep |
ba5570e8 | 216 | %setup -q %{?with_rtmp:-a101} %{?with_modsecurity:-a22} |
717159c4 | 217 | %patch0 -p0 |
7ce2935c | 218 | %{?with_modsecurity:%patch1 -p0} |
f9e65082 | 219 | |
fb649fe5 ER |
220 | %if %{with rtmp} |
221 | mv nginx-rtmp-module-%{rtmp_version} nginx-rtmp-module | |
222 | %endif | |
223 | ||
a8eaad11 | 224 | # build mime.types.conf |
7d80c773 | 225 | #sh %{SOURCE17} /etc/mime.types |
a8eaad11 | 226 | |
f9e65082 ER |
227 | %build |
228 | # NB: not autoconf generated configure | |
056acc18 | 229 | cp -f configure auto/ |
5d0d957d | 230 | |
056acc18 | 231 | ./configure \ |
232 | --prefix=%{_prefix} \ | |
483adace | 233 | --modules-path=%{_libdir}/%{name}/modules \ |
efc6207e ER |
234 | --sbin-path=%{_sbindir}/%{name} \ |
235 | --conf-path=%{_sysconfdir}/%{name}.conf \ | |
236 | --error-log-path=%{_localstatedir}/log/%{name}/error.log \ | |
237 | --http-log-path=%{_localstatedir}/log/%{name}/access.log \ | |
238 | --pid-path=%{_localstatedir}/run/%{name}.pid \ | |
239 | --lock-path=%{_localstatedir}/lock/subsys/%{name} \ | |
240 | --http-client-body-temp-path=%{_localstatedir}/cache/%{name}/client_body_temp \ | |
241 | --http-fastcgi-temp-path=%{_localstatedir}/cache/%{name}/fastcgi_temp \ | |
242 | --http-proxy-temp-path=%{_localstatedir}/cache/%{name}/proxy_temp \ | |
2fb62cf2 ER |
243 | --user=nginx \ |
244 | --group=nginx \ | |
021e3ce8 ER |
245 | %{?with_select:--with-select_module} \ |
246 | %{?with_poll:--with-poll_module} \ | |
247 | %{?with_rtsig:--with-rtsig_module} \ | |
278483d6 | 248 | %{?with_perl:--with-http_perl_module=dynamic} \ |
278483d6 ER |
249 | %{?with_gd:--with-http_image_filter_module=dynamic} \ |
250 | %{?with_xslt:--with-http_xslt_module=dynamic} \ | |
82f38dc6 ER |
251 | %{?with_geoip:--with-http_geoip_module=dynamic} \ |
252 | %{?with_geoip:--with-stream_geoip_module=dynamic} \ | |
008e09c3 ER |
253 | %if %{with mail} |
254 | --with-mail=dynamic \ | |
255 | --with-mail_ssl_module \ | |
278483d6 ER |
256 | %endif |
257 | %if %{with stream} | |
258 | --with-stream=dynamic \ | |
259 | --with-stream_ssl_module \ | |
008e09c3 | 260 | %endif |
2fb62cf2 ER |
261 | --with-cc="%{__cc}" \ |
262 | --with-cc-opt="%{rpmcflags}" \ | |
263 | --with-ld-opt="%{rpmldflags}" \ | |
0aa7dc69 | 264 | %{?with_debug:--with-debug} \ |
056acc18 | 265 | %{?with_addition:--with-http_addition_module} \ |
266 | %{?with_dav:--with-http_dav_module} \ | |
267 | %{?with_flv:--with-http_flv_module} \ | |
d6fc4b09 | 268 | %{?with_sub:--with-http_sub_module} \ |
056acc18 | 269 | %{?with_realip:--with-http_realip_module} \ |
d2732616 | 270 | %{?with_stub_status:--with-http_stub_status_module} \ |
056acc18 | 271 | %{?with_ssl:--with-http_ssl_module} \ |
272 | %{!?with_http_browser:--without-http_browser_module} \ | |
fb649fe5 | 273 | %{?with_rtmp:--add-module=./nginx-rtmp-module} \ |
e9a11359 | 274 | %{?with_auth_request:--with-http_auth_request_module} \ |
8cf64677 | 275 | %{?with_threads:--with-threads} \ |
6f05a009 | 276 | %{?with_http2:--with-http_v2_module} \ |
ba5570e8 | 277 | %{?with_modsecurity:--add-module=modsecurity-%{modsecurity_version}/nginx/modsecurity} \ |
ca3f3f03 | 278 | --with-http_secure_link_module \ |
2fb62cf2 ER |
279 | %{nil} |
280 | ||
53215d5e | 281 | %{__make} |
056acc18 | 282 | |
53215d5e ER |
283 | %if %{with modsecurity} |
284 | cd modsecurity-%{modsecurity_version} | |
285 | ./autogen.sh | |
286 | %configure \ | |
287 | --enable-standalone-module \ | |
288 | --disable-mlogc \ | |
289 | --enable-alp2 \ | |
290 | --with-lua=/usr | |
291 | %{__make} | |
292 | cd .. | |
293 | %endif | |
f9e65082 ER |
294 | |
295 | %install | |
296 | rm -rf $RPM_BUILD_ROOT | |
362f5ab2 | 297 | install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \ |
298 | $RPM_BUILD_ROOT%{_nginxdir}/{cgi-bin,html,errors} \ | |
4e61eac8 | 299 | $RPM_BUILD_ROOT%{_localstatedir}/log/{%{name},archive/%{name}} \ |
c63e9e18 ER |
300 | $RPM_BUILD_ROOT%{_localstatedir}/cache/%{name} \ |
301 | $RPM_BUILD_ROOT%{_localstatedir}/lock/subsys/%{name} \ | |
97ac281a | 302 | $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/{conf,modules,vhosts,webapps}.d} \ |
d323480a | 303 | $RPM_BUILD_ROOT/etc/{logrotate.d,monit} \ |
599f35f0 | 304 | $RPM_BUILD_ROOT{%{systemdunitdir},/etc/systemd/system} |
f9e65082 | 305 | |
483adace ER |
306 | %{__make} install \ |
307 | INSTALLDIRS=vendor \ | |
308 | DESTDIR=$RPM_BUILD_ROOT | |
309 | ||
310 | %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.default | |
311 | ||
7f97359c ER |
312 | cp -p %{_sourcedir}/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir} |
313 | cp -p %{_sourcedir}/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir} | |
314 | cp -p %{_sourcedir}/%{name}.monitrc $RPM_BUILD_ROOT/etc/monit | |
c63e9e18 ER |
315 | install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
316 | ||
483adace ER |
317 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
318 | cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/proxy.conf | |
3c75ce8a | 319 | cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mime.types |
483adace ER |
320 | rm -r $RPM_BUILD_ROOT%{_prefix}/html |
321 | cp -p html/index.html $RPM_BUILD_ROOT%{_nginxdir}/html | |
322 | cp -p html/50x.html $RPM_BUILD_ROOT%{_nginxdir}/errors | |
5ca9795d | 323 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_nginxdir}/html/favicon.ico |
85600569 | 324 | |
a88a446d ER |
325 | load_module() { |
326 | local module=ngx_${1}_module.so conffile=mod_$1.conf | |
9453c586 | 327 | printf 'load_module "%{_libdir}/%{name}/modules/%s";' "$module" \ |
97ac281a | 328 | > $RPM_BUILD_ROOT%{_sysconfdir}/modules.d/$conffile |
a88a446d ER |
329 | } |
330 | ||
85600569 | 331 | %if %{with perl} |
483adace ER |
332 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
333 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/nginx/.packlist | |
a88a446d ER |
334 | load_module http_perl |
335 | %endif | |
336 | ||
337 | %if %{with geoip} | |
338 | load_module http_geoip | |
763de572 | 339 | load_module stream_geoip |
a88a446d ER |
340 | %endif |
341 | %if %{with gd} | |
342 | load_module http_image_filter | |
343 | %endif | |
344 | %if %{with xslt} | |
345 | load_module http_xslt_filter | |
346 | %endif | |
347 | %if %{with mail} | |
348 | load_module mail | |
349 | %endif | |
350 | %if %{with stream} | |
351 | load_module stream | |
483adace ER |
352 | %endif |
353 | ||
f9e65082 ER |
354 | %clean |
355 | rm -rf $RPM_BUILD_ROOT | |
356 | ||
c63e9e18 | 357 | %pre |
a37373c3 | 358 | %groupadd -r -g 213 %{name} |
362f5ab2 | 359 | %groupadd -g 51 http |
a37373c3 | 360 | %useradd -r -u 213 -d /usr/share/empty -s /bin/false -c "Nginx HTTP User" -g %{name} %{name} |
362f5ab2 | 361 | %addusertogroup %{name} http |
f1fc9780 | 362 | |
c63e9e18 | 363 | %post |
738166d2 | 364 | for a in access.log error.log; do |
c63e9e18 | 365 | if [ ! -f /var/log/%{name}/$a ]; then |
98376457 | 366 | umask 022 |
c63e9e18 ER |
367 | touch /var/log/%{name}/$a |
368 | chown nginx:nginx /var/log/%{name}/$a | |
369 | chmod 644 /var/log/%{name}/$a | |
738166d2 | 370 | fi |
371 | done | |
c63e9e18 ER |
372 | /sbin/chkconfig --add %{name} |
373 | %systemd_post %{name}.service | |
374 | %service %{name} force-reload | |
738166d2 | 375 | |
c63e9e18 | 376 | %preun |
7d80c773 | 377 | if [ "$1" = "0" ];then |
c63e9e18 ER |
378 | %service %{name} stop |
379 | /sbin/chkconfig --del %{name} | |
0663f9da | 380 | fi |
c63e9e18 | 381 | %systemd_preun %{name}.service |
0663f9da | 382 | |
c63e9e18 | 383 | %postun |
f1fc9780 | 384 | if [ "$1" = "0" ]; then |
7d9b86c7 ER |
385 | %userremove %{name} |
386 | %groupremove %{name} | |
f1fc9780 | 387 | fi |
d323480a JK |
388 | %systemd_reload |
389 | ||
c63e9e18 | 390 | %files |
f9e65082 | 391 | %defattr(644,root,root,755) |
6f8318ed | 392 | %doc CHANGES LICENSE README html/index.html conf/nginx.conf |
f9e65082 | 393 | %doc %lang(ru) CHANGES.ru |
28a25161 | 394 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
7f6266e4 ER |
395 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
396 | %dir %attr(750,root,nginx) %{_sysconfdir} | |
943e8c63 | 397 | %dir %{_sysconfdir}/conf.d |
97ac281a | 398 | %dir %{_sysconfdir}/modules.d |
7f6266e4 ER |
399 | %dir %{_sysconfdir}/vhosts.d |
400 | %dir %{_sysconfdir}/webapps.d | |
f1fc9780 | 401 | %attr(640,root,root) %{_sysconfdir}/mime.types |
57f21172 | 402 | %attr(640,root,root) %{_sysconfdir}/koi-utf |
403 | %attr(640,root,root) %{_sysconfdir}/koi-win | |
404 | %attr(640,root,root) %{_sysconfdir}/win-utf | |
7f6266e4 ER |
405 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nginx.conf |
406 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/proxy.conf | |
407 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fastcgi_params | |
408 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scgi_params | |
409 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uwsgi_params | |
483adace | 410 | %attr(755,root,root) %{_sbindir}/%{name} |
278483d6 ER |
411 | %dir %{_libdir}/%{name} |
412 | %dir %{_libdir}/%{name}/modules | |
c63e9e18 | 413 | %{systemdunitdir}/%{name}.service |
b0fa7cc6 | 414 | |
7f6266e4 ER |
415 | %attr(750,nginx,logs) %dir /var/log/archive/%{name} |
416 | %attr(750,nginx,logs) /var/log/%{name} | |
417 | %attr(770,root,nginx) /var/cache/%{name} | |
418 | ||
419 | %dir %{_nginxdir} | |
420 | %dir %{_nginxdir}/cgi-bin | |
421 | %dir %{_nginxdir}/html | |
422 | %dir %{_nginxdir}/errors | |
423 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_nginxdir}/html/* | |
424 | %config(noreplace,missingok) %verify(not md5 mtime size) %{_nginxdir}/errors/* | |
425 | ||
278483d6 ER |
426 | %if %{with geoip} |
427 | %files mod_http_geoip | |
85600569 | 428 | %defattr(644,root,root,755) |
97ac281a | 429 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_geoip.conf |
278483d6 | 430 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_geoip_module.so |
82f38dc6 ER |
431 | |
432 | %files mod_stream_geoip | |
433 | %defattr(644,root,root,755) | |
97ac281a | 434 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_stream_geoip.conf |
82f38dc6 | 435 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_stream_geoip_module.so |
278483d6 ER |
436 | %endif |
437 | ||
438 | %if %{with gd} | |
439 | %files mod_http_image_filter | |
440 | %defattr(644,root,root,755) | |
97ac281a | 441 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_image_filter.conf |
278483d6 | 442 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_image_filter_module.so |
008e09c3 | 443 | %endif |
85600569 | 444 | |
85600569 | 445 | %if %{with perl} |
f5d76ba0 | 446 | %files mod_http_perl |
85600569 | 447 | %defattr(644,root,root,755) |
97ac281a | 448 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_perl.conf |
008e09c3 | 449 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_perl_module.so |
85600569 | 450 | %dir %{perl_vendorarch}/auto/%{name} |
451 | %attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so | |
98376457 | 452 | %{perl_vendorarch}/%{name}.pm |
483adace | 453 | %{_mandir}/man3/nginx.3pm* |
483adace | 454 | %endif |
dd7459ac | 455 | |
278483d6 ER |
456 | %if %{with xslt} |
457 | %files mod_http_xslt_filter | |
458 | %defattr(644,root,root,755) | |
97ac281a | 459 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_xslt_filter.conf |
278483d6 ER |
460 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_xslt_filter_module.so |
461 | %endif | |
462 | ||
463 | %if %{with mail} | |
464 | %files mod_mail | |
465 | %defattr(644,root,root,755) | |
97ac281a | 466 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_mail.conf |
278483d6 ER |
467 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_mail_module.so |
468 | %endif | |
469 | ||
470 | %if %{with stream} | |
471 | %files mod_stream | |
472 | %defattr(644,root,root,755) | |
97ac281a | 473 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_stream.conf |
278483d6 ER |
474 | %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_stream_module.so |
475 | %endif | |
476 | ||
dd7459ac | 477 | %files -n monit-rc-nginx |
478 | %defattr(644,root,root,755) | |
c63e9e18 | 479 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc |