Description: massage the upstream install scripts for Debian packages

--- openguides-0.65.orig/Build.PL
+++ openguides-0.65/Build.PL
@@ -25,8 +25,8 @@ directory, and start again.

 EOF

-my $continue = Module::Build->y_n("Continue with install?", "y");
-exit 0 unless $continue;
+#my $continue = Module::Build->y_n("Continue with install?", "y");
+#exit 0 unless $continue;
 }

 my $existing_config_file = 'wiki.conf';
@@ -258,12 +258,14 @@ if ( $geo_handler eq "3" ) {
 }

 # Create a user-friendly config file from answers to prompts.
-open FILE, ">wiki.conf" or die "Can't open wiki.conf for writing: $!";
-foreach my $ans (@answers) {
-    print FILE "# $ans->{question}\n";
-    print FILE "$ans->{variable} = $ans->{value}\n\n";
-}
-close FILE or die "Can't close wiki.conf: $!";
+# debian modification: don't write out any config files, we have
+# provided a default already.
+#open FILE, ">wiki.conf" or die "Can't open wiki.conf for writing: $!";
+#foreach my $ans (@answers) {
+#    print FILE "# $ans->{question}\n";
+#    print FILE "$ans->{variable} = $ans->{value}\n\n";
+#}
+#close FILE or die "Can't close wiki.conf: $!";

 # We currently only support Plucene for new installs, but may support
 # others in future
--- openguides-0.65.orig/lib/OpenGuides/Build.pm
+++ openguides-0.65/lib/OpenGuides/Build.pm
@@ -9,10 +9,10 @@ use Module::Build;
 use OpenGuides::Config;
 use base 'Module::Build';

-sub ACTION_install {
+sub ACTION_postinstall {
     my $self = shift;
-    $self->SUPER::ACTION_install;
-    $self->ACTION_install_extras;
+    #$self->SUPER::ACTION_install;
+    #$self->ACTION_install_extras;

     eval "use Config::Tiny";
     die "Config::Tiny is required to set up this application.\n" if $@;
