blob: 44ef90b620dea0901d0ae24c3b195af01400ce18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# New ports collection makefile for: opencart
# Date created: 04 April 2008
# Whom: Wen heping <wenheping@gmail.com>
#
# $FreeBSD$
#
PORTNAME= opencart
PORTVERSION= 1.2.6
CATEGORIES= www misc
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
DISTNAME= ${PORTNAME}_v${PORTVERSION}
MAINTAINER= wenheping@gmail.com
COMMENT= An open source PHP-based online shopping cart system
#PROJECTHOST= open-cart
USE_ZIP= yes
USE_PHP= mysql gd session pcre
WRKSRC= ${WRKDIR}/${DISTNAME}/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 0755 ${WWWDIR}/image/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/image/' \
>> ${TMPPLIST}
@${CHMOD} -R 0755 ${WWWDIR}/cache/
@${ECHO_CMD} '@exec ${CHMOD} -R 0755 ${WWWDIR}/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' \
>> ${TMPPLIST}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|