ports/117292: [patch] Mk/bsd.port.mk Use tar for extracting zip archives
Alex Kozlov
spam at rm-rf.kiev.ua
Thu Oct 18 09:50:04 UTC 2007
>Number: 117292
>Category: ports
>Synopsis: [patch] Mk/bsd.port.mk Use tar for extracting zip archives
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Oct 18 09:50:04 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: Alex Kozlov
>Release: FreeBSD 6.2
>Organization:
private
>Environment:
>Description:
After 5.4R bsdtar can extract files from zip archives.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
Index: Mk/bsd.port.mk
@@ -1657,7 +1657,7 @@
.endif
PLIST_SUB+= LIB32DIR=${LIB32DIR}
-.if defined(USE_ZIP)
+.if defined(USE_ZIP) && ( ${OSVERSION} < 504000 )
EXTRACT_DEPENDS+= unzip:${PORTSDIR}/archivers/unzip
.endif
.if defined(USE_MAKESELF)
@@ -2211,9 +2211,15 @@
# EXTRACT_SUFX is defined in .pre.mk section
.if defined(USE_ZIP)
+.if ${OSVERSION} < 504000
EXTRACT_CMD?= ${UNZIP_CMD}
EXTRACT_BEFORE_ARGS?= -qo
EXTRACT_AFTER_ARGS?= -d ${WRKDIR}
+.else
+EXTRACT_CMD?= ${TAR}
+EXTRACT_BEFORE_ARGS?= -xf
+EXTRACT_AFTER_ARGS?= -C ${WRKDIR}
+.endif
.elif defined(USE_MAKESELF)
EXTRACT_CMD?= ${UNMAKESELF_CMD}
EXTRACT_BEFORE_ARGS?=
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list