From: Elan Ruusamäe Date: Tue, 14 Apr 2015 20:09:27 +0000 (+0300) Subject: setup our own cron definition, default disabled X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e1d3127697431eba15a364843863f8017db03684;p=packages%2Ftanto.git setup our own cron definition, default disabled --- diff --git a/tanto.crontab b/tanto.crontab new file mode 100644 index 0000000..ed8fc2e --- /dev/null +++ b/tanto.crontab @@ -0,0 +1,3 @@ +MAILTO=root + +#* * * * * root /usr/bin/tanto > /dev/null 2>&1 diff --git a/tanto.spec b/tanto.spec index 5902f97..f0b863d 100644 --- a/tanto.spec +++ b/tanto.spec @@ -6,6 +6,7 @@ License: AGPL v3 Group: Libraries/Python Source0: https://pypi.python.org/packages/source/t/tanto/%{name}-%{version}.tar.gz # Source0-md5: 480a1549803eb96cf221847ac10c6d3b +Source1: %{name}.crontab URL: https://github.com/Eyepea/tanto BuildRequires: python-distribute BuildRequires: rpm-pythonprov @@ -48,6 +49,9 @@ install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},/etc/cron.d} mv $RPM_BUILD_ROOT{%{_prefix}%{_sysconfdir}/%{name}/*,%{_sysconfdir}/%{name}} mv $RPM_BUILD_ROOT{%{_prefix}/etc/cron.d/*,/etc/cron.d} +# install our crontab definition +install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/cron.d/%{name} + %clean rm -rf $RPM_BUILD_ROOT