blob: 8f819f4d00321879af42213d6078321d02243a1c (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# New ports collection makefile for: deskutils/sugarcrm
# Date created: March 25 2005
# Whom: Nick Hilliard <nick@foobar.org>
#
# $FreeBSD$
PORTNAME= sugarcrm
PORTVERSION= 5.0.0b
CATEGORIES= deskutils www
MASTER_SITES= http://dl.sugarforge.org/sugarcrm/SugarCE5.0Latest/SugarCE5.0.0/
DISTNAME= SugarCE-${PORTVERSION}
MAINTAINER= nick@foobar.org
COMMENT= A web based customer relationship management suite
IGNORE_WITH_MYSQL= 323 40
USE_PHP= gd mysql session pcre xml zlib mbstring curl imap
USE_ZIP= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/SugarCE-Full-${PORTVERSION}
INSTFILES= HandleAjaxCall.php SugarSecurity.php TreeData.php \
WebToLeadCapture.php acceptDecline.php campaign_tracker.php \
campaign_trackerv2.php cron.php dictionary.php download.php \
emailmandelivery.php export.php files.md5 image.php \
index.php install.php json.php json_server.php \
leadCapture.php log4php.properties log_file_restricted.html \
maintenance.php metagen.php pdf.php phprint.php removeme.php \
soap.php sugar_version.php vCard.php vcal_server.php \
LICENSE.txt .htaccess
INSTDIRS= ModuleInstall XTemplate cache custom data examples include \
install jscalendar jssource log4php metadata modules soap \
themes
INSTDOCS= INSTALLATION.txt LICENSE.txt
# files and directories to be chown -R'ed to www user
WWWFILES= config.php custom data modules .htaccess cache include/javascript
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES+= pkg-message pkg-install
PLIST_SUB+= CACHEDIRS="${CACHEDIRS}" \
WWWGRP="${WWWGRP}" \
WWWOWN="${WWWOWN}" \
WWWFILES="${WWWFILES}"
do-install:
@${MKDIR} ${WWWDIR}
.for i in ${INSTFILES} ${INSTDIRS}
@cd ${WRKSRC} && \
${FIND} ${i} -type d -exec ${MKDIR} ${WWWDIR}/{} \; ; \
${FIND} ${i} \! -type d -exec ${INSTALL_DATA} {} ${WWWDIR}/{} \;
@${TOUCH} ${TOUCH_FLAGS} ${WWWDIR}/config.php
.endfor
.for i in ${WWWFILES}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/${i}
@${CHMOD} -R u+w ${WWWDIR}/${i}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${INSTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|