#! /bin/sh /usr/share/dpatch/dpatch-run
## 01-fix_Conf.pm.dpatch by David Paleino <d.paleino@gmail.com>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Moving configuration to /etc/emboss-explorer.conf
## DP: Forwarded: http://sourceforge.net/tracker/index.php?func=detail&aid=1992075&group_id=124389&atid=699414

@DPATCH@
diff -urNad emboss-explorer~/lib/EMBOSS/GUI/Conf.pm emboss-explorer/lib/EMBOSS/GUI/Conf.pm
--- emboss-explorer~/lib/EMBOSS/GUI/Conf.pm	2007-05-25 09:13:23.000000000 +0200
+++ emboss-explorer/lib/EMBOSS/GUI/Conf.pm	2007-05-25 09:13:57.000000000 +0200
@@ -43,79 +43,16 @@
 
 package EMBOSS::GUI::Conf;
 
-use strict;
 use warnings;
 
 use Carp;
 
 our $VERSION = 1.10;
 
-# path to the EMBOSS::GUI HTML files
-our $HTML_PATH = "/var/www/emboss/html";
-
-# URL corresponding to $HTML_PATH above
-our $HTML_URL = "/emboss";
-
-# URL specifying the style sheet to use
-our $STYLE_URL = "$HTML_URL/style/emboss.css";
-
-# URL prefix to place before image links
-our $IMAGE_URL = "$HTML_URL/images";
-
-# URL prefix to place before manual links (only used in static pages)
-our $MANUAL_URL = "$HTML_URL/manual";
-
-# path to the EMBOSS::GUI temporary output directory
-our $OUTPUT_PATH = "$HTML_PATH/output";
-
-# URL corresponding to $OUTPUT_PATH above
-our $OUTPUT_URL = "$HTML_URL/output";
-
-# prefix under which EMBOSS was installed
-our $EMBOSS_PREFIX = "/usr/local";
-
-# path to EMBOSS binaries
-our $EMBOSS_BIN = "$EMBOSS_PREFIX/bin";
-
-# path to EMBOSS installation
-our $EMBOSS_HOME = "$EMBOSS_PREFIX/share/EMBOSS";
-
-# path to EMBOSS ACD files
-our $EMBOSS_ACDROOT = "$EMBOSS_HOME/acd";
-
-# path to EMBOSS data
-our $EMBOSS_DATA = "$EMBOSS_HOME/data";
-
-# path to EMBOSS application manuals
-our $EMBOSS_MANUAL = "$EMBOSS_HOME/doc/html";
-
-# list of groups and applications to exclude from the main menu
-our @EXCLUDED = (
-	"ACD",
-	"acdc",
-	"acdpretty",
-	"acdtable",
-	"acdtrace",
-	"acdvalid",
-	"UTILS DATABASE CREATION",
-	"aaindexextract",
-	"cutgextract",
-	"printsextract",
-	"prosextract",
-	"rebaseextract",
-	"tfextract",
-	"UTILS DATABASE INDEXING",
-	"dbiblast",
-	"dbifasta",
-	"dbiflat",
-	"dbigcg",
-);
-
-# number of seconds to delay between placeholder page refreshes
-our $REFRESH_DELAY = 1;
-
-# whether or not to display using frames
-our $FRAMES = 1;
+open (config_file, "</etc/emboss-explorer/emboss-explorer.conf") or die "Cannot load /etc/emboss-explorer.conf!";
+my @conf = <config_file>;
+eval join("\n", @conf);
+die $@ if $@;
 
 =item new()
 
