diff options
author | edwin <edwin@FreeBSD.org> | 2008-08-17 14:48:21 +0800 |
---|---|---|
committer | edwin <edwin@FreeBSD.org> | 2008-08-17 14:48:21 +0800 |
commit | 94611b3d0d785827ba53b78dd5f4e301525844f4 (patch) | |
tree | 01f9738cc90109eeb06329d80f1e5ff0ef5ce5a8 /archivers | |
parent | 43abfd8e24e942a9e7ea7f92407166f0e103632f (diff) | |
download | freebsd-ports-gnome-94611b3d0d785827ba53b78dd5f4e301525844f4.tar.gz freebsd-ports-gnome-94611b3d0d785827ba53b78dd5f4e301525844f4.tar.zst freebsd-ports-gnome-94611b3d0d785827ba53b78dd5f4e301525844f4.zip |
[NEW PORT] archivers/libpar2 Reusable library for manipulating par2 files
Libpar2 is a library for creating and using PAR2 files to detect
damage in data files and repair them if necessary. It can be used with
any kind of file. Par files are especially popular on Usenet.
Libpar2 is extracted from par2cmdline, and distributed separately.
WWW: http://parchive.sourceforge.net/
PR: ports/126578
Submitted by: Jeff Burchell <toxic@doobie.com>
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/Makefile | 1 | ||||
-rw-r--r-- | archivers/libpar2/Makefile | 35 | ||||
-rw-r--r-- | archivers/libpar2/distinfo | 3 | ||||
-rw-r--r-- | archivers/libpar2/files/patch-ChangeLog | 9 | ||||
-rw-r--r-- | archivers/libpar2/files/patch-parheaders.h | 11 | ||||
-rw-r--r-- | archivers/libpar2/pkg-descr | 7 | ||||
-rw-r--r-- | archivers/libpar2/pkg-plist | 38 |
7 files changed, 104 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index a1b6499f0e07..4d833c3ddf41 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -52,6 +52,7 @@ SUBDIR += liblzxcomp SUBDIR += libmspack SUBDIR += liborange + SUBDIR += libpar2 SUBDIR += librtfcomp SUBDIR += libunrar SUBDIR += libzip diff --git a/archivers/libpar2/Makefile b/archivers/libpar2/Makefile new file mode 100644 index 000000000000..2dc27d4d854a --- /dev/null +++ b/archivers/libpar2/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: libpar2 +# Date created: 16 Aug 2008 +# Whom: Jeff Burchell <toxic@doobie.com> +# +# $FreeBSD$ +# + +PORTNAME= libpar2 +PORTVERSION= 0.2 +PORTREVISION= 1 +CATEGORIES= archivers +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= parchive +DISTNAME= ${PORTNAME}-${PORTVERSION} + +MAINTAINER= toxic@doobie.com +COMMENT= A library for manipulating par2 files, extracted from par2cmdline + +LIB_DEPENDS= sigc-2.0:${PORTSDIR}/devel/libsigc++20 + +GNU_CONFIGURE= yes +CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} + +CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib" \ + CPPFLAGS="-I${LOCALBASE}/include" + +USE_LDCONFIG= yes + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/archivers/libpar2/distinfo b/archivers/libpar2/distinfo new file mode 100644 index 000000000000..e8fb7a4ba343 --- /dev/null +++ b/archivers/libpar2/distinfo @@ -0,0 +1,3 @@ +MD5 (libpar2-0.2.tar.gz) = 94c6df4e38efe08056ecde2a04e0be91 +SHA256 (libpar2-0.2.tar.gz) = 074fbf840f73b1e13e0405fce261078c81c8c0a4859e30a7bba10510f9199908 +SIZE (libpar2-0.2.tar.gz) = 401700 diff --git a/archivers/libpar2/files/patch-ChangeLog b/archivers/libpar2/files/patch-ChangeLog new file mode 100644 index 000000000000..56b5a23ca6c8 --- /dev/null +++ b/archivers/libpar2/files/patch-ChangeLog @@ -0,0 +1,9 @@ +--- ChangeLog.orig 2006-02-03 08:07:23.000000000 -0800 ++++ ChangeLog 2008-08-16 13:10:41.000000000 -0700 +@@ -1,3 +1,6 @@ ++16 Aug 2008 FreeBSD Port ++ * Fix 2G overflow for data_size (backported from vendor CVS) ++ + 03 Feb 2006 Francois LESUEUR + * Version 0.2 released + * Added support for detailed output diff --git a/archivers/libpar2/files/patch-parheaders.h b/archivers/libpar2/files/patch-parheaders.h new file mode 100644 index 000000000000..7278377b4539 --- /dev/null +++ b/archivers/libpar2/files/patch-parheaders.h @@ -0,0 +1,11 @@ +--- parheaders.h 2005/11/27 03:48:37 1.1 ++++ parheaders.h 2006/04/18 08:49:39 1.2 +@@ -9,7 +9,7 @@ + int other_files; + int block_size; + int data_blocks; +- int data_size; ++ long int data_size; + int chunk_size; + + ParHeaders(void); diff --git a/archivers/libpar2/pkg-descr b/archivers/libpar2/pkg-descr new file mode 100644 index 000000000000..1323b633c157 --- /dev/null +++ b/archivers/libpar2/pkg-descr @@ -0,0 +1,7 @@ +Libpar2 is a library for manipulating par2 files, extracted from par2cmdline + +Libpar2 is a library for creating and using PAR2 files to detect +damage in data files and repair them if necessary. It can be used with +any kind of file. Par files are especially popular on Usenet. + +WWW: http://parchive.sourceforge.net/ diff --git a/archivers/libpar2/pkg-plist b/archivers/libpar2/pkg-plist new file mode 100644 index 000000000000..9cad9c7b5455 --- /dev/null +++ b/archivers/libpar2/pkg-plist @@ -0,0 +1,38 @@ +include/libpar2/commandline.h +include/libpar2/config.h +include/libpar2/crc.h +include/libpar2/creatorpacket.h +include/libpar2/criticalpacket.h +include/libpar2/datablock.h +include/libpar2/descriptionpacket.h +include/libpar2/diskfile.h +include/libpar2/filechecksummer.h +include/libpar2/galois.h +include/libpar2/letype.h +include/libpar2/libpar2.h +include/libpar2/mainpacket.h +include/libpar2/md5.h +include/libpar2/par1fileformat.h +include/libpar2/par1repairer.h +include/libpar2/par1repairersourcefile.h +include/libpar2/par2cmdline.h +include/libpar2/par2creator.h +include/libpar2/par2creatorsourcefile.h +include/libpar2/par2fileformat.h +include/libpar2/par2repairer.h +include/libpar2/par2repairersourcefile.h +include/libpar2/parheaders.h +include/libpar2/recoverypacket.h +include/libpar2/reedsolomon.h +include/libpar2/verificationhashtable.h +include/libpar2/verificationpacket.h +lib/libpar2.a +lib/libpar2.la +lib/libpar2.so +lib/libpar2.so.0 +lib/libpar2/include/config.h +%%DOCSDIR%%/README +@dirrm %%DOCSDIR%% +@dirrm lib/libpar2/include +@dirrm lib/libpar2 +@dirrm include/libpar2 |