Summary(pl): Adeos - Zautomatyzowany skaner bezpieczeñstwa systemu plików
Name: adeos
Version: 1.0
-Release: 1
+Release: 2
Group: Applications/System
License: GPL v2
Source0: http://linux.wku.edu/~lamonml/software/adeos/%{name}-%{version}.tar.bz2
-Requires: crondaemon
-Requires: webserver
+# Source0-md5: 059b47e4cd45a40c060bd41dd33739a1
URL: http://linux.wku.edu/~lamonml/software/adeos/
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _wwwdir /home/httpd/html/%{name}
+%define _wwwdir /srv/httpd/html/%{name}
%description
Adeos (named after the obscure Roman goddess of modesty) is an
zidentyfikowaæ powszechne b³êdy w zabezpieczeniach, takie jak SUIDy
czy pliki zapisywalne dla wszystkich.
+%package www
+Summary: Adeos - automated filesystem security scanner
+Summary(pl): Adeos - Zautomatyzowany skaner bezpieczeñstwa systemu plików
+Group: Applications/System
+Requires: adeos
+Requires: crondaemon
+Requires: webserver
+
+%description www
+Scripts and cron jobs to publish data on www.
+
+%description www -l pl
+Skrypty crona do publikacji na stronie www.
+
%prep
%setup -q
cat > $RPM_BUILD_ROOT/etc/cron.weekly/%{name}.sh <<EOF
cd %{_wwwdir}
%{_bindir}/%{name} -h
-chmod a+r result.html
+chmod a+r results.html
EOF
-touch $RPM_BUILD_ROOT%{_wwwdir}/result.html
+touch $RPM_BUILD_ROOT%{_wwwdir}/results.html
%clean
rm -rf $RPM_BUILD_ROOT
%defattr(644,root,root,755)
%doc CHANGELOG README
%attr(755,root,root) %{_bindir}/*
+
+%files www
%dir %{_wwwdir}
-%ghost %{_wwwdir}/result.html
+%ghost %{_wwwdir}/results.html
%attr(755,root,root) %config(noreplace) /etc/cron.weekly/%{name}.sh