diff options
author | Pav Lucistnik <pav@FreeBSD.org> | 2008-04-04 20:39:49 +0000 |
---|---|---|
committer | Pav Lucistnik <pav@FreeBSD.org> | 2008-04-04 20:39:49 +0000 |
commit | 2de8efadcdb4e0db54773e4f09201bb425199dc3 (patch) | |
tree | 59c9c5303d8f5485b8056ac08e561d8a9e5e8127 /www/opencart/Makefile | |
parent | cc6e57dcc162bed382a4f83061dd92ccf592b1d6 (diff) |
Notes
Diffstat (limited to 'www/opencart/Makefile')
-rw-r--r-- | www/opencart/Makefile | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/www/opencart/Makefile b/www/opencart/Makefile new file mode 100644 index 000000000000..cf93087725df --- /dev/null +++ b/www/opencart/Makefile @@ -0,0 +1,50 @@ +# New ports collection makefile for: opencart +# Date created: 04 April 2008 +# Whom: Wen heping <wenheping@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= opencart +PORTVERSION= 0.7.7 +CATEGORIES= www misc +MASTER_SITES= http://open-cart.googlecode.com/files/ +DISTNAME= ${PORTNAME}_v${PORTVERSION} + +MAINTAINER= wenheping@gmail.com +COMMENT= An open source PHP-based online shopping cart system + +USE_ZIP= yes +USE_PHP= mysql gd +WRKSRC= ${WRKDIR}/upload + +NO_BUILD= yes +SUB_FILES= pkg-message + +.include <bsd.port.pre.mk> + +do-install: + @cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR} + @${CHOWN} ${WWWOWN}:${WWWGRP} ${WWWDIR} + @${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \ + >> ${TMPPLIST} + @${CHMOD} -R 0777 ${WWWDIR}/image/ + @${ECHO_CMD} '@exec ${CHMOD} -R 0777 ${WWWDIR}/image/' \ + >> ${TMPPLIST} + @${CHMOD} -R 0777 ${WWWDIR}/cache/ + @${ECHO_CMD} '@exec ${CHMOD} -R 0777 ${WWWDIR}/cache/' \ + >> ${TMPPLIST} + @${CHMOD} -R 0777 ${WWWDIR}/download/ + @${ECHO_CMD} '@exec ${CHMOD} -R 0777 ${WWWDIR}/download/' \ + >> ${TMPPLIST} + @${CHMOD} 0777 ${WWWDIR}/config.php + @${ECHO_CMD} '@exec ${CHMOD} 0777 ${WWWDIR}/config.php' \ + >> ${TMPPLIST} + @${CHMOD} 0777 ${WWWDIR}/admin/config.php + @${ECHO_CMD} '@exec ${CHMOD} 0777 ${WWWDIR}/admin/config.php' \ + >> ${TMPPLIST} + +post-install: + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |