diff options
author | Eric Hameleers <alien@slackware.com> | 2017-01-20 22:05:04 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2017-01-20 22:05:04 +0000 |
commit | 7a61d0212ff39fde0210afd97d5d547cbb218045 (patch) | |
tree | 9ebaebbb553880b387806a2ee51c318cd8b44641 /logwatch | |
parent | aa4ab8d042a2f67ce09d9057a2eb27e2352c4464 (diff) | |
download | asb-7a61d0212ff39fde0210afd97d5d547cbb218045.tar.gz asb-7a61d0212ff39fde0210afd97d5d547cbb218045.tar.xz |
Initial revision
Diffstat (limited to 'logwatch')
-rw-r--r-- | logwatch/build/patches/logwatch.xz-support.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/logwatch/build/patches/logwatch.xz-support.patch b/logwatch/build/patches/logwatch.xz-support.patch new file mode 100644 index 00000000..dc00b4e6 --- /dev/null +++ b/logwatch/build/patches/logwatch.xz-support.patch @@ -0,0 +1,21 @@ +--- scripts/logwatch.pl 2016-04-27 23:14:37.000000000 +0300 ++++ scripts/logwatch.pl 2016-05-13 15:26:00.000000000 +0300 +@@ -87,6 +87,7 @@ + $Config{'pathtocat'} = "cat"; + $Config{'pathtozcat'} = "zcat"; + $Config{'pathtobzcat'} = "bzcat"; ++$Config{'pathtoxzcat'} = "xzcat"; + $Config{'output'} = "stdout"; #8.0 + $Config{'format'} = "text"; #8.0 + $Config{'encode'} = "none"; #8.0 +@@ -767,6 +768,10 @@ + my $arguments = "'${Archive}' 2>/dev/null >> $DestFile"; + system("$Config{'pathtobzcat'} $arguments") == 0 + or die "system '$Config{'pathtobzcat'} $arguments' failed: $?" ++ } elsif (($Archive =~ m/xz$/) && (-f "$Archive") && (-s "$Archive")) { ++ my $arguments = "'${Archive}' 2>/dev/null >> $DestFile"; ++ system("$Config{'pathtoxzcat'} $arguments") == 0 ++ or die "system '$Config{'pathtoxzcat'} $arguments' failed: $?" + } elsif ((-f "$Archive") && (-s "$Archive")) { + my $arguments = "'${Archive}' >> $DestFile"; + system("$Config{'pathtocat'} $arguments") == 0 |