Fatal Error: The configuration file config/config.inc.php does not exist.
' ); +if( !include_once( '/etc/webissues-server/config.inc.php' ) ) + die( 'Fatal Error: The configuration file /etc/webissues-server/config.inc.php does not exist.
' ); if ( $_SERVER[ 'REQUEST_METHOD' ] != 'POST' || isset( $_POST[ 'action' ] ) ) { require_once( 'include/status.inc.php' ); diff -Naur webissues-server-0.8.5.orig/setup.php webissues-server-0.8.5/setup.php --- webissues-server-0.8.5.orig/setup.php 2009-11-25 19:18:27.000000000 +0100 +++ webissues-server-0.8.5/setup.php 2009-11-25 19:18:39.000000000 +0100 @@ -12,8 +12,8 @@ define( 'VERSION', '0.8.5' ); -if( !include_once( 'config/config.inc.php' ) ) - die( 'Fatal Error: The configuration file config/config.inc.php does not exist.
' ); +if( !include_once( '/etc/webissues-server/config.inc.php' ) ) + die( 'Fatal Error: The configuration file /etc/webissues-server/config.inc.php does not exist.
' ); require_once( 'include/common.inc.php' ); diff -Naur webissues-server-0.8.5.orig/update.php webissues-server-0.8.5/update.php --- webissues-server-0.8.5.orig/update.php 2009-11-25 19:18:27.000000000 +0100 +++ webissues-server-0.8.5/update.php 2009-11-25 19:18:39.000000000 +0100 @@ -12,8 +12,8 @@ define( 'VERSION', '0.8.5' ); -if( !include_once( 'config/config.inc.php' ) ) - die( 'Fatal Error: The configuration file config/config.inc.php does not exist.
' ); +if( !include_once( '/etc/webissues-server/config.inc.php' ) ) + die( 'Fatal Error: The configuration file /etc/webissues-server/config.inc.php does not exist.
' ); require_once( 'include/common.inc.php' ); debian/patches/series 0000644 0000000 0000000 00000000077 11550356206 012041 0 ustar 01-move-config-to-etc.diff 02-config-from-dbconfig-common.diff debian/patches/02-config-from-dbconfig-common.diff 0000644 0000000 0000000 00000004172 11550356206 017142 0 ustar # Use the database access from dbconfig-common. diff -Naur webissues-server-0.8.4.orig/config/config-template.inc.php webissues-server-0.8.4/config/config-template.inc.php --- webissues-server-0.8.4.orig/config/config-template.inc.php 2009-03-11 13:51:17.000000000 +0100 +++ webissues-server-0.8.4/config/config-template.inc.php 2009-03-11 13:54:22.000000000 +0100 @@ -3,6 +3,9 @@ * Configuration file for the WebIssues Server. */ +// dbconfig-common include for DB settings +include_once( '/etc/webissues-server/debian-db.php' ); + /* * Database configuration. * @@ -10,19 +13,19 @@ */ // database engine, can be: 'mysql', 'mysqli', 'pgsql', 'mssql' or 'firebird' -$config[ 'db_engine' ] = 'mysql'; +$config[ 'db_engine' ] = $dbtype; // database server, can be: 'host', 'host:port', ':/path/to/socket' or 'host\dbinstance' -$config[ 'db_host' ] = 'localhost'; +$config[ 'db_host' ] = $dbserver; // database name -$config[ 'db_database' ] = 'webissues'; +$config[ 'db_database' ] = $dbname; // optional: database user login (if blank, integrated authentication is used) -$config[ 'db_user' ] = 'webissues'; +$config[ 'db_user' ] = $dbuser; // optional: database user password -$config[ 'db_password' ] = 'secret'; +$config[ 'db_password' ] = $dbpass; // optional: prefix of table names (e.g. 'xyz_' so all tables will be 'xyz_table_name') $config[ 'db_prefix' ] = ''; @@ -35,7 +38,7 @@ */ // optional: path of the storage folder (if blank, file storage is disabled) -$config[ 'storage_path' ] = 'storage'; +$config[ 'storage_path' ] = ''; // minimum size of attachments stored as files $config[ 'storage_min_size' ] = 4000; @@ -104,10 +107,10 @@ */ // optional: logging PHP and SQL errors -$config[ 'log_errors' ] = 'log/errors.log'; +$config[ 'log_errors' ] = ''; // optional: logging cron script runs -$config[ 'log_cron' ] = 'log/cron.log'; +$config[ 'log_cron' ] = ''; // optional: logging commands from the client and server responses (warning: use for debugging only) $config[ 'log_commands' ] = ''; debian/webissues-server.examples 0000644 0000000 0000000 00000000023 11550356206 014241 0 ustar debian/apache.conf debian/compat 0000644 0000000 0000000 00000000002 11550356206 010367 0 ustar 7 debian/rules 0000755 0000000 0000000 00000001230 11550356206 010245 0 ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk DEB_FIXPERMS_EXCLUDE := usr/share/webissues-server # chown everything to nobody:nogroup to make suphp happy common-binary-post-install-indep:: find debian/webissues-server/usr/share/webissues-server/ -type d -exec chmod 0755 {} \; find debian/webissues-server/usr/share/webissues-server/ -type f -exec chmod 0644 {} \; find debian/webissues-server/usr/share/webissues-server/ -type f -exec chown nobody:nogroup {} \; cp config/config-template.inc.php debian/webissues-server/etc/webissues-server/config.inc.php chown nobody:nogroup debian/webissues-server/etc/webissues-server/config.inc.php debian/postrm 0000644 0000000 0000000 00000001006 11550356206 010435 0 ustar #! /bin/sh set -e if [ -f /usr/share/debconf/confmodule ]; then . /usr/share/debconf/confmodule fi if [ -f /usr/share/dbconfig-common/dpkg/postrm ]; then . /usr/share/dbconfig-common/dpkg/postrm dbc_go webissues-server $@ fi case "$1" in purge) rm -f /etc/webissues-server/debian-db.php ucf --purge /etc/webissues-server/debian-db.php ;; remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) ;; *) echo "postrm called with unknown argument \`$1'" >&2 exit 1 esac #DEBHELPER# exit 0 debian/changelog 0000644 0000000 0000000 00000006603 11550356206 011050 0 ustar webissues-server (0.8.5-3) unstable; urgency=low * Bump Standards-Version to 3.9.2 (no changes needed). * Set maintainer to the Debian QA Group. -- Patrick Matthäi