mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
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. PR: 36411 (more ports still to go) Submitted by: alane
This commit is contained in:
parent
76378afefc
commit
636fcbf7ab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69926
1 changed files with 4 additions and 2 deletions
|
@ -37,6 +37,8 @@ STRIPFILES= bin/i386/green_threads/jre \
|
|||
lib/i386/green_threads/libsysresource.so \
|
||||
lib/i386/green_threads/libzip.so
|
||||
|
||||
CPIO?= /usr/bin/cpio
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if ${PORTOBJFORMAT} == "aout"
|
||||
|
@ -55,8 +57,8 @@ do-install:
|
|||
${MKDIR} ${PREFIX}/jre${JRE_VERSION}
|
||||
${MKDIR} ${PREFIX}/share/java/classes
|
||||
${MKDIR} ${PREFIX}/share/doc/java
|
||||
(cd ${WRKSRC} && ${TAR} -c -f - .) \
|
||||
| (cd ${PREFIX}/jre${JRE_VERSION} && ${TAR} --unlink -x -f -)
|
||||
cd ${WRKSRC} && ${FIND} . \
|
||||
| ${CPIO} -pdmu -R ${LIBOWN}:${LIBGRP} ${PREFIX}/jre${JRE_VERSION}
|
||||
cd ${PREFIX}/jre${JRE_VERSION}/bin && \
|
||||
${LN} -sf .java_wrapper java && \
|
||||
cd i386/green_threads && \
|
||||
|
|
Loading…
Add table
Reference in a new issue