summaryrefslogtreecommitdiff
path: root/archivers/rar
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-06-22 21:38:06 +0000
committerrillig <rillig@pkgsrc.org>2006-06-22 21:38:06 +0000
commit052941a476701fca823941e2099480311b64eaf6 (patch)
tree76e80379db7fe26ed0f479adeadb4b1de3509dbd /archivers/rar
parent9d0e192d84812dff5c5cca51d7aec13da3e93996 (diff)
downloadpkgsrc-052941a476701fca823941e2099480311b64eaf6.tar.gz
Only try to chmod the distfile if it is not yet executable. This fixes
unprivileged builds where the distfile has been downloaded by someone else before.
Diffstat (limited to 'archivers/rar')
-rw-r--r--archivers/rar/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/archivers/rar/Makefile b/archivers/rar/Makefile
index b4c7cf1de0f..531ba293aea 100644
--- a/archivers/rar/Makefile
+++ b/archivers/rar/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.45 2006/06/18 07:04:16 rillig Exp $
+# $NetBSD: Makefile,v 1.46 2006/06/22 21:38:06 rillig Exp $
DISTNAME= rarbsd
PKGNAME= rar-2.02
@@ -37,7 +37,8 @@ pre-extract:
${ECHO} "with options COMPAT_NOMID and COMPAT_12 (and EXEC_AOUT, if ELF)."; \
${FALSE}; \
fi
- ${CHMOD} a+x ${DISTDIR:Q}/${DISTFILES:Q}
+ ${TEST} -x ${DISTDIR}/${DISTFILES:Q} \
+ || ${CHMOD} a+x ${DISTDIR:Q}/${DISTFILES:Q}
do-build:
${_PKG_SILENT}${_PKG_DEBUG} set -e; set -u; \