View | Details | Raw Unified | Return to bug 248267 | Differences between
and this patch

Collapse All | Expand All

(-)misc/lv/Makefile (-1 / +1 lines)
Lines 4-10 Link Here
4
PORTNAME=	lv
4
PORTNAME=	lv
5
PORTVERSION=	4.51
5
PORTVERSION=	4.51
6
DISTVERSIONPREFIX=	v
6
DISTVERSIONPREFIX=	v
7
PORTREVISION=	3
7
PORTREVISION=	4
8
CATEGORIES=	misc
8
CATEGORIES=	misc
9
9
10
MAINTAINER=	sue@iwmt.org
10
MAINTAINER=	sue@iwmt.org
(-)misc/lv/files/patch-src_stream.c (-3 / +6 lines)
Lines 1-15 Link Here
1
--- stream.c.orig	2003-11-13 03:08:19 UTC
1
--- stream.c.orig	2016-05-31 18:08:16 UTC
2
+++ stream.c
2
+++ stream.c
3
@@ -43,6 +43,8 @@
3
@@ -43,6 +43,9 @@
4
 
4
 
5
 private byte *gz_filter = "zcat";
5
 private byte *gz_filter = "zcat";
6
 private byte *bz2_filter = "bzcat";
6
 private byte *bz2_filter = "bzcat";
7
+private byte *lzma_filter = "lzcat";
7
+private byte *lzma_filter = "lzcat";
8
+private byte *xz_filter = "xzcat";
8
+private byte *xz_filter = "xzcat";
9
+private byte *zstd_filter = "zstdcat";
9
 
10
 
10
 private stream_t *StreamAlloc()
11
 private stream_t *StreamAlloc()
11
 {
12
 {
12
@@ -75,6 +77,10 @@ public stream_t *StreamOpen( byte *file 
13
@@ -75,6 +78,12 @@ public stream_t *StreamOpen( byte *file )
13
       filter = gz_filter;
14
       filter = gz_filter;
14
     else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
15
     else if( !strcmp( "bz2", exts ) || !strcmp( "BZ2", exts ) )
15
       filter = bz2_filter;
16
       filter = bz2_filter;
Lines 17-22 Link Here
17
+      filter = lzma_filter;
18
+      filter = lzma_filter;
18
+    else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) )
19
+    else if( !strcmp( "xz", exts ) || !strcmp( "XZ", exts ) )
19
+      filter = xz_filter;
20
+      filter = xz_filter;
21
+    else if( !strcmp( "zst", exts ) || !strcmp( "ZST", exts ) )
22
+      filter = zstd_filter;
20
   }
23
   }
21
   if( NULL != filter ){
24
   if( NULL != filter ){
22
     /*
25
     /*

Return to bug 248267