ports/69248: new port archivers/p7zip
Juergen Lock
nox at jelal.kn-bremen.de
Sun Jul 18 19:40:23 UTC 2004
>Number: 69248
>Category: ports
>Synopsis: new port archivers/p7zip
>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: Sun Jul 18 19:40:22 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator: Juergen Lock
>Release: FreeBSD 5.2.1-SECURITY i386
>Organization:
me? organized??
>Environment:
System: FreeBSD neptun 5.2.1-SECURITY FreeBSD 5.2.1-SECURITY #0: Wed May 26 04:19:54 GMT 2004 root at builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386
>Description:
port of p7zip, unix commandline versions of 7-zip
>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:
#
# Makefile
# pkg-descr
# pkg-plist
# distinfo
# files/
# files/7z
# files/patch-aa
# files/patch-ab
# files/patch-ac
# files/patch-ba
#
echo x - Makefile
sed 's/^X//' >Makefile << 'END-of-Makefile'
X# New ports collection makefile for: p7zip
X# Date created: Sun Jul 18 15:07:26 CEST 2004
X# Whom: Juergen Lock <nox at jelal.kn-bremen.de>
X#
X# $FreeBSD: $
X#
X
XPORTNAME= p7zip
XPORTVERSION= 0.90
XCATEGORIES= archivers
XMASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= p7zip
XDISTNAME= ${PORTNAME}_${PORTVERSION}
X
XMAINTAINER= nox at jelal.kn-bremen.de
XCOMMENT= Command line versions of 7-zip
X
XUSE_BZIP2= yes
XUSE_GMAKE= yes
XMAKEFILE= makefile
XONLY_FOR_ARCHS= alpha amd64 i386 ia64
X
Xdo-install:
X ${MKDIR} ${PREFIX}/p7zip/bin/Codecs
X ${MKDIR} ${PREFIX}/p7zip/bin/Formats
X ${INSTALL_PROGRAM} ${WRKSRC}/bin/7z ${PREFIX}/p7zip/bin
X ${INSTALL_PROGRAM} ${WRKSRC}/bin/7za ${PREFIX}/bin
X ${INSTALL_DATA} ${WRKSRC}/bin/Codecs/* ${PREFIX}/p7zip/bin/Codecs
X ${INSTALL_DATA} ${WRKSRC}/bin/Formats/* ${PREFIX}/p7zip/bin/Formats
X ${INSTALL_SCRIPT} ${FILESDIR}/7z ${PREFIX}/bin
X ${MKDIR} ${PREFIX}/share/doc/p7zip/commands
X ${MKDIR} ${PREFIX}/share/doc/p7zip/switches
X ${INSTALL_DATA} ${WRKSRC}/html/cmdline/*.htm ${PREFIX}/share/doc/p7zip
X ${INSTALL_DATA} ${WRKSRC}/html/cmdline/commands/* ${PREFIX}/share/doc/p7zip/commands
X ${INSTALL_DATA} ${WRKSRC}/html/cmdline/switches/* ${PREFIX}/share/doc/p7zip/switches
X
X.include <bsd.port.mk>
END-of-Makefile
echo x - pkg-descr
sed 's/^X//' >pkg-descr << 'END-of-pkg-descr'
Xp7zip is a port of 7z.exe and 7za.exe for Unix.
X
X7z and 7za are command line version of 7-zip, see http://www.7-zip.org/.
X
X7-Zip is a file archiver with highest compression ratio.
X
XCurrently, p7zip (like 7-zip) supports only little-endian machine.
X
X7z uses shared libraries and supports more archive formats, otherwise
X7z and 7za work the same. They didn't come with a manpage, html
Xcommandline documentation will be installed in %%PREFIX%%/share/doc/p7zip/
X
X
XWWW: http://p7zip.sourceforge.net/
END-of-pkg-descr
echo x - pkg-plist
sed 's/^X//' >pkg-plist << 'END-of-pkg-plist'
Xbin/7z
Xbin/7za
Xp7zip/bin/7z
Xp7zip/bin/Codecs/7zAES.dll
Xp7zip/bin/Codecs/BZip2.dll
Xp7zip/bin/Codecs/Copy.dll
Xp7zip/bin/Codecs/Implode.dll
Xp7zip/bin/Codecs/PPMD.dll
Xp7zip/bin/Codecs/AES.dll
Xp7zip/bin/Codecs/Branch.dll
Xp7zip/bin/Codecs/Deflate.dll
Xp7zip/bin/Codecs/LZMA.dll
Xp7zip/bin/Codecs/Swap.dll
Xp7zip/bin/Formats/7z.dll
Xp7zip/bin/Formats/Rar.dll
Xp7zip/bin/Formats/Tar.dll
Xp7zip/bin/Formats/Zip.dll
Xp7zip/bin/Formats/arj.dll
Xp7zip/bin/Formats/bz2.dll
Xp7zip/bin/Formats/cab.dll
Xp7zip/bin/Formats/cpio.dll
Xp7zip/bin/Formats/deb.dll
Xp7zip/bin/Formats/gz.dll
Xp7zip/bin/Formats/rpm.dll
Xp7zip/bin/Formats/split.dll
X%%PORTDOCS%%%%DOCSDIR%%/index.htm
X%%PORTDOCS%%%%DOCSDIR%%/syntax.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/add.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/delete.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/extract.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/extract_full.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/index.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/list.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/test.htm
X%%PORTDOCS%%%%DOCSDIR%%/commands/update.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/exclude.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/include.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/index.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/method.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/output_dir.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/overwrite.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/password.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/recurse.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/sfx.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/type.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/update.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/working_dir.htm
X%%PORTDOCS%%%%DOCSDIR%%/switches/yes.htm
X at dirrm p7zip/bin/Formats
X at dirrm p7zip/bin/Codecs
X at dirrm p7zip/bin
X at dirrm p7zip
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/commands
X%%PORTDOCS%%@dirrm %%DOCSDIR%%/switches
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
END-of-pkg-plist
echo x - distinfo
sed 's/^X//' >distinfo << 'END-of-distinfo'
XMD5 (p7zip_0.90.tar.bz2) = 6600fd9711b5cebd52aac2ce4d9ba727
XSIZE (p7zip_0.90.tar.bz2) = 447371
END-of-distinfo
echo c - files/
mkdir -p files/ > /dev/null 2>&1
echo x - files/7z
sed 's/^X//' >files/7z << 'END-of-files/7z'
X#! /bin/sh
XPROG=$(dirname $(realpath $0))/../p7zip/bin/7z
X
X$PROG "$@"
END-of-files/7z
echo x - files/patch-aa
sed 's/^X//' >files/patch-aa << 'END-of-files/patch-aa'
XIndex: myWindows/makefile
X@@ -2,7 +2,7 @@
X
X LOCAL_FLAGS=-I. -I.. -I../include_windows
X
X-LOCAL_SHARED=-lpthread -lm
X+LOCAL_SHARED=-pthread
X
X OBJS=myEvents.o myFiles.o myFindFile.o myDirectoryAndPath.o \
X myLastError.o myModuleFileName.o my_itow.o \
END-of-files/patch-aa
echo x - files/patch-ab
sed 's/^X//' >files/patch-ab << 'END-of-files/patch-ab'
XIndex: 7zip/UI/Console/makefile
X@@ -8,7 +8,7 @@
X # Cygwin does not support -ldl
X LOCAL_LIBS=-lpthread
X else
X-LOCAL_LIBS=-lpthread -ldl -lm
X+LOCAL_LIBS=-pthread
X endif
X
X MY_WINDOWS=$(MY_HOME)/myDirectoryAndPath.o \
END-of-files/patch-ab
echo x - files/patch-ac
sed 's/^X//' >files/patch-ac << 'END-of-files/patch-ac'
XIndex: 7zip/Bundles/Alone/makefile
X@@ -21,7 +21,7 @@
X $(MY_HOME)/wine_strings.o \
X $(MY_HOME)/stuff_for_cygwin.o
X
X-LOCAL_SHARED=-lpthread -lm
X+LOCAL_SHARED=-pthread
X
X
X OBJS=\
END-of-files/patch-ac
echo x - files/patch-ba
sed 's/^X//' >files/patch-ba << 'END-of-files/patch-ba'
XIndex: Windows/Time.h
X@@ -41,7 +41,11 @@
X fileTime.dwHighDateTime = DWORD(ll >> 32);
X }
X
X+#ifdef __FreeBSD__
X+inline bool FileTimeToUnixTime(const FILETIME &fileTime, time_t &unixTime)
X+#else
X inline bool FileTimeToUnixTime(const FILETIME &fileTime, long &unixTime)
X+#endif
X {
X UINT64 winTime = (((UINT64)fileTime.dwHighDateTime) << 32) + fileTime.dwLowDateTime;
X if (winTime < kUnixTimeStartValue)
X@@ -49,7 +53,11 @@
X winTime = (winTime - kUnixTimeStartValue) / kNumTimeQuantumsInSecond;
X if (winTime >= 0xFFFFFFFF)
X return false;
X+#ifdef __FreeBSD__
X+ unixTime = (time_t)winTime;
X+#else
X unixTime = (long)winTime;
X+#endif
X return true;
X }
X
END-of-files/patch-ba
exit
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list