Author: qboosh                       Date: Sun Nov  4 17:10:22 2007 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- separated from apache1 to avoid its monit dep

---- Files affected:
SPECS:
   monit-rc-apache1.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/monit-rc-apache1.spec
diff -u /dev/null SPECS/monit-rc-apache1.spec:1.1
--- /dev/null   Sun Nov  4 18:10:22 2007
+++ SPECS/monit-rc-apache1.spec Sun Nov  4 18:10:17 2007
@@ -0,0 +1,59 @@
+# $Revision$, $Date$
+Summary:       monitrc file for monitoring Apache 1.x web server
+Summary(pl.UTF-8):     Plik monitrc do monitorowania serwera WWW Apache 1.x
+Name:          monit-rc-apache1
+Version:       1.1
+Release:       1
+License:       GPL
+Group:         Applications/System
+Source0:       apache1.monitrc
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,postun): monit
+Requires:      apache-base >= 1.3.39-2
+Requires:      monit
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+monitrc file for monitoring Apache 1.x web server.
+
+%description -l pl.UTF-8
+Plik monitrc do monitorowania serwera WWW Apache 1.x.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_sysconfdir}/monit
+
+install %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/monit/apache.monitrc
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+%service -q monit restart
+
+%postun
+%service -q monit restart
+
+%triggerpostun -- apache1 < 1.3.34-5.9
+# rename monitrc to be service name like other files
+if [ -f /etc/monit/apache1.monitrc.rpmsave ]; then
+       mv -f /etc/monit/apache.monitrc{,.rpmnew}
+       mv -f /etc/monit/{apache1.monitrc.rpmsave,apache.monitrc}
+fi
+
+%files
+%defattr(644,root,root,755)
+%{_sysconfdir}/monit/apache.monitrc
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2007/11/04 17:10:17  qboosh
+- separated from apache1 to avoid its monit dep
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to