Bug 111391 - [NEW PORT] archivers/paq: an archiver with an extremely high compression ratio
Summary: [NEW PORT] archivers/paq: an archiver with an extremely high compression ratio
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Cheng-Lung Sung
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-09 02:30 UTC by bf
Modified: 2007-04-10 09:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bf 2007-04-09 02:30:01 UTC
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
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-04-09 02:30:09 UTC
Class Changed
From-To: update->change-request

Fix category (new ports should be change-requests)
Comment 2 Cheng-Lung Sung freebsd_committer freebsd_triage 2007-04-09 03:13:35 UTC
Responsible Changed
From-To: freebsd-ports-bugs->clsung

I'll take it.
Comment 3 dfilter service freebsd_committer freebsd_triage 2007-04-10 08:59:17 UTC
clsung      2007-04-10 07:59:10 UTC

  FreeBSD ports repository

  Modified files:
    archivers            Makefile 
  Added files:
    archivers/paq        Makefile distinfo pkg-descr pkg-plist 
    archivers/paq/files  pkg-message.in 
  Log:
  Add paq 8.l, an archiver with an extremely high compression ratio.
  
  PR:             ports/111391
  Submitted by:   bf <bf2006a at yahoo.com>
  
  Revision  Changes    Path
  1.176     +1 -0      ports/archivers/Makefile
  1.1       +82 -0     ports/archivers/paq/Makefile (new)
  1.1       +3 -0      ports/archivers/paq/distinfo (new)
  1.1       +7 -0      ports/archivers/paq/files/pkg-message.in (new)
  1.1       +20 -0     ports/archivers/paq/pkg-descr (new)
  1.1       +5 -0      ports/archivers/paq/pkg-plist (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 4 Cheng-Lung Sung freebsd_committer freebsd_triage 2007-04-10 09:04:50 UTC
State Changed
From-To: open->closed

New port added. Thank You.