Skip to content
Snippets Groups Projects
Commit 9c28996a authored by Sergej Pupykin's avatar Sergej Pupykin
Browse files

upd

parent ad21dab1
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
pkgname=logwatch pkgname=logwatch
pkgver=7.4.3 pkgver=7.4.3
pkgrel=1 pkgrel=2
arch=('any') arch=('any')
pkgdesc="Logwatch is a customizable log analysis system." pkgdesc="Logwatch is a customizable log analysis system."
url="http://www.logwatch.org/" url="http://www.logwatch.org/"
...@@ -13,8 +13,15 @@ license=('custom') ...@@ -13,8 +13,15 @@ license=('custom')
backup=(etc/logwatch/conf/logwatch.conf backup=(etc/logwatch/conf/logwatch.conf
etc/logwatch/conf/ignore.conf etc/logwatch/conf/ignore.conf
etc/logwatch/conf/override.conf) etc/logwatch/conf/override.conf)
source=(http://downloads.sourceforge.net/project/logwatch/logwatch-$pkgver/logwatch-$pkgver.tar.gz) source=(http://downloads.sourceforge.net/project/logwatch/logwatch-$pkgver/logwatch-$pkgver.tar.gz
md5sums=('22bd22841caa45f12c605abc3e0c2b09') logwatch-xz-support.patch)
md5sums=('22bd22841caa45f12c605abc3e0c2b09'
'2bc1c11efd92c7859e378b5103497fd1')
prepare() {
cd $srcdir/$pkgname-$pkgver
patch -p0 -i $srcdir/logwatch-xz-support.patch
}
package() { package() {
cd $srcdir/$pkgname-$pkgver cd $srcdir/$pkgname-$pkgver
......
--- 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment