Subject: Adjust phpMyAdmin vendor configuration to match Debian needs
 - setup generates configuration in /var
 - documentation is in /usr/share/doc
 - config file consists of several included files, so we skip mtime check
From: Michal Čihař <nijel@debian.org>
Forwarded: not-needed
--- a/libraries/vendor_config.php
+++ b/libraries/vendor_config.php
@@ -17,13 +17,13 @@
  * Path to changelog file, can be gzip compressed. Useful when you want to
  * have documentation somewhere else, eg. /usr/share/doc.
  */
-define('CHANGELOG_FILE', './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', './LICENSE');
+define('LICENSE_FILE', '/usr/share/doc/phpmyadmin/copyright');
 
 /**
  * Directory where SQL scripts to create/upgrade configuration storage reside.
@@ -35,7 +35,7 @@
  * It is not used directly in code, just a convenient
  * define used further in this file.
  */
-define('CONFIG_DIR', '');
+define('CONFIG_DIR', '/etc/phpmyadmin/');
 
 /**
  * Filename of a configuration file.
@@ -55,23 +55,27 @@
 /**
  * Default value for check for version upgrades.
  */
-define('VERSION_CHECK_DEFAULT', true);
+define('VERSION_CHECK_DEFAULT', false);
 
 /**
  * Path to gettext.inc file. Useful when you want php-gettext somewhere else,
  * eg. /usr/share/php/gettext/gettext.inc.
  */
-define('GETTEXT_INC', './libraries/php-gettext/gettext.inc');
+if (is_dir('/usr/share/php/php-php-gettext/')) {
+    define('GETTEXT_INC', '/usr/share/php/php-php-gettext/gettext.inc');
+} else {
+    define('GETTEXT_INC', '/usr/share/php/php-gettext/gettext.inc');
+}
 /**
  * Path to tcpdf.php file. Useful when you want to use system tcpdf,
  * eg. /usr/share/php/tcpdf/tcpdf.php.
  */
-define('TCPDF_INC', './libraries/tcpdf/tcpdf.php');
+define('TCPDF_INC', '/usr/share/php/tcpdf/tcpdf.php');
 
 /**
  * Path to the phpseclib. Useful when you want to use system phpseclib.
  */
-define('PHPSECLIB_INC_DIR', './libraries/phpseclib/');
+define('PHPSECLIB_INC_DIR', '/usr/share/php/phpseclib/');
 
 /**
  * Path to the phpmyadmin/sql-parser. Useful when you want to use system version.
