Allow staging as a regular
Bump portrevision as files were not packaged with intended owner
This commit is contained in:
parent
f3e5206600
commit
e995602ca6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368758
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= prestashop
|
||||
PORTVERSION= 1.6.0.8
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= finance www
|
||||
MASTER_SITES= http://www.prestashop.com/download/
|
||||
DISTNAME= ${PORTNAME}_${PORTVERSION}
|
||||
@ -18,18 +19,14 @@ USE_PHP= mysql gd
|
||||
WRKSRC= ${WRKDIR}/${PORTNAME}
|
||||
SUB_FILES= pkg-message
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
pre-install:
|
||||
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${PRESTADIR}?g" >${PLIST}
|
||||
@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
|
||||
@${FIND} -s -d ${WRKSRC} -type f | ${SED} "s?${WRKSRC}?${PRESTADIR}?g" >> ${PLIST}
|
||||
@${FIND} -s -d ${WRKSRC} -type d | ${SED} "s?${WRKSRC}?@dirrm ${PRESTADIR}?g" >> ${PLIST}
|
||||
@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}
|
||||
|
||||
do-install:
|
||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
|
||||
@${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}
|
||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
|
||||
>> ${TMPPLIST}
|
||||
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${STAGEDIR}${WWWDIR}' >>${TMPPLIST}
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user