mirror of
https://git.freebsd.org/ports.git
synced 2025-06-02 19:36:28 -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 (9 more ports to go) Submitted by: alane
This commit is contained in:
parent
d9611f9375
commit
d5ed70a522
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=69613
1 changed files with 4 additions and 1 deletions
|
@ -20,9 +20,12 @@ NO_BUILD= yes
|
|||
|
||||
DOCDIR= ${PREFIX}/share/doc/${PORTNAME}
|
||||
|
||||
CPIO?= /usr/bin/cpio
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${DOCDIR}
|
||||
(cd ${WRKSRC}/docs && tar cf - . | tar --unlink -xpf - -C ${DOCDIR})
|
||||
cd ${WRKSRC}/docs && ${FIND} . \
|
||||
| ${CPIO} -pdmu -R ${DOCOWN}:${DOCGRP} ${DOCDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/lib/${PORTNAME}-${PORTVERSION}.jar \
|
||||
${PREFIX}/share/java/classes/${PORTNAME}.jar
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue