[packages/tanto] setup our own cron definition, default disabled

glen glen at pld-linux.org
Tue Apr 14 22:09:39 CEST 2015


commit e1d3127697431eba15a364843863f8017db03684
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Apr 14 23:09:27 2015 +0300

    setup our own cron definition, default disabled

 tanto.crontab | 3 +++
 tanto.spec    | 4 ++++
 2 files changed, 7 insertions(+)
---
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
 
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
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tanto.git/commitdiff/e1d3127697431eba15a364843863f8017db03684



More information about the pld-cvs-commit mailing list