summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGilles Dartiguelongue <eva@gentoo.org>2016-01-08 00:22:54 +0100
committerGilles Dartiguelongue <eva@gentoo.org>2016-01-08 00:22:54 +0100
commit243db8a83ec7fb30dbb6fd22128e2e8b10dc7995 (patch)
treed0cdb2650200b2fb785386fa078bc95923469609
parentwww-apps/pydio: use webapp functions a bit more (diff)
downloadeva-243db8a83ec7fb30dbb6fd22128e2e8b10dc7995.tar.gz
eva-243db8a83ec7fb30dbb6fd22128e2e8b10dc7995.tar.bz2
eva-243db8a83ec7fb30dbb6fd22128e2e8b10dc7995.zip
www-apps/pydio: 6.0.8 → 6.2.1
-rw-r--r--www-apps/pydio/Manifest7
-rw-r--r--www-apps/pydio/files/6.2.0.mysql18
-rw-r--r--www-apps/pydio/files/6.2.0.pgsql24
-rw-r--r--www-apps/pydio/files/6.2.0.php43
-rw-r--r--www-apps/pydio/files/postinst.en.txt6
-rw-r--r--www-apps/pydio/pydio-6.2.1.ebuild51
6 files changed, 146 insertions, 3 deletions
diff --git a/www-apps/pydio/Manifest b/www-apps/pydio/Manifest
index e50111c..39785e6 100644
--- a/www-apps/pydio/Manifest
+++ b/www-apps/pydio/Manifest
@@ -2,10 +2,11 @@
Hash: SHA512
DIST pydio-6.0.8.tar.gz 14715383 SHA256 4a7d83873139f069ef31b8b06c3df8398b2ee9e13c91ca820ee1a3a1212d8d3f SHA512 362b5bb3458eb4471930aa5c668eb3e93b34715d32b92cbafde8a079a4ce8a4f7a8c96d7d360b94007b0b9544150b24380ed0fc247ff4bf88aa44ec7ca37dc77 WHIRLPOOL 8a9935415728abee6a9471ba081b5d0be2e708830ceb269010ffc3cdd76ee595b348e15b605c367fb5019325220481437a665fce03611f08490295824bb0bffb
+DIST pydio-6.2.1.tar.gz 14962807 SHA256 e8b1cd1334739ab403d9a7fbdc2e0bd42e393dc8519b8bebfcab0943056e7c2f SHA512 bf321a906df388a6b864eb5939a61403665d83932ae4dc655161fa5cf7df1733547bbe071cea6cbbcae6d3f7f59ed63e910813666d7305332de36416f33dd471 WHIRLPOOL 08f752b69b6ed7b3dc752ed4a5934b458fee4154211965078168cf4975eb20b25905bc7d5218a7968c0bc6ed17f131a56454ec47f8f401b9b35a7bf25ba030bc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iEYEAREKAAYFAlaHEhgACgkQ1fmVwcYIWAZmqwCeNVjPVGSIOu91eb6u2jw2Hz77
-iUUAoLQxkvTnXUruznesR33unjgzQwPM
-=yYXA
+iEYEAREKAAYFAlaO804ACgkQ1fmVwcYIWAbOZwCeLqx9yrCgMcM/pZxgd3UqolEi
+8kYAnjy4d52RRR/AsV0xKaqBBU5E2Sjf
+=e7DQ
-----END PGP SIGNATURE-----
diff --git a/www-apps/pydio/files/6.2.0.mysql b/www-apps/pydio/files/6.2.0.mysql
new file mode 100644
index 0000000..fd827d6
--- /dev/null
+++ b/www-apps/pydio/files/6.2.0.mysql
@@ -0,0 +1,18 @@
+/* SEPARATOR */
+ALTER TABLE `ajxp_log`
+ ADD COLUMN `repository_id` VARCHAR(32),
+ ADD COLUMN `device` VARCHAR( 255 ),
+ ADD COLUMN `dirname` VARCHAR(255),
+ ADD COLUMN `basename` VARCHAR(255),
+ ADD INDEX ( `source` ),
+ ADD INDEX ( `logdate` ),
+ ADD INDEX ( `severity` ),
+ ADD INDEX ( `basename` ),
+ ADD INDEX ( `repository_id` ),
+ ADD INDEX ( `dirname` )
+;
+/* SEPARATOR */
+ALTER TABLE `ajxp_roles`
+ ADD COLUMN `last_updated` INT(11) NOT NULL DEFAULT 0,
+ ADD INDEX (`last_updated`)
+;
diff --git a/www-apps/pydio/files/6.2.0.pgsql b/www-apps/pydio/files/6.2.0.pgsql
new file mode 100644
index 0000000..089705c
--- /dev/null
+++ b/www-apps/pydio/files/6.2.0.pgsql
@@ -0,0 +1,24 @@
+/* SEPARATOR */
+ALTER TABLE ajxp_log
+ ADD COLUMN repository_id VARCHAR( 32 ) DEFAULT NULL ,
+ ADD COLUMN device VARCHAR( 255 ) DEFAULT NULL ,
+ ADD COLUMN dirname VARCHAR(255),
+ ADD COLUMN basename VARCHAR(255)
+;
+/* SEPARATOR */
+CREATE INDEX log_date_idx ON ajxp_log(logdate);
+/* SEPARATOR */
+CREATE INDEX log_severity_idx ON ajxp_log(severity);
+/* SEPARATOR */
+CREATE INDEX log_repository_id_idx ON ajxp_log(repository_id);
+/* SEPARATOR */
+CREATE INDEX log_dirname_idx ON ajxp_log(dirname);
+/* SEPARATOR */
+CREATE INDEX log_basename_idx ON ajxp_log(basename);
+/* SEPARATOR */
+CREATE INDEX log_source_idx ON ajxp_log(source);
+
+/* SEPARATOR */
+ALTER TABLE ajxp_roles ADD COLUMN last_updated INTEGER NOT NULL DEFAULT 0;
+/* SEPARATOR */
+CREATE INDEX roles_updated_idx ON ajxp_roles(last_updated);
diff --git a/www-apps/pydio/files/6.2.0.php b/www-apps/pydio/files/6.2.0.php
new file mode 100644
index 0000000..4368aa2
--- /dev/null
+++ b/www-apps/pydio/files/6.2.0.php
@@ -0,0 +1,43 @@
+<?php
+
+// FORCE bootstrap_context copy, otherwise it won't reboot
+if (is_file(AJXP_INSTALL_PATH."/conf/bootstrap_context.php".".new-".date("Ymd"))) {
+ rename(AJXP_INSTALL_PATH."/conf/bootstrap_context.php", AJXP_INSTALL_PATH."/conf/bootstrap_context.php.pre-update");
+ rename(AJXP_INSTALL_PATH."/conf/bootstrap_context.php".".new-".date("Ymd"), AJXP_INSTALL_PATH."/conf/bootstrap_context.php");
+}
+
+// RE-ENABLE NEWLY DISABLED DRIVERS TO AVOID DISAPPEARING FEATURES
+$disabledPlugins = array(
+ "access.demo", "access.imap", "access.jsapi", "access.mysql", "access.sftp", "access.sft_psl", "access.smb", "access.webdav",
+ "auth.basic_http", "auth.custom_db", "auth.ftp", "auth.radius", "auth.remote_ajxp", "auth.serial", "auth.smb",
+ "conf.serial", "index.elasticsearch", "log.syslog", "meta.svn", "metastore.xattr"
+);
+$skipReenable = array("access.demo", "access.jsapi", "access.mysql", "auth.remote_ajxp", "meta.svn");
+$enabled = array();
+$skipped = array();
+$confStorage = ConfService::getConfStorageImpl();
+foreach($disabledPlugins as $plugin){
+
+ $plugObject = AJXP_PluginsService::findPluginById($plugin);
+ if(is_a($plugObject, "AJXP_Plugin")){
+
+ if($plugObject->isEnabled()) continue;
+
+ if(in_array($plugin, $skipReenable)){
+ $skipped[]= $plugin;
+ continue;
+ }
+ list($type, $name) = explode(".", $plugin);
+
+ $options = $confStorage->loadPluginConfig($type, $name);
+ $options["AJXP_PLUGIN_ENABLED"] = true;
+ $confStorage->savePluginConfig($plugin, $options);
+ $enabled[] = $plugin;
+
+ }
+
+}
+
+echo "To improve performances, many plugins were disabled by default in the new version.<br>";
+echo "The following ones were automatically re-enabled to avoid conflicts with your setup : ".implode(", ", $enabled). "<br><br>";
+echo "Warning, the following ones were not re-enabled, so please make sure to switch them on manually if you use them : ".implode(", ", $skipped). "<br><br>"; \ No newline at end of file
diff --git a/www-apps/pydio/files/postinst.en.txt b/www-apps/pydio/files/postinst.en.txt
new file mode 100644
index 0000000..729cd1b
--- /dev/null
+++ b/www-apps/pydio/files/postinst.en.txt
@@ -0,0 +1,6 @@
+SQL scripts to upgrade database can be found in pydio's sqlscripts folder.
+
+PHP upgrade scripts can be found in <path_to_installation>/upgrade-scripts.
+
+You must cleanup plugin cache files:
+$ find <path_to_installation>/data/cache/plugins -type f -delete
diff --git a/www-apps/pydio/pydio-6.2.1.ebuild b/www-apps/pydio/pydio-6.2.1.ebuild
new file mode 100644
index 0000000..b0db8cc
--- /dev/null
+++ b/www-apps/pydio/pydio-6.2.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit webapp depend.php
+
+DESCRIPTION="File sharing platform similar to dropbox"
+HOMEPAGE="https://pyd.io/"
+SRC_URI="http://sourceforge.net/projects/ajaxplorer/files/${PN}/stable-channel/${PV}/${PN}-core-${PV}.tar.gz/download -> ${P}.tar.gz"
+RESTRICTION="mirror"
+
+LICENSE="AGPL-3"
+KEYWORDS="~amd64 ~x86"
+IUSE="+webdav"
+
+DEPEND="webdav? ( dev-php/PEAR-HTTP_WebDAV_Client )"
+RDEPEND="${DEPEND}"
+
+need_php_httpd
+
+S="${WORKDIR}/${PN}-core-${PV}"
+
+src_install() {
+ webapp_src_preinst
+
+ insinto "${MY_HTDOCSDIR}"
+ doins -r "${S}"/*
+
+ insinto "${MY_HTDOCSDIR}"/upgrade-scripts
+ doins "${FILESDIR}"/*.php
+
+ webapp_serverowned -R "${MY_HTDOCSDIR}"/data
+
+ webapp_configfile "${MY_HTDOCSDIR}/base.conf.php"
+ webapp_configfile "${MY_HTDOCSDIR}/conf/bootstrap_"{conf,context,repositories}".php"
+ webapp_configfile "${MY_HTDOCSDIR}/conf/mime.types"
+ webapp_configfile "${MY_HTDOCSDIR}/conf/extensions.conf.php"
+
+ # FIXME: does not fit eclass design
+ #webapp_sqlscript mysql "${MY_HTDOCSDIR}"/plugins/*/create.mysql
+ #webapp_sqlscript postgres "${MY_HTDOCSDIR}"/plugins/*/create.pgsql
+
+ webapp_sqlscript mysql "${FILESDIR}"/6.2.0.mysql 6.0
+ webapp_sqlscript postgres "${FILESDIR}"/6.2.0.pgsql 6.0
+
+ webapp_postinst_txt en "${FILESDIR}"/postinst.en.txt
+
+ webapp_src_install
+}