/usr/local/CPAN/Nagios-WebTransact/Makefile.PL


use ExtUtils::MakeMaker;
# See lib/ExtUtils/MakeMaker.pm for details of how to influence
# the contents of the Makefile that is written.

unless ( -s 't/Nagios_WebTransact_cache.pl' ) {
  print "If you access the Internet with a proxy server, please enter the Proxy details when prompted. Skip otherwise.\n" ;
  print "Please enter the name of any required Proxy server [if necessary for Internet access]. Include a suffix of ':<port>' if port is not 80: " ;
  chomp( $proxy = <STDIN> ) ;
  print "\n" ;
  print "Please enter the name of the account (if using a proxy that requires authentication) to use on the Proxy server: " ;
  chomp( $account = <STDIN> ) ;
  print "\n" ;
  print "Please enter the name of the password (if using a proxy that requires authentication) to use for the Proxy server: " ;
  chomp( $proxy_pass = <STDIN> ) ;
  print "\n" ;
  $stuff = '$proxy      = ' . "'$proxy'"      . ' ;' . "\n" .
           '$account    = ' . "'$account'"    . ' ;' . "\n" .
           '$proxy_pass = ' . "'$proxy_pass'" . ' ;' . "\n" ;
  open(CACHE, '> t/Nagios_WebTransact_cache.pl') or die "Can't open t/Nagios_WebTransact_cache.pl for output: $!" ;
  print CACHE $stuff ;
  print CACHE '1;', "\n" ;
  close CACHE ;
} ;

WriteMakefile(
    'PREREQ_PM' => { 'LWP' => 0, 'HTTP::Cookies' => 0 },
    'NAME'	=> 'Nagios::WebTransact',
    'VERSION_FROM' => 'WebTransact.pm', # finds $VERSION
);