diff options
author | rillig <rillig@pkgsrc.org> | 2006-06-22 21:38:06 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-06-22 21:38:06 +0000 |
commit | da546b09bee6e4fb005a8a05f0943ddc336f9309 (patch) | |
tree | 76e80379db7fe26ed0f479adeadb4b1de3509dbd /archivers/rar/Makefile | |
parent | a858639afff358d7bee7134b46594e5517041aca (diff) | |
download | pkgsrc-da546b09bee6e4fb005a8a05f0943ddc336f9309.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/Makefile')
-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; \ |