From: =?utf-8?b?TWljaGFsIMSMaWhhxZk=?= <nijel@debian.org>
Date: Tue, 24 Sep 2019 22:34:33 +0200
Subject: Adjust phpMyAdmin vendor configuration to match Debian needs -
 configuration is in /etc/phpmyadmin - documentation is in /usr/share/doc -
 config file consists of several included files,
 so we skip mtime check - tempdir is in /var/lib/phpmyadmin/tmp

Origin: vendor
Forwarded: not-needed
Acked-by: William Desportes <williamdes@wdes.fr>
---
 libraries/vendor_config.php | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/libraries/vendor_config.php b/libraries/vendor_config.php
index 6698210..48d0319 100644
--- a/libraries/vendor_config.php
+++ b/libraries/vendor_config.php
@@ -19,24 +19,24 @@ if (! defined('PHPMYADMIN')) {
  * Path to vendor autoload file. Useful when you want to
  * have have vendor dependencies somewhere else.
  */
-define('AUTOLOAD_FILE', ROOT_PATH . 'vendor/autoload.php');
+define('AUTOLOAD_FILE', './autoload.php');
 
 /**
  * Directory where cache files are stored.
  */
-define('TEMP_DIR', ROOT_PATH . 'tmp/');
+define('TEMP_DIR', '/var/lib/phpmyadmin/tmp/');
 
 /**
  * Path to changelog file, can be gzip compressed. Useful when you want to
  * have documentation somewhere else, eg. /usr/share/doc.
  */
-define('CHANGELOG_FILE', ROOT_PATH . 'ChangeLog');
+define('CHANGELOG_FILE', '/usr/share/doc/phpmyadmin/changelog.gz');
 
 /**
  * Path to license file. Useful when you want to have documentation somewhere
  * else, eg. /usr/share/doc.
  */
-define('LICENSE_FILE', ROOT_PATH . 'LICENSE');
+define('LICENSE_FILE', '/usr/share/doc/phpmyadmin/copyright');
 
 /**
  * Directory where SQL scripts to create/upgrade configuration storage reside.
@@ -48,7 +48,7 @@ define('SQL_DIR', ROOT_PATH . 'sql/');
  * It is not used directly in code, just a convenient
  * define used further in this file.
  */
-define('CONFIG_DIR', ROOT_PATH);
+define('CONFIG_DIR', '/etc/phpmyadmin/');
 
 /**
  * Filename of a configuration file.
@@ -68,7 +68,7 @@ define('CUSTOM_FOOTER_FILE', CONFIG_DIR . 'config.footer.inc.php');
 /**
  * Default value for check for version upgrades.
  */
-define('VERSION_CHECK_DEFAULT', true);
+define('VERSION_CHECK_DEFAULT', false);
 
 /**
  * Path to files with compiled locales (*.mo)
