]> git.pld-linux.org Git - packages/tanto.git/commitdiff
setup our own cron definition, default disabled master
authorElan Ruusamäe <glen@delfi.ee>
Tue, 14 Apr 2015 20:09:27 +0000 (23:09 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Tue, 14 Apr 2015 20:09:27 +0000 (23:09 +0300)
tanto.crontab [new file with mode: 0644]
tanto.spec

diff --git a/tanto.crontab b/tanto.crontab
new file mode 100644 (file)
index 0000000..ed8fc2e
--- /dev/null
@@ -0,0 +1,3 @@
+MAILTO=root
+
+#* * * * * root /usr/bin/tanto > /dev/null 2>&1
index 5902f97ba21b517f88c6c1c19f75d1d367d7ca64..f0b863d24c6fcbab994fbb0d166c11e3e5c30ee4 100644 (file)
@@ -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
 
This page took 0.084193 seconds and 4 git commands to generate.