- Update to 3.5.1

PR:		93663
Submitted by:	maintainer
This commit is contained in:
Marcus Alves Grando 2006-05-01 04:29:23 +00:00
parent 1f61d6d081
commit 9f9c7a5edc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=161006
5 changed files with 4356 additions and 1852 deletions

View File

@ -5,37 +5,47 @@
# $FreeBSD$
PORTNAME= sugarcrm
PORTVERSION= 2.5.1b
PORTREVISION= 1
PORTVERSION= 3.5.1
CATEGORIES= deskutils www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTFILES= SugarSuite-Full-2_5_1b.zip \
Sugar_Open_Source_User_Guide_v25_MSWord_2005-01-31.zip
MASTER_SITES= ${SCRM_DISPATCHER}/392/:src \
${SCRM_DISPATCHER}/387/:userdoc \
${SCRM_DISPATCHER}/389/: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
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}
INSTFILES= config.php export.php index.php install.php json.php \
leadCapture.php pdf.php phprint.php soap.php \
sugar_version.php vCard.php robots.txt log4php.properties
SCRM_DISPATCHER= http://sugarforge.org/frs/download.php
SRCNAME= SugarSuite-${PORTVERSION}
USERDOCFILE= Sugar_Open_Source_User_Guide_v35.pdf
INSTALLDOCFILE= Sugar_Open_Source_Installation_Guide_v35.pdf
INSTDIRS= XTemplate custom data examples include install jscalendar \
log4php modules soap themes
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
INSTDOCS= INSTALLATION.txt LICENSE.txt README.txt
INSTDIRS= ModuleInstall XTemplate cache custom data examples include \
install jscalendar log4php metadata modules soap themes upgrade
# empty directories to be created and chowned to www user
CACHEDIRS= custom_fields dyn_lay feeds images import layout pdf upload xml
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
WWWFILES= config.php custom data modules .htaccess cache
PKGMESSAGE= ${WRKDIR}/pkg-message
@ -45,26 +55,26 @@ PLIST_SUB+= SUGARCRMDIR="${SUGARCRMDIR}" \
CACHEDIRS="${CACHEDIRS}" \
WWWGRP="${WWWGRP}" \
WWWOWN="${WWWOWN}" \
WWWFILES="${WWWFILES}"
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:
@${FIND} ${WRKSRC} -name .cvsignore -delete
@${MKDIR} ${PREFIX}/${SUGARCRMDIR}
.for i in ${INSTFILES} ${INSTDIRS}
@cd ${WRKSRC} && \
cd ${WRKSRC} && \
${FIND} ${i} -type d -exec ${MKDIR} ${PREFIX}/${SUGARCRMDIR}/{} \; ; \
${FIND} ${i} \! -type d -exec ${INSTALL_DATA} {} ${PREFIX}/${SUGARCRMDIR}/{} \;
.endfor
.for i in ${CACHEDIRS}
${MKDIR} ${PREFIX}/${SUGARCRMDIR}/cache/${i}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${SUGARCRMDIR}/cache/${i}
.endfor
@${INSTALL_DATA} ${WRKSRC}/cache/custom_fields/custom_fields_def.php \
${PREFIX}/${SUGARCRMDIR}/cache/custom_fields
@${MKDIR} ${PREFIX}/${SUGARCRMDIR}/cache/dynamic_fields
.for i in ${WWWFILES}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${PREFIX}/${SUGARCRMDIR}/${i}
@ -72,8 +82,10 @@ do-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/Sugar\ Open\ Source\ User\ Guide\ v25.doc \
${DOCSDIR}/Sugar_Open_Source_User_Guide_v25.doc
@${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

View File

@ -1,6 +1,9 @@
MD5 (SugarSuite-Full-2_5_1b.zip) = 3f3ff7441e0e4e7b7e01ee6635101bdb
SHA256 (SugarSuite-Full-2_5_1b.zip) = 1a94b305fc729c7174e9c71e05afc876f33c07534ffde06803107c1060b956bd
SIZE (SugarSuite-Full-2_5_1b.zip) = 2894351
MD5 (Sugar_Open_Source_User_Guide_v25_MSWord_2005-01-31.zip) = 9402a5439874bb72abbff3a3fe4c4c2f
SHA256 (Sugar_Open_Source_User_Guide_v25_MSWord_2005-01-31.zip) = 6665da4d7ab7dc868a02bcaba7f782922850e36d310ea0d283a351fd3b2900b6
SIZE (Sugar_Open_Source_User_Guide_v25_MSWord_2005-01-31.zip) = 2611664
MD5 (sugarcrm/Sugar_Open_Source_User_Guide_v35.pdf) = 986824ab7cae59d1c4016c86ed7e42fc
SHA256 (sugarcrm/Sugar_Open_Source_User_Guide_v35.pdf) = 622818f892d82acb412f67c6b8e68a373c31665fe85c87ae0dc1b1cc136e71b5
SIZE (sugarcrm/Sugar_Open_Source_User_Guide_v35.pdf) = 2781656
MD5 (sugarcrm/Sugar_Open_Source_Installation_Guide_v35.pdf) = 70bddc09a4bc375f97cc5859840faf7d
SHA256 (sugarcrm/Sugar_Open_Source_Installation_Guide_v35.pdf) = 047b6a6b4dbdcb5da1c355f3cd2d0de751ec7f80be045f19c4ea99b97b10db24
SIZE (sugarcrm/Sugar_Open_Source_Installation_Guide_v35.pdf) = 72636
MD5 (sugarcrm/SugarSuite-3.5.1.zip) = 439bc0bbbbc11139ca82c6845f227549
SHA256 (sugarcrm/SugarSuite-3.5.1.zip) = 44783b687bab679b5d81b21ba8136d2abdfe43cc76241c8b362e63f318b93250
SIZE (sugarcrm/SugarSuite-3.5.1.zip) = 4998578

View File

@ -0,0 +1,115 @@
How to Upgrade Your SugarCRM Installation
=========================================
This document outlines how to upgrade your SugarCRM installation on FreeBSD
from 2.5.1b to 3.5.1. The upgrade process mainly depends on the SugarCRM
upgrade scripts, but this document describes how to tie this into the
FreeBSD ports system.
This process will upgrade contacts, database information, templates, popups
and all other supported SugarCRM modifications.
Risk
----
Upgrades are risky business, and no guarantees are given that this upgrade
process won't damage your data irreparably. Please ensure that all of your
data is backed up beforehand and that you have a functional back-out plan if
things go badly.
The author of this FreeBSD port explicitly disclaims all responsibility and
liability for any damage caused to your data, regardless of cause. In other
words, if things go wrong, that's your problem.
Preparation
-----------
For the purpose of upgrading, you will need to have a working installation
of SugarCRM 2.5.1b, tied in to a MySQL database. Please ensure that you
have the following information at hand:
- MySQL SugarCRM username
- MySQL SugarCRM password
- MySQL SugarCRM database name
- MySQL privileged username
- MySQL password
- Your old SugarCRM "config.php" file, (normally found in
/usr/local/www/sugarcrm/config.php)
Procedure
---------
0. Make a backup of your old database. If you don't take a backup at this
stage, you seriously risk losing your entire customer database.
!!!!!! DO NOT CONTINUE UNLESS YOU HAVE MADE A DATABASE BACKUP !!!!!!!
1. Do not upgrade SugarCRM using "portupgrade". SugarCRM needs both the
old version and the new version installed at the same time so that it
can migrate data files and configuration information to the new setup.
2. Install the new version of SugarCRM. This will be installed in a new
directory (%%PREFIX%%/%%SUGARCRMDIR%%). Please note that you need to
have the both versions of SugarCRM installed simultaneously; if you
don't, your upgrade will go horribly wrong and you may break out in
spots.
3. Update your Apache or other web server configuration to point SugarCRM
to the new installation. You'll probably need to have a line which
reads something like this:
Alias "/sugarcrm" "%%PREFIX%%/%%SUGARCRMDIR%%"
4. Copy your old "config.php" file into the new SugarCRM installation
directory. You can find this file in the base directory of your old
SugarCRM installation, which will probably be something like
/usr/local/www/sugarcrm/config.php
/usr/local/share/sugarcrm-2.5.1b/config.php
5. Change the permissions on the old SugarCRM installation so that all
files are writable by the web user, and that the config.php file in your
new installation is also writable.
# chown -R www:www /usr/local/www/sugarcrm/ %%PREFIX%%/%%SUGARCRMDIR%%
# chmod -R u+rw /usr/local/www/sugarcrm/ %%PREFIX%%/%%SUGARCRMDIR%%
6. Open up a web browser and point it at:
http://www.web-server-name.tld/sugarcrm/upgrade/
If an error appears at this stage about not being able to make a
peardatabase connection, then you have probably not copied over your
config.php to the correct directory. Please see the previous step.
7. Click the "I'm Ready" tickbox and click "Next".
8. Change the "Current Sugar Directory" field to the directory where your
old SugarCRM installation was located (probably something like
"/usr/local/www/sugarcrm" or "/usr/local/share/sugarcrm-2.5.1". Change
the "Sugar 3.5.1 Directory" field to be "%%PREFIX%%/%%SUGARCRMDIR%%".
Ensure that the "Privileged Database User Name" and "Privileged Database
User Password" are correct.
9. Follow all of the upgrade steps as hinted by the upgrade procedure until
you reach the end. If things screw up along the way, or the upgrade
procedure stalls for some reason, you will need a restart using a clean
installation of your old version of SugarCRM, a clean installation of
your new version, and you will need to restore your database from the
backup you took (you took a backup, right? If you didn't, you either
need need to learn how to read or else need to have your head examined).
You can ignore any waying about "register_globals" which might appear
along the way.
10. Remove the old version of SugarCRM using pkg_delete. Do _not_ use
"pkg_delete -f", as this may forcefully delete the installed
documentation. This process will almost certainly leave relic files in
the old installation directory which need to be removed manually.
11. Check that the new installation works properly. If it does, delete the
old SugarCRM installation directory using something like:
# rm -rf /usr/local/www/sugarcrm

View File

@ -8,19 +8,28 @@ Notes:
memory_limit = 10M ; Maximum amount of memory a script may consume
2. To complete installation of SugarCRM, please point your browser to
2. In order to get Apache or your preferred web server to recognise
SugarCRM's location on your disk, you'll need to put the following line
(or the equivalent) into the web server configuration:
Alias "/sugarcrm" "%%PREFIX%%/%%SUGARCRMDIR%%"
3. If you're installing SugarCRM on your system for the first time, in
order to complete installation, please point your browser to
http://localhost/sugarcrm/ and set up your database and configuration
parameters. Once you have finished the installation procedure, you
should remove the installation directory and make the SugarCRM
configuration file (config.php) non writable. You can do these things
be executing the following commands:
rm -rf %%PREFIX%%/%%SUGARCRMDIR%%/install
chown root:wheel %%PREFIX%%/%%SUGARCRMDIR%%/config.php
3. Please see the documentation directory (%%DOCSDIR%%)
4. If you are upgrading SugarCRM from a previous version, please follow the
instructions in %%DOCSDIR%%/UPGRADE-FreeBSD.txt.
5. Please see the documentation directory (%%DOCSDIR%%)
for full documentation on how to get the best out of SugarCRM.
4. Enjoy!
6. Enjoy!
##

File diff suppressed because it is too large Load Diff