diff options
Diffstat (limited to 'Makefile.PL')
-rw-r--r-- | Makefile.PL | 17 |
1 files changed, 17 insertions, 0 deletions
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 .= <<EOF; + +cron_install :: +\t[ -d \$(DESTDIR)/etc/cron.d ] || mkdir -p \$(DESTDIR)/etc/cron.d +\tinstall -m644 etc/crontab \$(DESTDIR)/etc/cron.d/mga_mirrors +EOF + + $install +} + sub postamble { " |