diff options
author | rillig <rillig> | 2006-06-22 21:38:06 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-06-22 21:38:06 +0000 |
commit | 92adb450258af2f88f7bcb76adaf32e49488a4e4 (patch) | |
tree | 76e80379db7fe26ed0f479adeadb4b1de3509dbd /archivers | |
parent | 57f7f4137b5b73782e643d9ec2b638d7f58fcaa3 (diff) | |
download | pkgsrc-92adb450258af2f88f7bcb76adaf32e49488a4e4.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')
-rw-r--r-- | archivers/rar/Makefile | 5 |
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; \ |