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
This commit is contained in:
Greg Lewis 2002-04-13 01:04:08 +00:00
parent e82dea8400
commit 251616adc1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57646
2 changed files with 8 additions and 8 deletions

View File

@ -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:

View File

@ -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: