summaryrefslogtreecommitdiffstats
path: root/java/jdk12-beta
diff options
context:
space:
mode:
authorglewis <glewis@FreeBSD.org>2002-04-13 01:04:08 +0000
committerglewis <glewis@FreeBSD.org>2002-04-13 01:04:08 +0000
commit5d44895874425e32f8dd17207ae906f116e1d897 (patch)
tree84883f83b753b7b209da7c92fc26b2cb0b56134e /java/jdk12-beta
parentd98d4c0e463f347d498704f45a17aff0d476b05f (diff)
downloadFreeBSD-ports-5d44895874425e32f8dd17207ae906f116e1d897.zip
FreeBSD-ports-5d44895874425e32f8dd17207ae906f116e1d897.tar.gz
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. This leaves 11 of the ports listed in the PR still to go. PR: 36411 Submitted by: Alan Eldridge <ports@geeksrus.net> Reviewed by: sobomax Approved by: sobomax
Diffstat (limited to 'java/jdk12-beta')
-rw-r--r--java/jdk12-beta/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/jdk12-beta/Makefile b/java/jdk12-beta/Makefile
index 88cc8e6..9e4341d 100644
--- a/java/jdk12-beta/Makefile
+++ b/java/jdk12-beta/Makefile
@@ -111,11 +111,11 @@ pre-install:
do-install:
${MKDIR} ${PREFIX}/jdk${JDK_VERSION}
- (cd ${JDKIMAGEDIR} && ${TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${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} && ${TAR} -c -f - .) \
- | (cd ${PREFIX}/jdk${JDK_VERSION} && ${TAR} --unlink -x -f -)
+ cd ${JDKIMAGEDIR_G} && /usr/bin/find . \
+ | /usr/bin/cpio -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jdk${JDK_VERSION}
.endif
post-install:
OpenPOWER on IntegriCloud