Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Aug 2016 05:07:20 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r420447 - in head/archivers/paq: . files
Message-ID:  <201608190507.u7J57KIm040699@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Fri Aug 19 05:07:20 2016
New Revision: 420447
URL: https://svnweb.freebsd.org/changeset/ports/420447

Log:
  archivers/paq: Fix when DOCS option is OFF
  
  No revbump necessary as the port would always fail to build if DOCS
  option was disabled.
  
  PR:		208994
  Submitted by:	Anton Sayetsky

Added:
  head/archivers/paq/files/patch-zpsfx.cpp
     - copied unchanged from r420420, head/archivers/paq/files/patch_zpsfx.cpp
Deleted:
  head/archivers/paq/files/patch_zpsfx.cpp
Modified:
  head/archivers/paq/Makefile

Modified: head/archivers/paq/Makefile
==============================================================================
--- head/archivers/paq/Makefile	Fri Aug 19 04:23:33 2016	(r420446)
+++ head/archivers/paq/Makefile	Fri Aug 19 05:07:20 2016	(r420447)
@@ -55,7 +55,6 @@ PORTDOCS+=	bwt_.cpp bwtpre.cpp bwtrle.cp
 		exe_jo.cpp jpeg_jo.cpp lzpre.cpp lzppre.cpp readme_bwt.txt \
 		readme_bwt_j3.txt readme_exe_j1.txt readme_lazy210.txt zpsfx.cpp
 READMES+=	bwt_j3 exe_j1 lazy210
-EXTRA_PATCHES+=	${FILESDIR}/patch_zpsfx.cpp
 .endif
 WDATA=	bmp_j4.cfg bwt_j3.cfg bwt_slowmode1_1GB_block.cfg \
 	bwt_slowmode1_256MB_block.cfg bwt_slowmode1_4MB_block.cfg \

Copied: head/archivers/paq/files/patch-zpsfx.cpp (from r420420, head/archivers/paq/files/patch_zpsfx.cpp)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/archivers/paq/files/patch-zpsfx.cpp	Fri Aug 19 05:07:20 2016	(r420447, copy of r420420, head/archivers/paq/files/patch_zpsfx.cpp)
@@ -0,0 +1,77 @@
+--- zpsfx.cpp.orig	2016-07-26 12:10:41 UTC
++++ zpsfx.cpp
+@@ -16,19 +16,38 @@ Or use appropriate optimization options.
+ the executable smaller. -DNDEBUG turns off run time checks.
+ To convert a ZPAQ archive to a self extracting archive:
+ 
++On Windows:
++
+   copy/b zpsfx.exe+zpsfx.tag+archive.zpaq archive.exe
+ 
++On FreeBSD(the choice of archive name is discretionary): 
++
++  cat zpsfx zpsfx.tag archive.zpaq > archive.sfx
++
+ zpsfx.tag is a 13 byte file used to mark the start of the compressed data
+ that is appended. Alternatively, zpaq with the "t" modifier will append
+ the same tag ("a" appends).
+ 
++On Windows:
++
+   copy zpsfx.exe archive.exe
+   zpaq ta archive.exe files...
+ 
++On FreeBSD:
++
++  cp zpsfx archive.sfx
++  zpaq ta archive.sfx files...
++
+ To extract:
+ 
++On Windows:
++
+   archive.exe
+ 
++On FreeBSD:
++
++  archive.sfx
++
+ The program reads itself and decompresses the appended archive.
+ You must enter the .exe extension as shown. If the file is not in
+ the current folder then you need to specify the path. The PATH environment
+@@ -44,7 +63,11 @@ stored filename. SHA-1 checksums are not
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string>
++#ifdef unix
++#include <sys/stat.h>
++#else
+ #include <windows.h>
++#endif
+ 
+ // An error handler is required as shown in this example. libzpaq will
+ // call it with an English language message in case of a fatal error.
+@@ -96,7 +119,11 @@ struct Buf: public libzpaq::Writer {
+ 
+ // Return '/' in Linux or '\' in Windows
+ char slash() {
++#ifdef unix
++  return '/';
++#else
+   return '\\';
++#endif
+ }
+ 
+ // Create directories as needed. For example if path="/tmp/foo/bar"
+@@ -106,7 +133,11 @@ void makepath(std::string& path) {
+   for (int i=0; i<path.size(); ++i) {
+     if (path[i]=='\\' || path[i]=='/') {
+       path[i]=0;
++#ifdef unix
++      int ok=!mkdir(path.c_str(), 0777);
++#else
+       int ok=CreateDirectory(path.c_str(), 0);
++#endif
+       path[i]=slash();
+     }
+   }



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