View | Details | Raw Unified | Return to bug 248681
Collapse All | Expand All

(-)./Makefile (-4 / +12 lines)
Lines 2-25 Link Here
2
# $FreeBSD: head/archivers/par2cmdline/Makefile 362027 2014-07-16 03:47:05Z adamw $
2
# $FreeBSD: head/archivers/par2cmdline/Makefile 362027 2014-07-16 03:47:05Z adamw $
3
3
4
PORTNAME=	par2cmdline
4
PORTNAME=	par2cmdline
5
PORTVERSION=	0.4
5
PORTVERSION=	0.8.1
6
PORTREVISION=	4
6
# PORTREVISION=	0
7
DISTVERSIONPREFIX=	v
8
# DISTVERSION=	${PORTVERSION}
7
CATEGORIES=	archivers
9
CATEGORIES=	archivers
8
MASTER_SITES=	SF/parchive/${PORTNAME}/${PORTVERSION}
9
10
10
MAINTAINER=	martymac@FreeBSD.org
11
MAINTAINER=	martymac@FreeBSD.org
11
COMMENT=	Tools for using Parity v2 Archive files
12
COMMENT=	Tools for using Parity v2 Archive files
12
13
13
LICENSE=	GPLv2
14
LICENSE=	GPLv2
14
15
16
USES=		autoreconf
15
GNU_CONFIGURE=	yes
17
GNU_CONFIGURE=	yes
16
18
19
USE_GITHUB=	yes
20
GH_ACCOUNT=	Parchive
21
GH_PROJECT=	par2cmdline
22
17
PORTDOCS=	README
23
PORTDOCS=	README
18
CONFLICTS=	par2cmdline-tbb-[0-9]*
24
CONFLICTS=	par2cmdline-tbb-[0-9]*
19
25
20
PLIST_FILES=	bin/par2 bin/par2create bin/par2repair bin/par2verify
26
PLIST_FILES=	bin/par2 bin/par2create bin/par2repair bin/par2verify man/man1/par2.1.gz
21
27
22
OPTIONS_DEFINE=	DOCS
28
OPTIONS_DEFINE=	DOCS
29
30
# AUTOMAKE_ARGS=	--warnings=all --add-missing
23
31
24
post-install:
32
post-install:
25
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
33
	@${MKDIR} ${STAGEDIR}${DOCSDIR}
(-)./distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (par2cmdline-0.4.tar.gz) = 9e32b7dbcf7bca8249f98824757d4868714156fe2276516504cd26f736e9f677
1
SHA256 (Parchive-par2cmdline-v0.8.1_GH0.tar.gz) = 529f85857ec44e501cd8d95b0c8caf47477d7daa5bfb989e422c800bb71b689a
2
SIZE (par2cmdline-0.4.tar.gz) = 239312
2
SIZE (Parchive-par2cmdline-v0.8.1_GH0.tar.gz) = 3581759
(-)./files/patch-par2creatorsourcefile.cpp (-13 lines)
Lines 1-13 Link Here
1
--- par2creatorsourcefile.cpp.orig	2004-04-15 13:45:23 UTC
2
+++ par2creatorsourcefile.cpp
3
@@ -224,6 +224,10 @@ bool Par2CreatorSourceFile::Open(Command
4
           cout << newfraction/10 << '.' << newfraction%10 << "%\r" << flush;
5
         }
6
       }
7
+      else
8
+      {
9
+        offset += want;
10
+      }
11
     }
12
 
13
     // Did we finish the last block
(-)./files/patch-par2fileformat.h (-11 lines)
Lines 1-11 Link Here
1
--- par2fileformat.h.orig	2003-08-01 23:43:40 UTC
2
+++ par2fileformat.h
3
@@ -84,7 +84,7 @@ struct FILEVERIFICATIONPACKET
4
   PACKET_HEADER         header;
5
   // Body
6
   MD5Hash               fileid;     // MD5hash of file_hash_16k, file_length, file_name
7
-  FILEVERIFICATIONENTRY entries[];
8
+  FILEVERIFICATIONENTRY entries[0];
9
 } PACKED;
10
 
11
 // The file description packet is used to record the name of the file,
(-)./files/patch-reedsolomon.cpp (-56 lines)
Lines 1-56 Link Here
1
--- reedsolomon.cpp.orig	2003-05-26 18:01:31 UTC
2
+++ reedsolomon.cpp
3
@@ -51,7 +51,7 @@ u32 gcd(u32 a, u32 b)
4
   }
5
 }
6
 
7
-bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
8
+template<> bool ReedSolomon<Galois8>::SetInput(const vector<bool> &present)
9
 {
10
   inputcount = (u32)present.size();
11
 
12
@@ -80,7 +80,7 @@ bool ReedSolomon<Galois8>::SetInput(cons
13
   return true;
14
 }
15
 
16
-bool ReedSolomon<Galois8>::SetInput(u32 count)
17
+template<> bool ReedSolomon<Galois8>::SetInput(u32 count)
18
 {
19
   inputcount = count;
20
 
21
@@ -101,7 +101,7 @@ bool ReedSolomon<Galois8>::SetInput(u32 
22
   return true;
23
 }
24
 
25
-bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
26
+template<> bool ReedSolomon<Galois8>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
27
 {
28
   // Look up the appropriate element in the RS matrix
29
   Galois8 factor = leftmatrix[outputindex * (datapresent + datamissing) + inputindex];
30
@@ -189,7 +189,7 @@ bool ReedSolomon<Galois8>::Process(size_
31
 
32
 // Set which of the source files are present and which are missing
33
 // and compute the base values to use for the vandermonde matrix.
34
-bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
35
+template<> bool ReedSolomon<Galois16>::SetInput(const vector<bool> &present)
36
 {
37
   inputcount = (u32)present.size();
38
 
39
@@ -233,7 +233,7 @@ bool ReedSolomon<Galois16>::SetInput(con
40
 
41
 // Record that the specified number of source files are all present
42
 // and compute the base values to use for the vandermonde matrix.
43
-bool ReedSolomon<Galois16>::SetInput(u32 count)
44
+template<> bool ReedSolomon<Galois16>::SetInput(u32 count)
45
 {
46
   inputcount = count;
47
 
48
@@ -267,7 +267,7 @@ bool ReedSolomon<Galois16>::SetInput(u32
49
   return true;
50
 }
51
 
52
-bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
53
+template<> bool ReedSolomon<Galois16>::Process(size_t size, u32 inputindex, const void *inputbuffer, u32 outputindex, void *outputbuffer)
54
 {
55
   // Look up the appropriate element in the RS matrix
56
 
(-)./pkg-descr (-1 / +5 lines)
Lines 4-7 Link Here
4
damage in data files and repair them if necessary. It can be used with
4
damage in data files and repair them if necessary. It can be used with
5
any kind of file. Par files are especially popular on Usenet.
5
any kind of file. Par files are especially popular on Usenet.
6
6
7
WWW: http://parchive.sourceforge.net/
7
OpenMP multithreading was originally developed by Jussi Kansanen: https://github.com/jkansanen/par2cmdline-mt
8
The original development was done on Sourceforge but stalled.
9
For more information from the original authors see http://parchive.sourceforge.net
10
11
WWW: https://github.com/Parchive/par2cmdline

Return to bug 248681