aboutsummaryrefslogtreecommitdiffstats
path: root/java/jdk11
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>2002-11-07 03:39:03 +0800
committernate <nate@FreeBSD.org>2002-11-07 03:39:03 +0800
commit934f80ff104914d7214dc81c8ebdfa0b76960d8b (patch)
tree3afe5872a3464f0f8f61fdc7002297c5bc337819 /java/jdk11
parentb3231e49e30b9a52af750380fac22b700e59e7c6 (diff)
downloadfreebsd-ports-graphics-934f80ff104914d7214dc81c8ebdfa0b76960d8b.tar.gz
freebsd-ports-graphics-934f80ff104914d7214dc81c8ebdfa0b76960d8b.tar.zst
freebsd-ports-graphics-934f80ff104914d7214dc81c8ebdfa0b76960d8b.zip
- Ensure that files permissions/owners are set correctly if the port is
built by a non-root user. Submitted by: glewis
Diffstat (limited to 'java/jdk11')
-rw-r--r--java/jdk11/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/jdk11/Makefile b/java/jdk11/Makefile
index ae5ee09a799..9c00f98381a 100644
--- a/java/jdk11/Makefile
+++ b/java/jdk11/Makefile
@@ -24,6 +24,8 @@ PLIST_SUB+= JDK_VERSION=${JDK_VERSION}
WRKSRC= ${WRKDIR}/jdk${JDK_VERSION}
NO_BUILD= yes
+CPIO?= /usr/bin/cpio
+
.include <bsd.port.pre.mk>
.if ${PORTOBJFORMAT} == "aout"
@@ -36,8 +38,8 @@ DISTFILES= jdk${JDK_VERSION}_ELF.V1999-11-9.tar.gz
do-install:
@${RM} -f ${WRKSRC}/include/freebsd/typedefs_md.h.orig
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${WRKSRC} && ${TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
+ cd ${WRKSRC} && ${FIND} . \
+ | ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
${MKDIR} ${PREFIX}/share/java/classes
${MKDIR} ${PREFIX}/share/doc/java