2 # - /etc/sysconfig/nginx file
3 # - missing perl build/install requires
4 # - add njs: https://nginx.org/en/docs/njs/
6 # Conditional build for nginx:
8 %bcond_with debug # enable debug logging: http://nginx.org/en/docs/debugging_log.html
9 %bcond_without file_aio # file AIO support
10 %bcond_without threads # thread pool support
12 %bcond_without addition # http addition module
13 %bcond_without auth_request # auth_request module
14 %bcond_without dav # WebDAV
15 %bcond_without flv # http FLV module
16 %bcond_without gd # without http image filter module
17 %bcond_without geoip # without http geoip module and stream geoip module
18 %bcond_without http2 # HTTP/2 module
19 %bcond_without http3 # HTTP/3 module
20 %bcond_without mail # don't build imap/mail proxy
21 %bcond_without perl # don't build with perl module
22 %bcond_without poll # poll module
23 %bcond_without realip # real ip (behind proxy)
24 %bcond_without select # select module
25 %bcond_without ssl # ssl support and http ssl module
26 %bcond_without stream # TCP/UDP proxy module
27 %bcond_without stub_status # http stub status module
28 %bcond_without sub # ngx_http_sub_module
29 %bcond_without xslt # without http xslt module
30 %bcond_with http_browser # http browser module (header "User-agent" parser)
31 %bcond_without modsecurity # modsecurity module
32 %bcond_with rtmp # rtmp support
33 %bcond_without vts # virtual host traffic status module
34 %bcond_without headers_more # headers more module
40 %define ssl_version 1.0.2
41 %define rtmp_version 1.2.2
42 %define vts_version 0.2.2
43 %define headers_more_version 0.37
44 %define modsecurity_version 1.0.3
45 %define http_cache_purge_version 2.5.3
47 Summary: High perfomance HTTP and reverse proxy server
48 Summary(pl.UTF-8): Serwer HTTP i odwrotne proxy o wysokiej wydajności
49 # nginx mainline is recommended by nginx team: https://www.nginx.com/blog/nginx-1-6-1-7-released/
50 # http://nginx.org/en/download.html
55 Group: Networking/Daemons/HTTP
56 Source0: https://nginx.org/download/%{name}-%{version}.tar.gz
57 # Source0-md5: 527a2e135e8b158ef502239ce4701018
58 Source1: https://nginx.org/favicon.ico
59 # Source1-md5: 72e228c3809db53da8a884b6676ed36a
61 Source3: %{name}.logrotate
63 Source6: %{name}.monitrc
65 Source14: %{name}.conf
66 Source17: %{name}-mime.types.sh
67 Source18: %{name}.service
68 Source33: https://github.com/SpiderLabs/ModSecurity-nginx/releases/download/v%{modsecurity_version}/modsecurity-%{name}-v%{modsecurity_version}.tar.gz
69 # Source33-md5: b85e1996f81b51a06a32e73b3be4709d
70 Source101: https://github.com/arut/nginx-rtmp-module/archive/v%{rtmp_version}/%{name}-rtmp-module-%{rtmp_version}.tar.gz
71 # Source101-md5: 9bb7a06aede38d9e36ad13dc1354d8f9
72 Source102: https://github.com/vozlt/nginx-module-vts/archive/v%{vts_version}.tar.gz
73 # Source102-md5: aeb08aec8dc89e45fb9411be76850d63
74 Source103: https://github.com/openresty/headers-more-nginx-module/archive/v%{headers_more_version}.tar.gz
75 # Source103-md5: 21782630f592fd2e046df96de30923ad
76 # https://github.com/nginx-modules/ngx_cache_purge
77 Source104: https://github.com/nginx-modules/ngx_cache_purge/archive/refs/tags/%{http_cache_purge_version}.tar.gz
78 # Source104-md5: bf92baae08e4c850825a8543c7d4aaa8
79 Patch0: %{name}-no-Werror.patch
80 URL: https://nginx.org/
81 BuildRequires: mailcap
82 BuildRequires: pcre2-8-devel
83 BuildRequires: rpmbuild(macros) >= 1.644
84 BuildRequires: zlib-devel
86 BuildRequires: GeoIP-devel
89 BuildRequires: gd-devel
91 %if %{with modsecurity}
92 BuildRequires: lua-devel
93 BuildRequires: libmodsecurity-devel
96 BuildRequires: perl-CGI
97 BuildRequires: perl-devel
98 BuildRequires: python3
99 BuildRequires: rpm-perlprov
102 BuildRequires: openssl-devel >= %{ssl_version}
103 Requires: openssl >= %{ssl_version}
106 BuildRequires: libxslt-devel
108 Provides: group(http)
109 Provides: group(nginx)
110 Provides: user(nginx)
112 Provides: webserver(access)
113 Provides: webserver(alias)
114 Provides: webserver(auth)
115 Provides: webserver(expires)
116 Provides: webserver(headers)
117 Provides: webserver(indexfile)
118 Provides: webserver(log)
119 Provides: webserver(mime)
120 Provides: webserver(reqtimeout)
121 Provides: webserver(rewrite)
122 Provides: webserver(setenv)
123 Conflicts: logrotate < 3.8.0
124 Requires(post,preun): /sbin/chkconfig
125 Requires(post,preun,postun): systemd-units >= 38
126 Requires(postun): /usr/sbin/groupdel
127 Requires(postun): /usr/sbin/userdel
128 Requires(pre): /bin/id
129 Requires(pre): /usr/bin/getgid
130 Requires(pre): /usr/sbin/groupadd
131 Requires(pre): /usr/sbin/useradd
132 Requires: rc-scripts >= 0.2.0
133 Requires: systemd-units >= 38
134 Suggests: vim-syntax-nginx
135 Obsoletes: nginx-common < 1.13.3
136 Obsoletes: nginx-light < 1.13.3
137 Obsoletes: nginx-standard < 1.13.3
138 Conflicts: rpm < 4.4.2-0.2
139 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
141 %define _sysconfdir /etc/%{name}
142 %define _nginxdir /home/services/%{name}
144 # minimizing restarts logics. we restart webserver:
146 # 1. at the end of transaction. (posttrans, feature from rpm 4.4.2)
147 # 2. first install of module (post: $1 = 1)
148 # 2. uninstall of module (postun: $1 == 0)
150 # the strict internal deps between modules and
151 # main package are very important for all this to work.
153 # restart webserver at the end of transaction
155 %define restart_webserver \
156 %systemd_post %{name}.service \
157 %service %{name} force-reload \
160 # macro called at module post scriptlet
161 %define module_post \
162 if [ "$1" = "1" ]; then \
166 # macro called at module postun scriptlet
167 %define module_postun \
168 if [ "$1" = "0" ]; then \
172 # it's sooo annoying to write them
173 %define module_scripts() \
181 nginx ("engine x") is a high-performance HTTP server and reverse
182 proxy, as well as an IMAP/POP3 proxy server. nginx was written by Igor
183 Sysoev for Rambler.ru, Russia's second-most visited website, where it
184 has been running in production for over two and a half years. Igor has
185 released the source code under a BSD-like license. Although still in
186 beta, nginx is known for its stability, rich feature set, simple
187 configuration, and low resource consumption.
189 %description -l pl.UTF-8
190 nginx ("engine x") jest wysokowydajnym serwerem HTTP, odwrotnym proxy
191 a także IMAP/POP3 proxy. nginx został napisany przez Igora Sysoeva na
192 potrzeby serwisu Rambler.ru. Jest to drugi pod względem ilości
193 odwiedzin serwis w Rosji i działa od ponad dwóch i pół roku. Igor
194 opublikował źródła na licencji BSD. Mimo, że projekt jest ciągle w
195 fazie beta, już zasłynął dzięki stabilności, bogactwu dodatków,
196 prostej konfiguracji oraz małej "zasobożerności".
198 %package mod_headers_more
199 Summary: Nginx HTTP headers more module
201 Requires: %{name} = %{version}-%{release}
203 %description mod_headers_more
204 Set and clear input and output headers...more than "add".
206 %package mod_http_geoip
207 Summary: Nginx HTTP geoip module
209 Requires: %{name} = %{version}-%{release}
212 %description mod_http_geoip
213 Nginx HTTP geoip module.
215 %package mod_stream_geoip
216 Summary: Nginx stream geoip module
218 Requires: %{name} = %{version}-%{release}
219 Requires: %{name}-mod_stream = %{version}-%{release}
222 %description mod_stream_geoip
223 Nginx stream geoip module.
225 %package mod_http_image_filter
226 Summary: Nginx HTTP image filter module
228 Requires: %{name} = %{version}-%{release}
230 %description mod_http_image_filter
231 Nginx HTTP image filter module.
233 %package mod_http_perl
234 Summary: Nginx HTTP Perl module
235 Group: Networking/Daemons/HTTP
236 Requires: %{name} = %{version}-%{release}
238 %description mod_http_perl
239 Nginx HTTP Perl module.
241 %package mod_http_xslt_filter
242 Summary: Nginx XSLT module
244 Requires: %{name} = %{version}-%{release}
246 %description mod_http_xslt_filter
250 Summary: Nginx mail module
251 Group: Networking/Daemons/HTTP
252 Requires: %{name} = %{version}-%{release}
254 %description mod_mail
258 Summary: Nginx virtual host traffic status module
259 Group: Networking/Daemons/HTTP
260 Requires: %{name} = %{version}-%{release}
263 Nginx virtual host traffic status module.
266 Summary: Nginx stream modules
268 Requires: %{name} = %{version}-%{release}
270 %description mod_stream
271 Nginx stream modules.
273 %package mod_http_cache_purge
274 Summary: Nginx cache purge module
276 Requires: %{name} = %{version}-%{release}
278 %description mod_http_cache_purge
279 `ngx_cache_purge` is `nginx` module which adds ability to purge
280 content from `FastCGI`, `proxy`, `SCGI` and `uWSGI` caches.
282 %package mod_http_modsecurity
283 Summary: Nginx modsecurity module
285 Requires: %{name} = %{version}-%{release}
287 %description mod_http_modsecurity
288 The ModSecurity-nginx connector takes the form of an nginx module. The
289 module simply serves as a layer of communication between nginx and
292 %package -n monit-rc-nginx
293 Summary: nginx support for monit
294 Summary(pl.UTF-8): Wsparcie nginx dla monit
295 Group: Applications/System
296 Requires: %{name} = %{version}-%{release}
299 %description -n monit-rc-nginx
300 monitrc file for monitoring nginx webserver.
302 %description -n monit-rc-nginx -l pl.UTF-8
303 Plik monitrc do monitorowania serwera WWW nginx.
306 %setup -q %{?with_rtmp:-a101} %{?with_modsecurity:-a33} %{?with_vts:-a102} %{?with_headers_more:-a103} -a104
310 mv nginx-rtmp-module-%{rtmp_version} nginx-rtmp-module
314 mv nginx-module-vts-%{vts_version} nginx-vts-module
317 %if %{with headers_more}
318 mv headers-more-nginx-module-%{headers_more_version} nginx-headers-more-module
321 mv ngx_cache_purge-* ngx_cache_purge
323 # build mime.types.conf
324 #sh %{SOURCE17} /etc/mime.types
327 # NB: not autoconf generated configure
328 cp -f configure auto/
331 --prefix=%{_prefix} \
332 --modules-path=%{_libdir}/%{name}/modules \
333 --sbin-path=%{_sbindir}/%{name} \
334 --conf-path=%{_sysconfdir}/%{name}.conf \
335 --error-log-path=%{_localstatedir}/log/%{name}/error.log \
336 --http-log-path=%{_localstatedir}/log/%{name}/access.log \
337 --pid-path=%{_localstatedir}/run/%{name}.pid \
338 --lock-path=%{_localstatedir}/lock/subsys/%{name} \
339 --http-client-body-temp-path=%{_localstatedir}/cache/%{name}/client_body_temp \
340 --http-fastcgi-temp-path=%{_localstatedir}/cache/%{name}/fastcgi_temp \
341 --http-proxy-temp-path=%{_localstatedir}/cache/%{name}/proxy_temp \
342 --http-uwsgi-temp-path=%{_localstatedir}/cache/%{name}/uwsgi_temp \
343 --http-scgi-temp-path=%{_localstatedir}/cache/%{name}/scgi_temp \
347 %{?with_select:--with-select_module} \
348 %{?with_poll:--with-poll_module} \
349 %{?with_rtsig:--with-rtsig_module} \
350 %{?with_perl:--with-http_perl_module=dynamic} \
351 %{?with_gd:--with-http_image_filter_module=dynamic} \
352 %{?with_xslt:--with-http_xslt_module=dynamic} \
353 %{?with_geoip:--with-http_geoip_module=dynamic} \
354 %{?with_geoip:--with-stream_geoip_module=dynamic} \
356 --with-mail=dynamic \
357 --with-mail_ssl_module \
360 --with-stream=dynamic \
361 --with-stream_ssl_module \
363 --with-cc="%{__cc}" \
364 --with-cc-opt="%{rpmcflags}" \
365 --with-ld-opt="%{rpmldflags}" \
366 %{?with_debug:--with-debug} \
367 %{?with_addition:--with-http_addition_module} \
368 %{?with_dav:--with-http_dav_module} \
369 %{?with_flv:--with-http_flv_module} \
370 %{?with_sub:--with-http_sub_module} \
371 %{?with_realip:--with-http_realip_module} \
372 %{?with_stub_status:--with-http_stub_status_module} \
373 %{?with_ssl:--with-http_ssl_module} \
374 %{!?with_http_browser:--without-http_browser_module} \
375 --add-dynamic-module=./ngx_cache_purge \
376 %{?with_headers_more:--add-dynamic-module=./nginx-headers-more-module} \
377 %{?with_rtmp:--add-module=./nginx-rtmp-module} \
378 %{?with_vts:--add-dynamic-module=./nginx-vts-module} \
379 %{?with_auth_request:--with-http_auth_request_module} \
380 %{?with_threads:--with-threads} \
381 %{?with_http2:--with-http_v2_module} \
382 %{?with_http3:--with-http_v3_module} \
383 %{?with_modsecurity:--add-dynamic-module=modsecurity-nginx-v%{modsecurity_version}} \
384 --with-http_secure_link_module \
385 %{?with_file_aio:--with-file-aio} \
391 rm -rf $RPM_BUILD_ROOT
392 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d \
393 $RPM_BUILD_ROOT%{_nginxdir}/{cgi-bin,html,errors} \
394 $RPM_BUILD_ROOT%{_localstatedir}/log/{%{name},archive/%{name}} \
395 $RPM_BUILD_ROOT%{_localstatedir}/cache/%{name} \
396 $RPM_BUILD_ROOT%{_localstatedir}/lock/subsys/%{name} \
397 $RPM_BUILD_ROOT{%{_sbindir},%{_sysconfdir}/{conf,modules,vhosts,webapps}.d} \
398 $RPM_BUILD_ROOT%{_sysconfdir}/snippets \
399 $RPM_BUILD_ROOT/etc/{logrotate.d,monit} \
400 $RPM_BUILD_ROOT{%{systemdunitdir},/etc/systemd/system}
404 DESTDIR=$RPM_BUILD_ROOT
406 %{__rm} $RPM_BUILD_ROOT%{_sysconfdir}/*.default
408 cp -p %{_sourcedir}/%{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}
409 cp -p %{_sourcedir}/%{name}.service $RPM_BUILD_ROOT%{systemdunitdir}
410 cp -p %{_sourcedir}/%{name}.monitrc $RPM_BUILD_ROOT/etc/monit
411 install -p %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
413 cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
414 cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/proxy.conf
415 cp -p %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/mime.types
416 rm -r $RPM_BUILD_ROOT%{_prefix}/html
417 cp -p html/index.html $RPM_BUILD_ROOT%{_nginxdir}/html
418 cp -p html/50x.html $RPM_BUILD_ROOT%{_nginxdir}/errors
419 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_nginxdir}/html/favicon.ico
422 local module=ngx_${1}_module.so conffile=mod_$1.conf
423 printf 'load_module "%{_libdir}/%{name}/modules/%s";' "$module" \
424 > $RPM_BUILD_ROOT%{_sysconfdir}/modules.d/$conffile
428 %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod
429 %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/nginx/.packlist
430 load_module http_perl
434 load_module http_geoip
435 load_module stream_geoip
438 load_module http_image_filter
441 load_module http_xslt_filter
446 %{?with_vts:load_module http_vhost_traffic_status}
447 %{?with_headers_more:load_module http_headers_more_filter}
451 %if %{with modsecurity}
452 load_module http_modsecurity
454 load_module http_cache_purge
457 rm -rf $RPM_BUILD_ROOT
460 %groupadd -r -g 213 %{name}
462 %useradd -r -u 213 -d /usr/share/empty -s /bin/false -c "Nginx HTTP User" -g %{name} %{name}
463 %addusertogroup %{name} http
466 for a in access.log error.log; do
467 if [ ! -f /var/log/%{name}/$a ]; then
469 touch /var/log/%{name}/$a
470 chown nginx:nginx /var/log/%{name}/$a
471 chmod 644 /var/log/%{name}/$a
474 /sbin/chkconfig --add %{name}
480 if [ "$1" = "0" ];then
481 %service %{name} stop
482 /sbin/chkconfig --del %{name}
484 %systemd_preun %{name}.service
487 if [ "$1" = "0" ]; then
493 %module_scripts mod_http_geoip
494 %module_scripts mod_http_image_filter
495 %module_scripts mod_http_perl
496 %module_scripts mod_http_xslt_filter
497 %module_scripts mod_mail
498 %module_scripts mod_vts
499 %module_scripts mod_headers_more
500 %module_scripts mod_stream
501 %module_scripts mod_stream_geoip
502 %module_scripts mod_http_cache_purge
505 %defattr(644,root,root,755)
506 %doc CHANGES LICENSE README html/index.html conf/nginx.conf
507 %doc %lang(ru) CHANGES.ru
508 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
509 %attr(754,root,root) /etc/rc.d/init.d/%{name}
510 %dir %attr(750,root,nginx) %{_sysconfdir}
511 %dir %{_sysconfdir}/conf.d
512 %dir %{_sysconfdir}/modules.d
513 %dir %{_sysconfdir}/snippets
514 %dir %{_sysconfdir}/vhosts.d
515 %dir %{_sysconfdir}/webapps.d
516 %attr(640,root,root) %{_sysconfdir}/mime.types
517 %attr(640,root,root) %{_sysconfdir}/koi-utf
518 %attr(640,root,root) %{_sysconfdir}/koi-win
519 %attr(640,root,root) %{_sysconfdir}/win-utf
520 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fastcgi.conf
521 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/nginx.conf
522 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/proxy.conf
523 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/fastcgi_params
524 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scgi_params
525 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/uwsgi_params
526 %attr(755,root,root) %{_sbindir}/%{name}
527 %dir %{_libdir}/%{name}
528 %dir %{_libdir}/%{name}/modules
529 %{systemdunitdir}/%{name}.service
531 %attr(750,nginx,logs) %dir /var/log/archive/%{name}
532 %attr(750,nginx,logs) /var/log/%{name}
533 %attr(770,root,nginx) /var/cache/%{name}
536 %dir %{_nginxdir}/cgi-bin
537 %dir %{_nginxdir}/html
538 %dir %{_nginxdir}/errors
539 %config(noreplace,missingok) %verify(not md5 mtime size) %{_nginxdir}/html/*
540 %config(noreplace,missingok) %verify(not md5 mtime size) %{_nginxdir}/errors/*
543 %files mod_http_geoip
544 %defattr(644,root,root,755)
545 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_geoip.conf
546 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_geoip_module.so
548 %files mod_stream_geoip
549 %defattr(644,root,root,755)
550 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_stream_geoip.conf
551 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_stream_geoip_module.so
555 %files mod_http_image_filter
556 %defattr(644,root,root,755)
557 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_image_filter.conf
558 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_image_filter_module.so
563 %defattr(644,root,root,755)
564 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_perl.conf
565 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_perl_module.so
566 %dir %{perl_vendorarch}/auto/%{name}
567 %attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
568 %{perl_vendorarch}/%{name}.pm
569 %{_mandir}/man3/nginx.3pm*
573 %files mod_http_xslt_filter
574 %defattr(644,root,root,755)
575 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_xslt_filter.conf
576 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_xslt_filter_module.so
581 %defattr(644,root,root,755)
582 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_mail.conf
583 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_mail_module.so
586 %if %{with headers_more}
587 %files mod_headers_more
588 %defattr(644,root,root,755)
589 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_headers_more_filter.conf
590 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_headers_more_filter_module.so
595 %defattr(644,root,root,755)
596 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_vhost_traffic_status.conf
597 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_vhost_traffic_status_module.so
602 %defattr(644,root,root,755)
603 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_stream.conf
604 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_stream_module.so
607 %files mod_http_cache_purge
608 %defattr(644,root,root,755)
609 %doc ngx_cache_purge/{CHANGES,README.md}
610 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_cache_purge.conf
611 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_cache_purge_module.so
613 %files mod_http_modsecurity
614 %defattr(644,root,root,755)
615 %doc ngx_cache_purge/{CHANGES,README.md}
616 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/modules.d/mod_http_modsecurity.conf
617 %attr(755,root,root) %{_libdir}/%{name}/modules/ngx_http_modsecurity_module.so
619 %files -n monit-rc-nginx
620 %defattr(644,root,root,755)
621 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}.monitrc