SPECS: sawdog.spec - webapps framework
paszczus
paszczus at pld-linux.org
Thu Sep 28 09:53:22 CEST 2006
Author: paszczus Date: Thu Sep 28 07:53:22 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- webapps framework
---- Files affected:
SPECS:
sawdog.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: SPECS/sawdog.spec
diff -u SPECS/sawdog.spec:1.2 SPECS/sawdog.spec:1.3
--- SPECS/sawdog.spec:1.2 Thu Sep 28 09:38:49 2006
+++ SPECS/sawdog.spec Thu Sep 28 09:53:17 2006
@@ -2,16 +2,24 @@
Summary: sawdog
Name: sawdog
Version: 2.4
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Applications
Source0: http://open.digicomp.ch/gpl/sawdog/download/%{name}-%{version}.tar.gz
# Source0-md5: d98d60a7b16d9333b2d716eee454ddb9
+Source1: %{name}.conf
+Source2: %{name}-lighttpd.conf
URL: http://open.digicomp.ch/gpl/sawdog/
Requires: expect
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define sawdogdir /usr/share/sawdog
+%define _sysconfdir /etc/%{name}
+%define _webapps /etc/webapps
+%define _webapp %{name}
+%define _sysconfdir %{_webapps}/%{_webapp}
+
%description
Sawdog (Simple Active Watch-DOG) is a suite of scripts that informs
the system operators of mission critical servers in the case of a
@@ -35,31 +43,58 @@
install -d $RPM_BUILD_ROOT%{_bindir}
install -d $RPM_BUILD_ROOT/var/sawdog
install -d $RPM_BUILD_ROOT%{_sysconfdir}/sawdog
-install -d $RPM_BUILD_ROOT/home/services/httpd/html/sawdog
+install -d $RPM_BUILD_ROOT%{sawdogdir}
install sawdog.pl $RPM_BUILD_ROOT%{_bindir}
for i in `ls -1 services/`; do install services/$i $RPM_BUILD_ROOT%{_bindir}/sawdog.$i ; done
install sawdog.conf $RPM_BUILD_ROOT%{_sysconfdir}/sawdog
-cp -r www/* $RPM_BUILD_ROOT/home/services/httpd/html/sawdog
+cp -r www/* $RPM_BUILD_ROOT%{sawdogdir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
%clean
rm -rf $RPM_BUILD_ROOT
+%triggerin -- apache1
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
%files
%defattr(644,root,root,755)
%doc README
%%dir %{_sysconfdir}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/sawdog/sawdog.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) /home/services/httpd/html/sawdog/*
-%attr(644,root,root) /home/services/httpd/html/sawdog/config.php
+%attr(755,root,root) %{sawdogdir}/*
+%{sawdogdir}/config.php
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2006/09/28 07:53:17 paszczus
+- webapps framework
+
Revision 1.2 2006/09/28 07:38:49 paszczus
- 644 for config.php
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/sawdog.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list