mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
- Stage support
PR: 190380
This commit is contained in:
parent
59b329d1a9
commit
bf13b92839
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356585
@ -24,20 +24,13 @@ WRKSRC= ${WRKDIR}/repos-web
|
||||
SUB_LIST+= PORTNAME=${PORTNAME}
|
||||
SUB_FILES+= pkg-message
|
||||
|
||||
NO_STAGE= yes
|
||||
pre-install:
|
||||
# Prevent installation of .orig files by deleting them.
|
||||
@${FIND} ${WRKSRC} -name '*.orig' -delete
|
||||
${MV} ${WRKSRC}/open/log/index.php ${WRKSRC}/open/log/index.dist.php
|
||||
|
||||
do-install:
|
||||
@${MKDIR} ${WWWDIR}
|
||||
@(cd ${WRKSRC} && ${PAX} -r -w . ${WWWDIR})
|
||||
if [ ! -f ${WWWDIR}/open/log/index.php ]; then \
|
||||
${CP} -p ${WWWDIR}/open/log/index.dist.php ${WWWDIR}/open/log/index.php; \
|
||||
fi
|
||||
|
||||
post-install:
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${MKDIR} ${STAGEDIR}${WWWDIR}
|
||||
@(cd ${WRKSRC} && ${PAX} -r -w . ${STAGEDIR}${WWWDIR})
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user