mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
- Allow staging as a regular user
- Bump portrevision as files were not packaged with intended owner
This commit is contained in:
parent
709a8d7eba
commit
80dabd98fd
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368100
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= b2evolution
|
||||
PORTVERSION= 4.0.5
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
MASTER_SITES= SF/evocms/${PORTNAME}/b2evo%20${PORTVERSION}-stable
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVO_DATE}
|
||||
@ -39,17 +40,18 @@ pre-everything::
|
||||
@${SH} ${WARNING}
|
||||
|
||||
pre-install:
|
||||
@${ECHO_CMD} -e '@owner ${WWWOWN}\n@group ${WWWGRP}' > ${PLIST}
|
||||
@cd ${WRKSRC} && ${FIND} -s . -type f | \
|
||||
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
|
||||
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' >> ${PLIST} \
|
||||
&& ${FIND} -d * -type d | \
|
||||
${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \
|
||||
&& ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST}
|
||||
@${ECHO_CMD} -e '@owner root\n@group wheel' >> ${PLIST}
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
|
||||
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
|
||||
@${CP} -R ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
|
||||
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${B2EVO_DIR}
|
||||
@${CHMOD} 665 ${STAGEDIR}${PREFIX}/${B2EVO_DIR}/blogs/conf/_config.php
|
||||
|
||||
post-install:
|
||||
|
Loading…
Reference in New Issue
Block a user