Fix an issue where a documentation symlink can be extracted with an incorrect
owner. This only happens if the distfile is extracted as a non-root user, which is why nobody has noticed this before (I imagine not many people extract and build as non-root). Because it's not a big deal and not likely to hit the majority of users, I'm not bumping PORTREVISION. Noticed by: Andrzej Tobola (private mail)
This commit is contained in:
parent
eb247292cd
commit
12b5ff595b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=288113
1 changed files with 6 additions and 0 deletions
|
@ -389,8 +389,14 @@ post-install:
|
|||
(cd ${WRKDIR}/man5/ && ${COPYTREE_SHARE} \* ${MANPREFIX}/man/man5)
|
||||
(cd ${WRKDIR}/man7/ && ${COPYTREE_SHARE} \* ${MANPREFIX}/man/man7)
|
||||
.if defined (WITH_HTMLDOCS)
|
||||
# Manually remove the index.html symlink before installing, and then
|
||||
# recreate it after. This is necessary because the distfile is
|
||||
# extracted with --no-same-owner. If the distfile is extracted as a
|
||||
# non-root user then the symlink will have the incorrect owner.
|
||||
${RM} -f ${WRKDIR}/htmldocs/index.html
|
||||
${MKDIR} ${DOCSDIR}
|
||||
(cd ${WRKDIR}/htmldocs/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
|
||||
${LN} -s ${DOCSDIR}/git.html ${DOCSDIR}/index.html
|
||||
.endif
|
||||
-${RM} -f ${PREFIX}/lib/perl5/${PERL_VERSION}/mach/perllocal.pod
|
||||
${MKDIR} ${PREFIX}/share/emacs/site-lisp/git
|
||||
|
|
Loading…
Reference in a new issue