SPECS: nginx.spec - re-add monit-rc subpackage and put all monitrc...
shadzik
shadzik at pld-linux.org
Fri Nov 30 19:22:15 CET 2007
Author: shadzik Date: Fri Nov 30 18:22:15 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- re-add monit-rc subpackage and put all monitrc files into it dependig on what bcond is called
---- Files affected:
SPECS:
nginx.spec (1.56 -> 1.57)
---- Diffs:
================================================================
Index: SPECS/nginx.spec
diff -u SPECS/nginx.spec:1.56 SPECS/nginx.spec:1.57
--- SPECS/nginx.spec:1.56 Fri Nov 30 19:14:36 2007
+++ SPECS/nginx.spec Fri Nov 30 19:22:10 2007
@@ -62,7 +62,6 @@
Requires(pre): /usr/bin/getgid
Requires(pre): /usr/sbin/groupadd
Requires(pre): /usr/sbin/useradd
-Requires: monit
Requires: openssl
Requires: pcre
Requires: rc-scripts >= 0.2.0
@@ -216,6 +215,25 @@
To jest standardowa wersja nginx, bez obs?ugi perla oraz proxy dla
imap, pop3, smtp.
+%package -n monit-rc-nginx
+Summary: Nginx support for monit
+Summary(pl.UTF-8): Wsparcie Nginx dla monit
+License: BSD-like
+Group: Applications/System
+URL: http://nginx.eu/
+Requires: monit
+Requires: %{name} = %{version}-%{release}
+Provides: group(http)
+Provides: group(nginx)
+Provides: user(nginx)
+Provides: webserver
+
+%description -n monit-rc-nginx
+monitrc file for monitoring Nginx webserver server.
+
+%description -n monit-rc-nginx -l pl.UTF-8
+Plik monitrc do monitorowania serwera WWW Nginx.
+
%prep
%setup -q
%patch0 -p0
@@ -522,7 +540,6 @@
%attr(755,root,root) %{_sbindir}/%{name}-standard
%attr(770,root,%{name}) /var/cache/%{name}-standard
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}-standard.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-standard.monitrc
%if %{with mail}
%files mail
@@ -530,7 +547,6 @@
%attr(755,root,root) %{_sbindir}/%{name}-mail
%attr(770,root,%{name}) /var/cache/%{name}-mail
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}-mail.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-mail.monitrc
%endif
%if %{with light}
@@ -539,7 +555,6 @@
%attr(755,root,root) %{_sbindir}/%{name}-light
%attr(770,root,%{name}) /var/cache/%{name}-light
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}-light.conf
-%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-light.monitrc
%endif
%if %{with perl}
@@ -552,8 +567,20 @@
%attr(755,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.so
%attr(700,root,root) %{perl_vendorarch}/auto/%{name}/%{name}.bs
%attr(700,root,root) %{perl_vendorarch}/%{name}.pm
+%endif
+
+%files -n monit-rc-nginx
+%defattr(644,root,root,755)
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-standard.monitrc
+%if %{with perl}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-perl.monitrc
%endif
+%if %{with light}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-light.monitrc
+%endif
+%if %{with mail}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/monit/%{name}-mail.monitrc
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -561,6 +588,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.57 2007-11-30 18:22:10 shadzik
+- re-add monit-rc subpackage and put all monitrc files into it dependig on what bcond is called
+
Revision 1.56 2007-11-30 18:14:36 sardzent
- added unsed mime generator
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/nginx.spec?r1=1.56&r2=1.57&f=u
More information about the pld-cvs-commit
mailing list