summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorGreg Lewis <glewis@FreeBSD.org>2002-04-12 04:34:41 +0000
committerGreg Lewis <glewis@FreeBSD.org>2002-04-12 04:34:41 +0000
commit47b0e09d4c13e4c97b86e06d348528030595c043 (patch)
tree78e72cd6a21e0f7183687f55e1a200dad55c76d3 /java
parentmake it runnable (diff)
Fix user and group ownership of the installed files when they have been
built by someone other than root. Instead of moving the files with tar, move them with cpio and set up ownership. Note that I have not closed the PR as there are 12 other ports named in the PR with this problem. PR: 36411 Submitted by: Alan Eldridge <ports@geeksrus.net> Reviewed by: sobomax Approved by: sobomax
Notes
Notes: svn path=/head/; revision=57602
Diffstat (limited to 'java')
-rw-r--r--java/jdk13/Makefile8
-rw-r--r--java/jdk14/Makefile8
-rw-r--r--java/jdk15/Makefile8
-rw-r--r--java/jdk16/Makefile8
4 files changed, 16 insertions, 16 deletions
diff --git a/java/jdk13/Makefile b/java/jdk13/Makefile
index 8af8b9a9aebf..986aa29dc1f6 100644
--- a/java/jdk13/Makefile
+++ b/java/jdk13/Makefile
@@ -126,11 +126,11 @@ pre-install:
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${JDKIMAGEDIR} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.if !defined(NODEBUG)
- (cd ${JDKIMAGEDIR_G} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR_G} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.endif
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}/jre/lib/ext
diff --git a/java/jdk14/Makefile b/java/jdk14/Makefile
index 8af8b9a9aebf..986aa29dc1f6 100644
--- a/java/jdk14/Makefile
+++ b/java/jdk14/Makefile
@@ -126,11 +126,11 @@ pre-install:
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${JDKIMAGEDIR} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.if !defined(NODEBUG)
- (cd ${JDKIMAGEDIR_G} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR_G} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.endif
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}/jre/lib/ext
diff --git a/java/jdk15/Makefile b/java/jdk15/Makefile
index 8af8b9a9aebf..986aa29dc1f6 100644
--- a/java/jdk15/Makefile
+++ b/java/jdk15/Makefile
@@ -126,11 +126,11 @@ pre-install:
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${JDKIMAGEDIR} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.if !defined(NODEBUG)
- (cd ${JDKIMAGEDIR_G} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR_G} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.endif
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}/jre/lib/ext
diff --git a/java/jdk16/Makefile b/java/jdk16/Makefile
index 8af8b9a9aebf..986aa29dc1f6 100644
--- a/java/jdk16/Makefile
+++ b/java/jdk16/Makefile
@@ -126,11 +126,11 @@ pre-install:
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${JDKIMAGEDIR} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.if !defined(NODEBUG)
- (cd ${JDKIMAGEDIR_G} && ${BSD_TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${BSD_TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR_G} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.endif
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}/jre/lib/ext