1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

- Update to 1.5.6.4

- Add STAGE support

PR:		190448
This commit is contained in:
Martin Wilke 2014-06-02 11:18:17 +00:00
parent d0ab41c633
commit b5194f26a4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=356211
3 changed files with 809 additions and 731 deletions

View File

@ -2,49 +2,53 @@
# $FreeBSD$
PORTNAME= opencart
PORTVERSION= 1.5.4.1
PORTVERSION= 1.5.6.4
CATEGORIES= www misc
MASTER_SITES= https://github.com/downloads/opencart/opencart/
DISTNAME= ${PORTNAME}_v${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= An open source PHP-based online shopping cart system
#PROJECTHOST= open-cart
LICENSE= GPLv3
USE_GITHUB= yes
GH_ACCOUNT= opencart
USES= zip
GH_COMMIT= 31323f8
USE_PHP= mysql gd session pcre
WRKSRC= ${WRKDIR}/${PORTNAME}_v${PORTVERSION}/upload
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${GH_COMMIT}/upload
NO_BUILD= yes
SUB_FILES= pkg-message
NO_STAGE= yes
.include <bsd.port.pre.mk>
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
>> ${TMPPLIST}
@${CHMOD} -R 0755 ${WWWDIR}/image/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/image/' \
>> ${TMPPLIST}
@${CHMOD} -R 0755 ${WWWDIR}/system/cache/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/system/cache/' \
>> ${TMPPLIST}
@${CHMOD} -R 0755 ${WWWDIR}/download/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/download/' \
>> ${TMPPLIST}
@${CHMOD} 0755 ${WWWDIR}/config.php
@${ECHO_CMD} '@exec ${CHMOD} 0755 ${WWWDIR}/config.php' \
>> ${TMPPLIST}
@${CHMOD} 0755 ${WWWDIR}/admin/config.php
@${ECHO_CMD} '@exec ${CHMOD} 0755 ${WWWDIR}/admin/config.php' \
@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/image/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/image/' \
>> ${TMPPLIST}
post-install:
@${CAT} ${PKGMESSAGE}
@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/system/cache/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/system/cache/' \
>> ${TMPPLIST}
@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/download/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/download/' \
>> ${TMPPLIST}
@if [ ! -f ${STAGEDIR}${WWWDIR}/config.php ]; then \
${CP} -p ${STAGEDIR}${WWWDIR}/config-dist.php \
${STAGEDIR}${WWWDIR}/config.php; fi
@${CHMOD} 0755 ${STAGEDIR}${WWWDIR}/config.php
@${ECHO_CMD} '@exec ${CHMOD} 0755 ${STAGEDIR}${WWWDIR}/config.php' \
>> ${TMPPLIST}
@if [ ! -f ${STAGEDIR}${WWWDIR}/admin/config.php ]; then \
${CP} -p ${STAGEDIR}${WWWDIR}/admin/config-dist.php \
${STAGEDIR}${WWWDIR}/admin/config.php; fi
@${CHMOD} 0755 ${STAGEDIR}${WWWDIR}/admin/config.php
@${ECHO_CMD} '@exec ${CHMOD} 0755 ${STAGEDIR}${WWWDIR}/admin/config.php' \
>> ${TMPPLIST}
.include <bsd.port.post.mk>

View File

@ -1,2 +1,2 @@
SHA256 (opencart_v1.5.4.1.zip) = 903130c034a6f8d04d04f71e308b650280327ba5a180cf6b71ddb84f4e21323c
SIZE (opencart_v1.5.4.1.zip) = 8184561
SHA256 (opencart-1.5.6.4.tar.gz) = c487c05b389cb9661e862125197c3b4cf3e38a2e3a6b7b50914770f23e49346b
SIZE (opencart-1.5.6.4.tar.gz) = 6904843

File diff suppressed because it is too large Load Diff