Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Apr 2007 01:16:04 GMT
From:      bf<bf2006a@yahoo.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/111391: [NEW PORT] archivers/paq: an archiver with an extremely high compression ratio
Message-ID:  <200704090116.l391G4lV045396@www.freebsd.org>
Resent-Message-ID: <200704090130.l391U2BJ036344@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         111391
>Category:       ports
>Synopsis:       [NEW PORT] archivers/paq: an archiver with an extremely high compression ratio
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 09 01:30:01 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     bf
>Release:        6.2-STABLE i386
>Organization:
>Environment:
>Description:
An archiver that may be of interest to some who must deal with large amounts of data and low storage capacity.


# 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:
#
#	/usr/ports/archivers/paq
#	/usr/ports/archivers/paq/Makefile
#	/usr/ports/archivers/paq/distinfo
#	/usr/ports/archivers/paq/files
#	/usr/ports/archivers/paq/files/pkg-message.in
#	/usr/ports/archivers/paq/pkg-plist
#	/usr/ports/archivers/paq/pkg-descr
#
echo c - /usr/ports/archivers/paq
mkdir -p /usr/ports/archivers/paq > /dev/null 2>&1
echo x - /usr/ports/archivers/paq/Makefile
sed 's/^X//' >/usr/ports/archivers/paq/Makefile << 'END-of-/usr/ports/archivers/paq/Makefile'
X# New ports collection makefile for:   paq
X# Date created:                5 April 2007
X# Whom:                        bf <bf2006a@yahoo.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	paq
XPORTVERSION=	8.l
XCATEGORIES=	archivers
XMASTER_SITES=	http://www.cs.fit.edu/~mmahoney/compression/
XDISTNAME=	paq8l
X
XMAINTAINER=	bf2006a@yahoo.com
XCOMMENT=	An archiver with an extremely high compression ratio
X
XNO_WRKSUBDIR=	yes
XUSE_ZIP=	yes
XSUB_FILES=	pkg-message
XPLIST_SUB=	DISTNAME=${DISTNAME}
X
X.include <bsd.port.pre.mk>
X
X.if !defined(WITHOUT_ASM) && ${ARCH} == "i386" && !defined(PACKAGE_BUILDING)
XBUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
XCXXFLAGS+=	-DUNIX -Os
XASM1?=	nasm -f elf -o
XASM2?=
X.if !defined(WITH_SSE)
XASMFILE=	paq7asm
X.else
XASMFILE=	paq7asmsse
X.endif
XSTRIP=
X.elif !defined(WITHOUT_ASM) && ${ARCH} == "amd64" && !defined(PACKAGE_BUILDING)
XBUILD_DEPENDS=	yasm:${PORTSDIR}/devel/yasm
XCXXFLAGS+=	-DUNIX -Os
XASM1?=	yasm -f elf64 -o
XASM2?=	-a x86 -m amd64
XASMFILE=	paq7asm-x86_64
XSTRIP=
X.else
XWITHOUT_ASM=	yes
XCXXFLAGS+=	-DUNIX -DNOASM -Os
X.endif
X
Xpre-everything::
X	@${ECHO_MSG}
X	@${ECHO_MSG} "If you have an older (pre-1997) x86 CPU without MMX instruction"
X	@${ECHO_MSG} "support, or if you wish to use the (usually slower) C++ code"
X	@${ECHO_MSG} "instead of the equivalent assembly language routines that are"
X	@${ECHO_MSG} "enabled by default on x86 and amd64 architectures, hit Ctrl-C"
X	@${ECHO_MSG} "now and use \"make WITHOUT_ASM=yes\"."
X	@${ECHO_MSG}
X	@${ECHO_MSG} "If you wish to use the version of the assembly code that is"
X	@${ECHO_MSG} "optimized for x86 (not amd64) processors with SSE instruction"
X	@${ECHO_MSG} "support, hit Ctrl-C now and use \"make WITH_SSE=yes\"."
X	@${ECHO_MSG}
X
Xdo-build:
X.if !defined(WITHOUT_ASM)
X	${ASM1} ${WRKSRC}/${ASMFILE}.o ${ASM2} ${WRKSRC}/${ASMFILE}.asm
X	${CXX} ${WRKSRC}/${DISTNAME}.cpp ${CXXFLAGS} -o ${WRKSRC}/${DISTNAME} ${WRKSRC}/${ASMFILE}.o
X.else
X	${CXX} ${WRKSRC}/${DISTNAME}.cpp ${CXXFLAGS} -o ${WRKSRC}/${DISTNAME}
X.endif
X
Xdo-install:
X.if !exists(${PREFIX}/bin)
X	${MKDIR} ${PREFIX}/bin
X.endif
X	${INSTALL_PROGRAM} ${WRKSRC}/${DISTNAME} ${PREFIX}/bin
X.if !defined(NOPORTDOCS)
X.if !exists(${DOCSDIR})
X	${MKDIR} ${DOCSDIR}
X.endif
X	${INSTALL_MAN} ${WRKSRC}/${DISTNAME}.cpp ${DOCSDIR}
X	${INSTALL_MAN} ${WRKSRC}/readme.txt ${DOCSDIR}
X.endif
X	${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.post.mk>
END-of-/usr/ports/archivers/paq/Makefile
echo x - /usr/ports/archivers/paq/distinfo
sed 's/^X//' >/usr/ports/archivers/paq/distinfo << 'END-of-/usr/ports/archivers/paq/distinfo'
XMD5 (paq8l.zip) = 302f7f83965efc1aa0a2ba81a7c1756b
XSHA256 (paq8l.zip) = 8800c0d2710112175959146da6380c64917623c434e82235da2230b3d638f6fe
XSIZE (paq8l.zip) = 114129
END-of-/usr/ports/archivers/paq/distinfo
echo c - /usr/ports/archivers/paq/files
mkdir -p /usr/ports/archivers/paq/files > /dev/null 2>&1
echo x - /usr/ports/archivers/paq/files/pkg-message.in
sed 's/^X//' >/usr/ports/archivers/paq/files/pkg-message.in << 'END-of-/usr/ports/archivers/paq/files/pkg-message.in'
X*************************************************************************
X
XSee %%PREFIX%%/share/doc/paq/readme.txt and the comments at the head of 
X%%PREFIX%%/share/doc/paq/paq8*.cpp for instructions and details on usage
Xand the algorithms employed.
X
X*************************************************************************
END-of-/usr/ports/archivers/paq/files/pkg-message.in
echo x - /usr/ports/archivers/paq/pkg-plist
sed 's/^X//' >/usr/ports/archivers/paq/pkg-plist << 'END-of-/usr/ports/archivers/paq/pkg-plist'
Xbin/%%DISTNAME%%
X%%PORTDOCS%%%%DOCSDIR%%/%%DISTNAME%%.cpp
X%%PORTDOCS%%%%DOCSDIR%%/readme.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X@dirrmtry bin
END-of-/usr/ports/archivers/paq/pkg-plist
echo x - /usr/ports/archivers/paq/pkg-descr
sed 's/^X//' >/usr/ports/archivers/paq/pkg-descr << 'END-of-/usr/ports/archivers/paq/pkg-descr'
XFor those who *must* cram their data into the smallest possible archives, 
Xpaq is an archiver with the best lossless compression ratios now available
Xacross a wide variety of test data, according to several benchmarks.  
XIt uses adaptive weighting of context models to obtain archives that are
Xtypically about 65%-85% of the size of the corresponding best-performance 
Xgzip archives. This comes at the expense of increased memory usage
X(30MB - 1650MB, depending upon the user-specified level of compression),
Xand lower speeds(compression and decompression are often tens of times 
Xslower than bzip2 or gzip, and can be as much as several hundreds of times
Xslower). 
X
XThe command-line interface permits compression, decompression, and viewing
Xof the contents of archives.  Compression preserves directory structure
Xbut not file attributes.  There are no commands to update an existing 
Xarchive or to extract part of an archive.  Files and archives larger than
X2GB are not supported (but might work on 64-bit machines, not tested).
XFile names with nonprintable characters are not supported (spaces
Xare OK).
X
XWWW: http://www.cs.fit.edu/~mmahoney/compression/
END-of-/usr/ports/archivers/paq/pkg-descr
exit


>How-To-Repeat:

>Fix:

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200704090116.l391G4lV045396>