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:
parent
e82dea8400
commit
251616adc1
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57646
@ -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:
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user