mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
- Update to 5.0.1
- Preserve configuration files for future updates - Add post-install script and UPDATING entry to help upgrading from previous version
This commit is contained in:
parent
b2fb659e12
commit
692e9ad388
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=322446
25
UPDATING
25
UPDATING
@ -5,6 +5,31 @@ they are unavoidable.
|
|||||||
You should get into the habit of checking this file for changes each time
|
You should get into the habit of checking this file for changes each time
|
||||||
you update your ports collection, before attempting any port upgrades.
|
you update your ports collection, before attempting any port upgrades.
|
||||||
|
|
||||||
|
20130707:
|
||||||
|
AFFECTS: users of www/ajaxplorer
|
||||||
|
AUTHOR: madpilot@FreeBSD.org
|
||||||
|
|
||||||
|
Ajaxplorer was updated to 5.0.1. This is a major update and some
|
||||||
|
manual intervention may be needed.
|
||||||
|
|
||||||
|
Before upgrading you should preserve the folowing files in WWWDIR
|
||||||
|
(defaults to PREFIX/www/ajaxplorer) if you have customized them:
|
||||||
|
|
||||||
|
conf/bootstrap_conf.php
|
||||||
|
conf/bootstrap_context.php
|
||||||
|
conf/bootstrap_plugins.php
|
||||||
|
conf/bootstrap_repositories.php
|
||||||
|
|
||||||
|
and put them back after the upgrade.
|
||||||
|
|
||||||
|
If you are using a database backend you will need to manually
|
||||||
|
update your database table using the sql script the port will
|
||||||
|
install at WWWDIR/conf/conf/4.2.3-5.0.0-db-upgrade.sql
|
||||||
|
|
||||||
|
Don't forget to check the documentation about upgrading from
|
||||||
|
version 4.x at:
|
||||||
|
http://ajaxplorer.info/ajaxplorer-5-0-0:/#Upgrade_from_4X_to_500
|
||||||
|
|
||||||
20130706:
|
20130706:
|
||||||
AFFECTS: users of devel/apr1
|
AFFECTS: users of devel/apr1
|
||||||
AUTHOR: ohauer@FreeBSD.org
|
AUTHOR: ohauer@FreeBSD.org
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# $FreeBSD$
|
# $FreeBSD$
|
||||||
|
|
||||||
PORTNAME= ajaxplorer
|
PORTNAME= ajaxplorer
|
||||||
PORTVERSION= 4.2.3
|
PORTVERSION= 5.0.1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/stable-channel/${PORTVERSION}
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/stable-channel/${PORTVERSION}
|
||||||
DISTNAME= ${PORTNAME}-core-${PORTVERSION}
|
DISTNAME= ${PORTNAME}-core-${PORTVERSION}
|
||||||
@ -16,15 +16,33 @@ USE_PHP= dom mcrypt gd
|
|||||||
USE_DOS2UNIX= yes
|
USE_DOS2UNIX= yes
|
||||||
DOS2UNIX_REGEX= .*\.php
|
DOS2UNIX_REGEX= .*\.php
|
||||||
WANT_PHP_WEB= yes
|
WANT_PHP_WEB= yes
|
||||||
SUB_FILES= pkg-deinstall pkg-message
|
SUB_FILES= pkg-deinstall pkg-install pkg-message
|
||||||
|
|
||||||
|
post-patch:
|
||||||
|
@${RM} -f ${WRKSRC}/plugins/gui.ajax/res/themes/vision/images/mimes/16/._users-folder.png
|
||||||
|
@${MV} ${WRKSRC}/conf/bootstrap_conf.php ${WRKDIR}/bootstrap_conf.php.sample
|
||||||
|
@${MV} ${WRKSRC}/conf/bootstrap_context.php ${WRKDIR}/bootstrap_context.php.sample
|
||||||
|
@${MV} ${WRKSRC}/conf/bootstrap_repositories.php ${WRKDIR}/bootstrap_repositories.php.sample
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${MKDIR} ${WWWDIR}
|
${MKDIR} ${WWWDIR}
|
||||||
(cd ${WRKSRC} && ${COPYTREE_SHARE} "* .htaccess" ${WWWDIR})
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} "* .htaccess" ${WWWDIR})
|
||||||
|
${INSTALL_DATA} ${WRKDIR}/bootstrap_*.php.sample ${WWWDIR}/conf
|
||||||
|
${INSTALL_DATA} ${FILESDIR}/4.2.3-5.0.0-db-upgrade.sql ${WWWDIR}/conf
|
||||||
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
||||||
|
|
||||||
post-install:
|
post-install:
|
||||||
|
@if [ ! -f ${WWWDIR}/conf/bootstrap_conf.php ]; then \
|
||||||
|
${CP} -p ${WWWDIR}/conf/bootstrap_conf.php.sample ${WWWDIR}/conf/bootstrap_conf.php ; \
|
||||||
|
fi
|
||||||
|
@if [ ! -f ${WWWDIR}/conf/bootstrap_context.php ]; then \
|
||||||
|
${CP} -p ${WWWDIR}/conf/bootstrap_context.php.sample ${WWWDIR}/conf/bootstrap_context.php ; \
|
||||||
|
fi
|
||||||
|
@if [ ! -f ${WWWDIR}/conf/bootstrap_repositories.php ]; then \
|
||||||
|
${CP} -p ${WWWDIR}/conf/bootstrap_repositories.php.sample ${WWWDIR}/conf/bootstrap_repositories.php ; \
|
||||||
|
fi
|
||||||
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
|
||||||
|
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||||
@${CAT} ${PKGMESSAGE}
|
@${CAT} ${PKGMESSAGE}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
SHA256 (ajaxplorer-core-4.2.3.tar.gz) = 58907f55c0dee0c87af1008e4fad726ef1bd096f78536bab8941f5ef0b02ee0c
|
SHA256 (ajaxplorer-core-5.0.1.tar.gz) = 42b142d31708d3808ebd2a9d938d4c40dd3f27b7d5fdc6f503e9af0d3a0e3ea1
|
||||||
SIZE (ajaxplorer-core-4.2.3.tar.gz) = 5311026
|
SIZE (ajaxplorer-core-5.0.1.tar.gz) = 6519427
|
||||||
|
22
www/ajaxplorer/files/4.2.3-5.0.0-db-upgrade.sql
Normal file
22
www/ajaxplorer/files/4.2.3-5.0.0-db-upgrade.sql
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
/* SEPARATOR */
|
||||||
|
ALTER TABLE `ajxp_user_rights` CHANGE `rights` `rights` MEDIUMTEXT NOT NULL;
|
||||||
|
/* SEPARATOR */
|
||||||
|
ALTER TABLE `ajxp_users` ADD COLUMN `groupPath` VARCHAR(255) NULL;
|
||||||
|
/* SEPARATOR */
|
||||||
|
ALTER TABLE `ajxp_repo` ADD COLUMN `groupPath` VARCHAR(255) NULL;
|
||||||
|
/* SEPARATOR */
|
||||||
|
ALTER TABLE `ajxp_repo_options` ADD INDEX (uuid);
|
||||||
|
/* SEPARATOR */
|
||||||
|
CREATE TABLE IF NOT EXISTS ajxp_groups (
|
||||||
|
groupPath VARCHAR(255) PRIMARY KEY,
|
||||||
|
groupLabel VARCHAR(255) NOT NULL
|
||||||
|
);
|
||||||
|
/* SEPARATOR */
|
||||||
|
CREATE TABLE IF NOT EXISTS ajxp_simple_store (
|
||||||
|
object_id VARCHAR(255) NOT NULL,
|
||||||
|
store_id VARCHAR(50) NOT NULL,
|
||||||
|
serialized_data LONGTEXT NULL,
|
||||||
|
binary_data LONGBLOB NULL,
|
||||||
|
related_object_id VARCHAR(255) NULL,
|
||||||
|
PRIMARY KEY(object_id, store_id)
|
||||||
|
);
|
38
www/ajaxplorer/files/pkg-install.in
Normal file
38
www/ajaxplorer/files/pkg-install.in
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# $FreeBSD$
|
||||||
|
|
||||||
|
if [ "$2" != "POST-INSTALL" ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -d %%WWWDIR%%/data/cache -a -d %%WWWDIR%%/data/cache/i18n ]; then
|
||||||
|
show_warn=no
|
||||||
|
wf=`( find %%WWWDIR%%/data/cache/i18n -not -type d ; find %%WWWDIR%%/data/cache -name 'plugins_*.ser' ) | wc -l`
|
||||||
|
|
||||||
|
if [ $wf -ne 0 ]; then
|
||||||
|
rm -f %%WWWDIR%%/data/cache/i18n/*.ser
|
||||||
|
rm -f %%WWWDIR%%/data/cache/plugins_*.ser
|
||||||
|
show_warn=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f %%WWWDIR%%/data/cache/admin_counted ]; then
|
||||||
|
cp %%WWWDIR%%/data/cache/admin_counted %%WWWDIR%%/data/cache/first_run_passed
|
||||||
|
show_warn=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$show_warn" = "yes" ]; then
|
||||||
|
echo "************************************************************************"
|
||||||
|
echo
|
||||||
|
echo "WARNING: If you are upgrading from version 4.2.3 and using a database"
|
||||||
|
echo "backend, please update your database using the sql script installed in"
|
||||||
|
echo "%%WWWDIR%%/conf/4.2.3-5.0.0-db-upgrade.sql"
|
||||||
|
echo
|
||||||
|
echo "Please also read the upgrading notes at:"
|
||||||
|
echo "http://ajaxplorer.info/ajaxplorer-5-0-0:/#Upgrade_from_4X_to_500"
|
||||||
|
echo
|
||||||
|
echo "************************************************************************"
|
||||||
|
sleep 3
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user