blob: 3ccef0b656a108776b24273051a04b1b53ad4ea3 (
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
# New ports collection makefile for: deskutils/sugarcrm
# Date created: March 25 2005
# Whom: Nick Hilliard <nick@foobar.org>
#
# $FreeBSD$
PORTNAME= sugarcrm
PORTVERSION= 3.5.1
CATEGORIES= deskutils www
MASTER_SITES= ${SCRM_DISPATCHER}/sugarcrm/SugarOSArchive/SugarSuiteDownloadArchive/:src \
${SCRM_DISPATCHER}/sugardocs/Manuals/v3.5Manuals/:userdoc \
${SCRM_DISPATCHER}/sugardocs/Manuals/v3.5InstallandUpgradeManuals/:installdoc
DISTFILES= ${USERDOCFILE}:userdoc \
${INSTALLDOCFILE}:installdoc \
${SRCNAME}${EXTRACT_SUFX}:src
DIST_SUBDIR= ${PORTNAME}
EXTRACT_ONLY= ${SRCNAME}${EXTRACT_SUFX}
MAINTAINER= nick@foobar.org
COMMENT= A web based customer relationship management suite
USE_PHP= gd mysql session pcre xml
USE_PHP= gd mysql session pcre xml
USE_ZIP= yes
NO_BUILD= yes
NO_WRKSUBDIR= yes
SUGARCRMDIR?= www/${PORTNAME}
SCRM_DISPATCHER= http://dl.sugarforge.org
SRCNAME= SugarSuite-${PORTVERSION}
USERDOCFILE= Sugar_Open_Source_User_Guide_v35.pdf
INSTALLDOCFILE= Sugar_Open_Source_Installation_Guide_v35.pdf
INSTFILES= acceptDecline.php campaign_tracker.php config.php \
dictionary.php emailmandelivery.php export.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 robots.txt \
soap.php sugar_version.php vCard.php vcal_server.php \
LICENSE.txt .htaccess
INSTDIRS= ModuleInstall XTemplate cache custom data examples include \
install jscalendar log4php metadata modules soap themes upgrade
INSTDOCS= INSTALLATION.txt LICENSE.txt PATCH.txt README.txt UPGRADE.TXT UPGRADE-FreeBSD.txt
# files and directories to be chown -R'ed to www user
WWWFILES= config.php custom data modules .htaccess cache
PKGMESSAGE= ${WRKDIR}/pkg-message
SUB_FILES+= pkg-message
SUB_LIST+= SUGARCRMDIR="${SUGARCRMDIR}"
PLIST_SUB+= SUGARCRMDIR="${SUGARCRMDIR}" \
CACHEDIRS="${CACHEDIRS}" \
WWWGRP="${WWWGRP}" \
WWWOWN="${WWWOWN}" \
WWWFILES="${WWWFILES}" \
USERDOCFILE="${USERDOCFILE}" \
INSTALLDOCFILE="${INSTALLDOCFILE}"
post-patch:
${CP} ${FILESDIR}/UPGRADE-FreeBSD.txt ${WRKSRC}
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
-e 's|%%SUGARCRMDIR%%|${SUGARCRMDIR}|' \
${WRKSRC}/UPGRADE-FreeBSD.txt
do-install:
@${MKDIR} ${PREFIX}/${SUGARCRMDIR}
.for i in ${INSTFILES} ${INSTDIRS}
cd ${WRKSRC} && \
${FIND} ${i} -type d -exec ${MKDIR} ${PREFIX}/${SUGARCRMDIR}/{} \; ; \
${FIND} ${i} \! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/${SUGARCRMDIR}/{} \;
.endfor
@${MKDIR} ${PREFIX}/${SUGARCRMDIR}/cache/dynamic_fields
.for i in ${WWWFILES}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SUGARCRMDIR}/${i}
.endfor
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${USERDOCFILE} \
${DOCSDIR}/${USERDOCFILE}
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${INSTALLDOCFILE} \
${DOCSDIR}/${INSTALLDOCFILE}
.for i in ${INSTDOCS}
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|