2005-05-07 15:23:12 +02:00
|
|
|
# New ports collection makefile for: deskutils/sugarcrm
|
|
|
|
# Date created: March 25 2005
|
|
|
|
# Whom: Nick Hilliard <nick@foobar.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= sugarcrm
|
2007-04-08 08:56:13 +02:00
|
|
|
PORTVERSION= 4.5.1b
|
2007-05-19 22:36:56 +02:00
|
|
|
PORTREVISION= 1
|
2005-05-07 15:23:12 +02:00
|
|
|
CATEGORIES= deskutils www
|
2007-04-08 08:56:13 +02:00
|
|
|
MASTER_SITES= ${SCRM_DISPATCHER}/:src \
|
|
|
|
${DOC_DISPATCHER}/:userdoc \
|
|
|
|
${DOC_DISPATCHER}/:admindoc \
|
|
|
|
${DOC_DISPATCHER}/:releasenotesdoc
|
2006-05-01 06:29:23 +02:00
|
|
|
DISTFILES= ${USERDOCFILE}:userdoc \
|
2007-04-08 08:56:13 +02:00
|
|
|
${RELEASENOTESFILE}:releasenotesdoc \
|
2007-02-14 21:31:08 +01:00
|
|
|
${ADMINDOCFILE}:admindoc \
|
2006-05-01 06:29:23 +02:00
|
|
|
${SRCNAME}${EXTRACT_SUFX}:src
|
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
|
|
|
EXTRACT_ONLY= ${SRCNAME}${EXTRACT_SUFX}
|
2005-05-07 15:23:12 +02:00
|
|
|
|
|
|
|
MAINTAINER= nick@foobar.org
|
|
|
|
COMMENT= A web based customer relationship management suite
|
|
|
|
|
2007-02-14 21:31:08 +01:00
|
|
|
IGNORE_WITH_MYSQL= 323 40
|
|
|
|
USE_PHP= gd mysql session pcre xml zlib mbstring curl imap
|
2005-05-07 15:23:12 +02:00
|
|
|
USE_ZIP= yes
|
|
|
|
NO_BUILD= yes
|
2007-02-14 21:31:08 +01:00
|
|
|
WRKSRC= ${WRKDIR}/SugarOS-Full-${PORTVERSION}
|
2005-05-07 15:23:12 +02:00
|
|
|
SUGARCRMDIR?= www/${PORTNAME}
|
|
|
|
|
2007-02-14 21:31:08 +01:00
|
|
|
OPTIONS= IMAP "Install with IMAP module (For email campaign support)" on
|
2005-05-07 15:23:12 +02:00
|
|
|
|
2007-02-14 21:31:08 +01:00
|
|
|
.if !defined(WITHOUT_IMAP)
|
|
|
|
USE_PHP+= imap
|
|
|
|
.endif
|
|
|
|
|
2007-04-08 08:56:13 +02:00
|
|
|
SCRM_DISPATCHER= http://dl.sugarforge.org/sugarcrm/SugarOS4.5.1Latest/SugarOS4.5.1
|
|
|
|
DOC_DISPATCHER= ${SCRM_DISPATCHER}
|
2007-02-14 21:31:08 +01:00
|
|
|
|
|
|
|
SRCNAME= SugarOS-${PORTVERSION}
|
2007-04-08 08:56:13 +02:00
|
|
|
USERDOCFILE= Sugar_OpenSource_UserGuide_${PORTVERSION}.pdf
|
|
|
|
RELEASENOTESFILE= Sugar_OpenSource_ReleaseNotes_${PORTVERSION}.pdf
|
|
|
|
ADMINDOCFILE= Sugar_OpenSource_AdministrationGuide_${PORTVERSION}.pdf
|
2007-02-14 21:31:08 +01:00
|
|
|
|
|
|
|
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 \
|
2006-05-01 06:29:23 +02:00
|
|
|
soap.php sugar_version.php vCard.php vcal_server.php \
|
|
|
|
LICENSE.txt .htaccess
|
2005-05-07 15:23:12 +02:00
|
|
|
|
2006-05-01 06:29:23 +02:00
|
|
|
INSTDIRS= ModuleInstall XTemplate cache custom data examples include \
|
2007-02-14 21:31:08 +01:00
|
|
|
install jscalendar log4php metadata modules soap themes
|
2005-05-07 15:23:12 +02:00
|
|
|
|
2007-02-14 21:31:08 +01:00
|
|
|
INSTDOCS= INSTALLATION.txt LICENSE.txt PATCH.txt README.txt UPGRADE.TXT
|
2005-05-07 15:23:12 +02:00
|
|
|
|
|
|
|
# files and directories to be chown -R'ed to www user
|
2006-05-01 06:29:23 +02:00
|
|
|
WWWFILES= config.php custom data modules .htaccess cache
|
2005-05-07 15:23:12 +02:00
|
|
|
|
|
|
|
PKGMESSAGE= ${WRKDIR}/pkg-message
|
|
|
|
|
2007-02-14 21:31:08 +01:00
|
|
|
SUB_FILES+= pkg-message pkg-install
|
2005-05-07 15:23:12 +02:00
|
|
|
SUB_LIST+= SUGARCRMDIR="${SUGARCRMDIR}"
|
|
|
|
PLIST_SUB+= SUGARCRMDIR="${SUGARCRMDIR}" \
|
|
|
|
CACHEDIRS="${CACHEDIRS}" \
|
|
|
|
WWWGRP="${WWWGRP}" \
|
|
|
|
WWWOWN="${WWWOWN}" \
|
2006-05-01 06:29:23 +02:00
|
|
|
WWWFILES="${WWWFILES}" \
|
|
|
|
USERDOCFILE="${USERDOCFILE}" \
|
2007-04-08 08:56:13 +02:00
|
|
|
RELEASENOTESFILE="${RELEASENOTESFILE}"
|
2005-05-07 15:23:12 +02:00
|
|
|
|
2006-05-01 06:29:23 +02:00
|
|
|
do-install:
|
2005-05-07 15:23:12 +02:00
|
|
|
@${MKDIR} ${PREFIX}/${SUGARCRMDIR}
|
|
|
|
|
|
|
|
.for i in ${INSTFILES} ${INSTDIRS}
|
2006-05-01 06:29:23 +02:00
|
|
|
cd ${WRKSRC} && \
|
2005-05-07 15:23:12 +02:00
|
|
|
${FIND} ${i} -type d -exec ${MKDIR} ${PREFIX}/${SUGARCRMDIR}/{} \; ; \
|
|
|
|
${FIND} ${i} \! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/${SUGARCRMDIR}/{} \;
|
2007-02-14 21:31:08 +01:00
|
|
|
@${TOUCH} ${TOUCH_FLAGS} ${PREFIX}/${SUGARCRMDIR}/config.php
|
2005-05-07 15:23:12 +02:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
.for i in ${WWWFILES}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SUGARCRMDIR}/${i}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-05-01 06:29:23 +02:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${USERDOCFILE} \
|
|
|
|
${DOCSDIR}/${USERDOCFILE}
|
2007-04-08 08:56:13 +02:00
|
|
|
@${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/${RELEASENOTESFILE} \
|
|
|
|
${DOCSDIR}/${RELEASENOTESFILE}
|
2005-05-07 15:23:12 +02:00
|
|
|
.for i in ${INSTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|