pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/archivers/rar Only try to chmod the distfile if it is ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/01773520214f
branches:  trunk
changeset: 515048:01773520214f
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Jun 22 21:38:06 2006 +0000

description:
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:

 archivers/rar/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r c17e3c58c56b -r 01773520214f archivers/rar/Makefile
--- a/archivers/rar/Makefile    Thu Jun 22 21:23:28 2006 +0000
+++ b/archivers/rar/Makefile    Thu Jun 22 21:38:06 2006 +0000
@@ -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 @@
                ${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;                     \



Home | Main Index | Thread Index | Old Index