From 251616adc13d49b6cac3635c6f0edddb778b93da Mon Sep 17 00:00:00 2001 From: Greg Lewis Date: Sat, 13 Apr 2002 01:04:08 +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. This leaves 11 of the ports listed in the PR still to go. PR: 36411 Submitted by: Alan Eldridge Reviewed by: sobomax Approved by: sobomax --- java/jdk12/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'java/jdk12') diff --git a/java/jdk12/Makefile b/java/jdk12/Makefile index 88cc8e6b120a..9e4341d67650 100644 --- a/java/jdk12/Makefile +++ b/java/jdk12/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: -- cgit v1.2.3