From a7f1a366769372ec3c3ef0d5a3c809aac3b5726c Mon Sep 17 00:00:00 2001 From: Olivier Thauvin Date: Sun, 20 Mar 2011 00:19:39 +0000 Subject: - provide crontab for mirror checks --- MANIFEST | 1 + Makefile.PL | 17 +++++++++++++++++ etc/crontab | 1 + mga-mirrors.spec.in | 1 + 4 files changed, 20 insertions(+) create mode 100644 etc/crontab diff --git a/MANIFEST b/MANIFEST index 52abcf5..27e1bfd 100644 --- a/MANIFEST +++ b/MANIFEST @@ -90,3 +90,4 @@ t/controller_Validate.t t/model_Mirrors.t t/view_GraphViz.t t/view_TT.t +etc/crontab diff --git a/Makefile.PL b/Makefile.PL index f7777b6..eb796b9 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -32,6 +32,23 @@ WriteAll; package MY; +sub install { + my ($self) = @_; + + my $install = $self->SUPER::install; + + $install =~ s/^(install ::.*)/$1 cron_install/m; + + $install .= <