diff --git a/awstats.spec b/awstats.spec index cc28c48..fa63385 100644 --- a/awstats.spec +++ b/awstats.spec @@ -59,6 +59,17 @@ With the default configuration, the statistics are available: http://localhost/awstats/awstats.pl +%package cron +Group: Applications/System +Summary: Provides cron entry for awstats +Requires: %{name} +Obsoletes: awstats <= 7.6-1 + +%description cron +awstats comes with a cron entry that is set to run hourly. +This is very useful for system admins who don't run any +out of the ordinary configuration. + %prep %setup -q %patch0 -p 1 @@ -156,12 +167,14 @@ if [ $1 -ne 0 ]; then fi %endif +%files cron +%defattr(-,root,root,755) +%config(noreplace) %attr(750,root,root) %{_sysconfdir}/cron.hourly/%{name} %files %defattr(-,root,root,755) # Apache configuration file %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf -%config(noreplace) %attr(750,root,root) %{_sysconfdir}/cron.hourly/%{name} %config(noreplace) %{_sysconfdir}/%{name}/ %{_localstatedir}/lib/%{name} %dir %{_datadir}/%{name}