diff options
author | jlam <jlam@pkgsrc.org> | 2002-11-07 00:22:54 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2002-11-07 00:22:54 +0000 |
commit | e3e23d65046115e5a4981a163a2f8b106ae71204 (patch) | |
tree | 044a75e0d5632ec9a64cb3a5eac69d22ba74fa31 /lang | |
parent | 5fb7fe826725d2b6e3d1c16f69a00c64fea7195a (diff) | |
download | pkgsrc-e3e23d65046115e5a4981a163a2f8b106ae71204.tar.gz |
Don't try to chmod the distfile if the permissions are already correct.
Addresses pkg/18941 by Robert Elz.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/sun-jre13/Makefile.common | 6 | ||||
-rw-r--r-- | lang/sun-jre14/Makefile.common | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/lang/sun-jre13/Makefile.common b/lang/sun-jre13/Makefile.common index 994f19c6c5e..ec901b62bfc 100644 --- a/lang/sun-jre13/Makefile.common +++ b/lang/sun-jre13/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.9 2002/10/15 14:06:56 jschauma Exp $ +# $NetBSD: Makefile.common,v 1.10 2002/11/07 00:22:54 jlam Exp $ # MASTER_SITES is very special, and must end in "=": CATEGORIES= lang @@ -52,7 +52,9 @@ ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-i[3-6]86 Darwin-*-* .if ${OPSYS} != "Darwin" post-fetch: - @-${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} + @if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ + ${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \ + fi .endif post-build: diff --git a/lang/sun-jre14/Makefile.common b/lang/sun-jre14/Makefile.common index 9cdfbe5948c..2a625ee6349 100644 --- a/lang/sun-jre14/Makefile.common +++ b/lang/sun-jre14/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.5 2002/10/15 14:06:56 jschauma Exp $ +# $NetBSD: Makefile.common,v 1.6 2002/11/07 00:22:54 jlam Exp $ CATEGORIES= lang EXTRACT_SUFX= .bin @@ -35,7 +35,9 @@ ONLY_FOR_PLATFORM= NetBSD-1.5Z[A-Z]-i386 NetBSD-1.[6-9]*-i386 ONLY_FOR_PLATFORM+= Linux-*-i[3-6]86 post-fetch: - @${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} + @if [ ! -x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ]; then \ + ${CHMOD} +x ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}; \ + fi do-install: ${INSTALL_PROGRAM_DIR} ${PREFIX} |