Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2003 03:48:55 +0700
From:      Alexey Dokuchaev <danfe@nsu.ru>
To:        ports@freebsd.org
Subject:   Force files overwrite with USE_ZIP=yes
Message-ID:  <20030601204855.GA50081@regency.nsu.ru>

next in thread | raw e-mail | index | archive | help
Hello there!

While, when [gb]ziped distfiles explicitly set to overwrite existing
files upon extraction, this is not the case with .zip-suffixed
distfiles, thus requiring explicit override of EXTRACT_BEFORE_ARGS for
some ports that need this.  I therefore propose the following change to
/usr/ports/Mk/bsd.port.mk to make things easier for porters and general
consistency with GZIP/BZIP2 distfiles behavior.

--- bsd.port.mk.orig	Mon Jun  2 03:42:10 2003
+++ bsd.port.mk	Mon Jun  2 03:42:20 2003
@@ -1743,7 +1743,7 @@
 # EXTRACT_SUFX is defined in .pre.mk section
 .if defined(USE_ZIP)
 EXTRACT_CMD?=                   unzip
-EXTRACT_BEFORE_ARGS?=   -q
+EXTRACT_BEFORE_ARGS?=   -qo
 EXTRACT_AFTER_ARGS?=    -d ${WRKDIR}
 .else
 EXTRACT_BEFORE_ARGS?=   -dc

./danfe



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