mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Fix regex handling with the new perl version [1]
[1] Unescaped left brace in regex is deprecated, passed through in regex PR: 227895 Submitted by: zeising Pull Request:
This commit is contained in:
parent
47c0b3dea0
commit
cc76e2af16
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=473005
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= postfix-logwatch
|
||||
PORTVERSION= 1.40.03
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= SF/logreporters/${PORTNAME}/release/${PORTVERSION}
|
||||
|
||||
|
22
mail/postfix-logwatch/files/patch-postfix-logwatch
Normal file
22
mail/postfix-logwatch/files/patch-postfix-logwatch
Normal file
@ -0,0 +1,22 @@
|
||||
--- postfix-logwatch.orig 2018-05-01 12:00:39 UTC
|
||||
+++ postfix-logwatch
|
||||
@@ -1377,6 +1377,10 @@ sub print_summary_report (\@) {
|
||||
sprintf "$fmt %-42s %6.2f%%\n", $total, $desc,
|
||||
$$divisor == $Totals{$keyname} ? 100.00 : $Totals{$keyname} * 100 / $$divisor;
|
||||
}
|
||||
+ elsif ($extra eq '') {
|
||||
+ push @{$lines[$cur_level]},
|
||||
+ sprintf "$fmt %-23s\n", $total, $desc;
|
||||
+ }
|
||||
else {
|
||||
push @{$lines[$cur_level]},
|
||||
sprintf "$fmt %-23s $extra\n", $total, $desc, commify ($Totals{$keyname});
|
||||
@@ -1847,7 +1851,7 @@ sub postfix_policy_spf($) {
|
||||
# KeyboardInterrupt
|
||||
$line =~ /^Read line: "/ or
|
||||
$line =~ /^Found the end of entry$/ or
|
||||
- $line =~ /^Config: {/ or
|
||||
+ $line =~ /^Config: \{/ or
|
||||
$line =~ /^spfcheck: pyspf result/ or
|
||||
$line =~ /^Starting$/ or
|
||||
$line =~ /^Normal exit$/ or
|
Loading…
Reference in New Issue
Block a user