ports/126578: [NEW PORT] archivers/libpar2 Library for manipulating par2 files

Jeff Burchell toxic at doobie.com
Sat Aug 16 23:10:08 UTC 2008


>Number:         126578
>Category:       ports
>Synopsis:       [NEW PORT] archivers/libpar2 Reusable library for manipulating par2 files
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 16 23:10:06 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Jeff Burchell
>Release:        FreeBSD 7.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD fbsd 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root at logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386

>Description:
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/

>How-To-Repeat:
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	libpar2
#	libpar2/Makefile
#	libpar2/pkg-descr
#	libpar2/distinfo
#	libpar2/pkg-plist
#	libpar2/files
#	libpar2/files/patch-parheaders.h
#	libpar2/files/patch-ChangeLog
#
echo c - libpar2
mkdir -p libpar2 > /dev/null 2>&1
echo x - libpar2/Makefile
sed 's/^X//' >libpar2/Makefile << 'END-of-libpar2/Makefile'
X# New ports collection makefile for:	libpar2
X# Date created:				16 Aug 2008
X# Whom:					Jeff Burchell <toxic at doobie.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libpar2
XPORTVERSION=	0.2
XPORTREVISION=	1
XCATEGORIES=	archivers
X
XMASTER_SITES=		${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	parchive
XDISTNAME=		${PORTNAME}-${PORTVERSION}
XCOMMENT=		A library for manipulating par2 files, extracted from par2cmdline
XMAINTAINER=		toxic at doobie.com
X
XLIB_DEPENDS=		sigc-2.0:${PORTSDIR}/devel/libsigc++20
X
XGNU_CONFIGURE=		yes
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
XCONFIGURE_ENV=		LDFLAGS="-L${LOCALBASE}/lib" \
X			CPPFLAGS="-I${LOCALBASE}/include"
X
XUSE_LDCONFIG=	yes
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-libpar2/Makefile
echo x - libpar2/pkg-descr
sed 's/^X//' >libpar2/pkg-descr << 'END-of-libpar2/pkg-descr'
XLibpar2 is a library for manipulating par2 files, extracted from par2cmdline
X
XLibpar2 is a library for creating and using PAR2 files to detect
Xdamage in data files and repair them if necessary. It can be used with
Xany kind of file. Par files are especially popular on Usenet.
X
XWWW: http://parchive.sourceforge.net/
END-of-libpar2/pkg-descr
echo x - libpar2/distinfo
sed 's/^X//' >libpar2/distinfo << 'END-of-libpar2/distinfo'
XMD5 (libpar2-0.2.tar.gz) = 94c6df4e38efe08056ecde2a04e0be91
XSHA256 (libpar2-0.2.tar.gz) = 074fbf840f73b1e13e0405fce261078c81c8c0a4859e30a7bba10510f9199908
XSIZE (libpar2-0.2.tar.gz) = 401700
END-of-libpar2/distinfo
echo x - libpar2/pkg-plist
sed 's/^X//' >libpar2/pkg-plist << 'END-of-libpar2/pkg-plist'
Xinclude/libpar2/commandline.h
Xinclude/libpar2/config.h
Xinclude/libpar2/crc.h
Xinclude/libpar2/creatorpacket.h
Xinclude/libpar2/criticalpacket.h
Xinclude/libpar2/datablock.h
Xinclude/libpar2/descriptionpacket.h
Xinclude/libpar2/diskfile.h
Xinclude/libpar2/filechecksummer.h
Xinclude/libpar2/galois.h
Xinclude/libpar2/letype.h
Xinclude/libpar2/libpar2.h
Xinclude/libpar2/mainpacket.h
Xinclude/libpar2/md5.h
Xinclude/libpar2/par1fileformat.h
Xinclude/libpar2/par1repairer.h
Xinclude/libpar2/par1repairersourcefile.h
Xinclude/libpar2/par2cmdline.h
Xinclude/libpar2/par2creator.h
Xinclude/libpar2/par2creatorsourcefile.h
Xinclude/libpar2/par2fileformat.h
Xinclude/libpar2/par2repairer.h
Xinclude/libpar2/par2repairersourcefile.h
Xinclude/libpar2/parheaders.h
Xinclude/libpar2/recoverypacket.h
Xinclude/libpar2/reedsolomon.h
Xinclude/libpar2/verificationhashtable.h
Xinclude/libpar2/verificationpacket.h
Xlib/libpar2.a
Xlib/libpar2.la
Xlib/libpar2.so
Xlib/libpar2.so.0
Xlib/libpar2/include/config.h
Xshare/doc/libpar2/README
X at dirrm share/doc/libpar2
X at dirrm lib/libpar2/include
X at dirrm lib/libpar2
X at dirrm include/libpar2
END-of-libpar2/pkg-plist
echo c - libpar2/files
mkdir -p libpar2/files > /dev/null 2>&1
echo x - libpar2/files/patch-parheaders.h
sed 's/^X//' >libpar2/files/patch-parheaders.h << 'END-of-libpar2/files/patch-parheaders.h'
X--- parheaders.h	2005/11/27 03:48:37	1.1
X+++ parheaders.h	2006/04/18 08:49:39	1.2
X@@ -9,7 +9,7 @@
X   int other_files;
X   int block_size;
X   int data_blocks;
X-  int data_size;
X+  long int data_size;
X   int chunk_size;
X   
X   ParHeaders(void);
END-of-libpar2/files/patch-parheaders.h
echo x - libpar2/files/patch-ChangeLog
sed 's/^X//' >libpar2/files/patch-ChangeLog << 'END-of-libpar2/files/patch-ChangeLog'
X--- ChangeLog.orig	2006-02-03 08:07:23.000000000 -0800
X+++ ChangeLog	2008-08-16 13:10:41.000000000 -0700
X@@ -1,3 +1,6 @@
X+16 Aug 2008 FreeBSD Port
X+	* Fix 2G overflow for data_size (backported from vendor CVS)
X+
X 03 Feb 2006 Francois LESUEUR
X 	* Version 0.2 released
X 	* Added support for detailed output
END-of-libpar2/files/patch-ChangeLog
exit

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list