From 47b0e09d4c13e4c97b86e06d348528030595c043 Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Fri, 12 Apr 2002 04:34:41 +0000 Subject: 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 Reviewed by: sobomax Approved by: sobomax --- java/jdk13/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'java/jdk13') 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 -- cgit v1.2.3