diff options
author | pgollucci <pgollucci@FreeBSD.org> | 2010-02-02 01:29:09 +0800 |
---|---|---|
committer | pgollucci <pgollucci@FreeBSD.org> | 2010-02-02 01:29:09 +0800 |
commit | f053c7ebde093fe897a446283660f13bb2bc9ea5 (patch) | |
tree | 01d2cc590dfdb260f048cfd75c616b0c4ab7528b /sysutils/puppet | |
parent | 896028aa68fc37cad2313fc0caeda3a271e0a6be (diff) | |
download | freebsd-ports-gnome-f053c7ebde093fe897a446283660f13bb2bc9ea5.tar.gz freebsd-ports-gnome-f053c7ebde093fe897a446283660f13bb2bc9ea5.tar.zst freebsd-ports-gnome-f053c7ebde093fe897a446283660f13bb2bc9ea5.zip |
- Fix issue with crontab http://projects.reductivelabs.com/issues/3010
PR: 143022
Submitted by: Alexander Kriventsov <avk@vl.ru>
Approved by: Russell Jackson <raj@csub.edu> (maintainer)
Diffstat (limited to 'sysutils/puppet')
-rw-r--r-- | sysutils/puppet/Makefile | 1 | ||||
-rw-r--r-- | sysutils/puppet/files/patch-lib-puppet-provider-cron-crontab.rb | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/sysutils/puppet/Makefile b/sysutils/puppet/Makefile index 16fffd8aef5d..378ecd5ffd37 100644 --- a/sysutils/puppet/Makefile +++ b/sysutils/puppet/Makefile @@ -7,6 +7,7 @@ PORTNAME= puppet PORTVERSION= 0.25.3 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= http://www.reductivelabs.com/downloads/puppet/ diff --git a/sysutils/puppet/files/patch-lib-puppet-provider-cron-crontab.rb b/sysutils/puppet/files/patch-lib-puppet-provider-cron-crontab.rb new file mode 100644 index 000000000000..8d17e2b7fa44 --- /dev/null +++ b/sysutils/puppet/files/patch-lib-puppet-provider-cron-crontab.rb @@ -0,0 +1,25 @@ +--- lib/puppet/provider/cron/crontab.rb.orig 2010-01-11 23:55:13.000000000 +0000 ++++ lib/puppet/provider/cron/crontab.rb 2010-01-19 02:49:58.000000000 +0000 +@@ -27,13 +27,18 @@ + + text_line :environment, :match => %r{^\w+=} + +- crontab = record_line :crontab, :fields => %w{special minute hour monthday month weekday command}, +- :match => %r{^\s*(?:@(\w+)|(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+))\s+(.+)$}, +- :optional => %w{special minute hour weekday month monthday}, :absent => "*" ++ record_line :freebsd_special, :fields => %w{special command}, ++ :match => %r{^@(\w+)\s+(.+)$}, :pre_gen => proc { |record| ++ record[:special] = "@" + record[:special] ++ } ++ ++ crontab = record_line :crontab, :fields => %w{minute hour monthday month weekday command}, ++ :match => %r{^\s*(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$}, ++ :optional => %w{minute hour weekday month monthday}, :absent => "*" + + class << crontab + def numeric_fields +- fields - [:command, :special] ++ fields - [:command] + end + # Do some post-processing of the parsed record. Basically just + # split the numeric fields on ','. |