From owner-svn-ports-head@FreeBSD.ORG Wed Mar 20 03:43:18 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B33D01F9; Wed, 20 Mar 2013 03:43:18 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from mail-ia0-x236.google.com (mail-ia0-x236.google.com [IPv6:2607:f8b0:4001:c02::236]) by mx1.freebsd.org (Postfix) with ESMTP id 47ADF9C1; Wed, 20 Mar 2013 03:43:18 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id u8so1045948iag.41 for ; Tue, 19 Mar 2013 20:43:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:x-received:reply-to:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Xf4zVTkeFRDlaaZL1KjcMuc1DFBuPb9DmpaP6LZ8Qao=; b=HGxT55N8wSbHbp/bXokjlUKcwsciuXNhsjxQcWqrIHSqtj9Z6oBWn+ltach3Dak/2W cP6dRPCasM67x94DDO09oMaJfEum9v8KpY2w+dk/UJvn/9DVEsVIF4H314pq7Sue+FER /RQzV6TMhxSzpTYN91TNAIRwzwi5/OAhOKB27Co8Tthmubdpas1HFR0MEM2xgcuDQwIp 5bKBlvRDfQFIqB9tq2t4BTAh3ZufpkTQgJQbZjgJ6ZX85mFFNmdlJXFSFQXMkTo+r59h uHysNrBlNTfsJkteuM6ccN8FeGpMgWP0IR5K3xiz3ZsXldmj8wEJefsTiAUDvpZeKjnF ZGcw== MIME-Version: 1.0 X-Received: by 10.42.58.67 with SMTP id g3mr12704413ich.56.1363750997824; Tue, 19 Mar 2013 20:43:17 -0700 (PDT) Received: by 10.64.11.161 with HTTP; Tue, 19 Mar 2013 20:43:17 -0700 (PDT) In-Reply-To: <201303200336.r2K3aiK9062898@svn.freebsd.org> References: <201303200336.r2K3aiK9062898@svn.freebsd.org> Date: Wed, 20 Mar 2013 03:43:17 +0000 Message-ID: Subject: Re: svn commit: r314709 - in head/archivers: . zpaq zpaq/files From: "b.f." To: Alexey Dokuchaev Content-Type: text/plain; charset=ISO-8859-1 Cc: svn-ports-head@freebsd.org, svn-ports-all@freebsd.org, ports-committers@freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: bf1783@gmail.com List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 03:43:18 -0000 On 3/20/13, Alexey Dokuchaev wrote: > Author: danfe > Date: Wed Mar 20 03:36:44 2013 > New Revision: 314709 > URL: http://svnweb.freebsd.org/changeset/ports/314709 > > Log: > Add zpaq 6.22, a journaling, incremental, deduplicating archiver. > > Added: > head/archivers/zpaq/ > head/archivers/zpaq/Makefile (contents, props changed) > head/archivers/zpaq/distinfo (contents, props changed) > head/archivers/zpaq/files/ > head/archivers/zpaq/files/patch-zpaq.cc (contents, props changed) > head/archivers/zpaq/pkg-descr (contents, props changed) > Modified: > head/archivers/Makefile > > Modified: head/archivers/Makefile > ============================================================================== > --- head/archivers/Makefile Wed Mar 20 03:02:51 2013 (r314708) > +++ head/archivers/Makefile Wed Mar 20 03:36:44 2013 (r314709) > @@ -211,6 +211,7 @@ > SUBDIR += zip > SUBDIR += zipmix > SUBDIR += zipper > + SUBDIR += zpaq > SUBDIR += zoo > SUBDIR += zutils > > > Added: head/archivers/zpaq/Makefile > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/archivers/zpaq/Makefile Wed Mar 20 03:36:44 2013 (r314709) > @@ -0,0 +1,36 @@ > +# Created by: Alexey Dokuchaev > +# $FreeBSD$ > + > +PORTNAME= zpaq > +PORTVERSION= 6.22 > +CATEGORIES= archivers > +MASTER_SITES= http://mattmahoney.net/dc/ > +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g} > + > +MAINTAINER= danfe@FreeBSD.org > +COMMENT= Journaling, incremental, deduplicating archiver > + > +LICENSE= GPLv3 > + > +USE_ZIP= yes > +USE_DOS2UNIX= zpaq.cpp > +NO_WRKSUBDIR= yes > + > +PLIST_FILES= bin/zpaq bin/zpaqd > + > +.include > + > +.if ${ARCH} != "i386" && ${ARCH} != "amd64" > +CXXFLAGS+= -DNOJIT > +.endif > + > +do-build: > + cd ${BUILD_WRKSRC} && ${CXX} ${CXXFLAGS} -Dunix -DNDEBUG zpaq.cpp \ > + libzpaq.cpp divsufsort.c -o zpaq -fopenmp -pthread > + cd ${BUILD_WRKSRC} && ${CXX} ${CXXFLAGS} -Dunix zpaqd.cpp \ > + libzpaq.cpp -o zpaqd > + > +do-install: > + ${INSTALL_PROGRAM} ${WRKSRC}/zpaq ${WRKSRC}/zpaqd ${PREFIX}/bin > + > +.include > > Added: head/archivers/zpaq/distinfo > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/archivers/zpaq/distinfo Wed Mar 20 03:36:44 2013 (r314709) > @@ -0,0 +1,2 @@ > +SHA256 (zpaq622.zip) = > aceae6dba77240425c8498ff588e7a40260fe59ea9f5b81e7bb3e0ab13535ba5 > +SIZE (zpaq622.zip) = 827047 > > Added: head/archivers/zpaq/files/patch-zpaq.cc > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/archivers/zpaq/files/patch-zpaq.cc Wed Mar 20 03:36:44 > 2013 (r314709) > @@ -0,0 +1,38 @@ > +--- zpaq.cpp.orig 2013-03-20 11:24:18.000000000 +0800 > ++++ zpaq.cpp 2013-03-20 11:26:23.000000000 +0800 > +@@ -147,7 +147,7 @@ > + The default is to detect the number of processor cores and use that value > + or the limit according to -method, whichever is less. The number of cores > + is detected from the environment variable %NUMBER_OF_PROCESSORS% in > +-Windows or /proc/cpuinfo in Linux. > ++Windows or via sysconf(_SC_NPROCESSORS_ONLN) in Unix. > + > + -method M[n|e][C[N1][,N2]...]... > + > +@@ -1090,25 +1090,7 @@ > + int numberOfProcessors() { > + int rc=0; // result > + #ifdef unix > +- > +- // Count lines of the form "processor\t: %d\n" in /proc/cpuinfo > +- // where %d is 0, 1, 2,..., rc-1 > +- FILE *in=fopen("/proc/cpuinfo", "r"); > +- if (!in) return 1; > +- std::string s; > +- int c; > +- while ((c=getc(in))!=EOF) { > +- if (c>='A' && c<='Z') c+='a'-'A'; // convert to lowercase > +- if (c>' ') s+=c; // remove white space > +- if (c=='\n') { // end of line? > +- if (size(s)>10 && s.substr(0, 10)=="processor:") { > +- c=atoi(s.c_str()+10); > +- if (c==rc) ++rc; > +- } > +- s=""; > +- } > +- } > +- fclose(in); > ++ rc = sysconf(_SC_NPROCESSORS_ONLN); > + #else > + > + // In Windows return %NUMBER_OF_PROCESSORS% > > Added: head/archivers/zpaq/pkg-descr > ============================================================================== > --- /dev/null 00:00:00 1970 (empty, because file is newly added) > +++ head/archivers/zpaq/pkg-descr Wed Mar 20 03:36:44 2013 (r314709) > @@ -0,0 +1,22 @@ > +ZPAQ is a journaling, incremental, deduplicating archiver for Windows and > +Unix. "Journaling" means that when you update a file or directory, both > the > +old and new versions are saved. You can extract from the archive as it > +existed at any time in the past. > + > +"Incremental" means that when you back up your entire hard drive, only > those > +files whose last-modified date has changed since the previous backup are > +added. For 100 GB of files, this typically takes 1-2 minutes, vs. few > hours > +to create the first version. > + > +"Deduplicating" means that identical files or fragments are stored only > once > +to save time and space. > + > +Files are compressed in the open standard ZPAQ format, which is supported > by > +a specification, reference decoder, and a test case (which should decode > to > +the Calgary corpus), and a public domain C++ API that provides compression > +and decompression services. The format is not known to be encumbered by > any > +patents. ZPAQ stores the decompression algorithm description in the > archive, > +which means that when archive is updated to a better compression > algorithm, > +older extractors will still be able to read the new archives. > + > +WWW: http://mattmahoney.net/dc/zpaq.html > This is redundant: it duplicates the major component of archivers/paq. b.