Opened 20 years ago

Closed 20 years ago

Last modified 20 years ago

#1774 closed defect (fixed)

NEW: par2-0.4

Reported by: julian@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc:
Port:

Description

par2-0.4

the portfile is INLINE here. There is an attached patch file.

Description: Parchive can restore missing data from a file or set of files. par is used mainly for usenet multi-part archives, but version 2 is much more flexible, allowing for data restoration on a wide range of files. Basically, when you're sending a bunch of files or one big file around the internet, you can send some .par files too. If some of the file(s) turn out to be missing or corrupt, you use the 'par2repair' command to repair the missing data, if there's enough par data. You can create as many .par files as you want to recover large amounts of the data (up to a certain percentage limit, I guess). The 'par2verify' command allows you to check the integrity of the data against the par files, which is basically like doing an md5 check, but with much much more data to verify against. 'par2create' allows you to create par files.

Homepage: http://parchive.sourceforge.net/

Comments: I had to patch in a redefine of stricmp to be strcasecmp. I don't really understand the full ramifications of this, but par2 seems to work fine.

Portfile: PortSystem 1.0 name par2 version 0.4 description Parchive: Parity Archive Volume Set for data recovery long_description Parchive takes .par files and can regenerate missing data \

based upon a Reed-Soloman Code. This is useful for restoring \ missing pieces of a multi-part archive like the kinds used \ on Usenet. Version 2 does not require like-sized pieces, \ so it is useful for many more kinds of data recovery.

maintainers julian@… categories archivers platforms darwin homepage http://parchive.sourceforge.net/ master_sites sourceforge:sourceforge/parchive/ checksums md5 1551b63e57e3c232254dc62073b723a9 distname par2cmdline-${version} patchfiles stricmp-define.patch configure.args --mandir=${prefix}/share/man configure.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \

CFLAGS="-no-cpp-precomp -flat_namespace -undefined suppress"

Attachments (2)

Portfile (887 bytes) - added by julian@… 20 years ago.
Portfile (in case the inline one isn't very nice)
stricmp-define.patch (474 bytes) - added by julian@… 20 years ago.
patch defines stricmp to be strcasecmp, since it couldn't find stricmp

Download all attachments as: .zip

Change History (4)

Changed 20 years ago by julian@…

Attachment: Portfile added

Portfile (in case the inline one isn't very nice)

Changed 20 years ago by julian@…

Attachment: stricmp-define.patch added

patch defines stricmp to be strcasecmp, since it couldn't find stricmp

comment:1 Changed 20 years ago by blb@…

Resolution: fixed
Status: newclosed

Committed with one change: cleaned the master_sites entry.

The reason for needing to define stricmp is that, due to using '-undefined suppress', configure thinks Darwin has stricmp. If you look at par2cmdline.h, you'll see on systems known to not have stricmp, they do the same as your patch, so shouldn't be any issues with it.

Thanks for the port.

comment:2 Changed 20 years ago by julian@…

Oh, well then, I guess the -undefined suppress probably isn't needed. I'll try it and find out sometime. Thanks!

Note: See TracTickets for help on using tickets.