2013-01-17 02:02:11 +00:00
|
|
|
# Created by: Wen heping <wenheping@gmail.com>
|
2008-04-04 20:39:49 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= opencart
|
2014-06-02 11:18:17 +00:00
|
|
|
PORTVERSION= 1.5.6.4
|
2008-04-04 20:39:49 +00:00
|
|
|
CATEGORIES= www misc
|
|
|
|
|
2010-12-07 03:08:04 +00:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2014-08-06 09:11:57 +00:00
|
|
|
COMMENT= Open source PHP-based online shopping cart system
|
2008-04-04 20:39:49 +00:00
|
|
|
|
2014-06-02 11:18:17 +00:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2013-01-17 02:02:11 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= opencart
|
2014-06-02 11:18:17 +00:00
|
|
|
GH_COMMIT= 31323f8
|
|
|
|
|
2008-07-04 06:33:05 +00:00
|
|
|
USE_PHP= mysql gd session pcre
|
2014-06-02 11:18:17 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTNAME}-${GH_COMMIT}/upload
|
2008-04-04 20:39:49 +00:00
|
|
|
|
|
|
|
NO_BUILD= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
do-install:
|
2014-06-02 11:18:17 +00:00
|
|
|
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
|
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}' \
|
2008-04-04 20:39:49 +00:00
|
|
|
>> ${TMPPLIST}
|
2014-06-02 11:18:17 +00:00
|
|
|
@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/image/
|
|
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/image/' \
|
2008-04-04 20:39:49 +00:00
|
|
|
>> ${TMPPLIST}
|
2014-06-02 11:18:17 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/system/cache/
|
|
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/system/cache/' \
|
2008-04-04 20:39:49 +00:00
|
|
|
>> ${TMPPLIST}
|
2014-06-02 11:18:17 +00:00
|
|
|
@${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/download/
|
|
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${STAGEDIR}${WWWDIR}/download/' \
|
2008-04-04 20:39:49 +00:00
|
|
|
>> ${TMPPLIST}
|
2014-06-02 11:18:17 +00:00
|
|
|
@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' \
|
2008-04-04 20:39:49 +00:00
|
|
|
>> ${TMPPLIST}
|
2014-06-02 11:18:17 +00:00
|
|
|
@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' \
|
2008-04-04 20:39:49 +00:00
|
|
|
>> ${TMPPLIST}
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|